Ajout gestion erreur sur insert
This commit is contained in:
parent
b18e7b990e
commit
421e96593b
@ -96,6 +96,9 @@ if ( $resql )
|
|||||||
|
|
||||||
$resqli = $db->query($sqli);
|
$resqli = $db->query($sqli);
|
||||||
|
|
||||||
|
if ($resqli)
|
||||||
|
{
|
||||||
|
|
||||||
/* Distributeur */
|
/* Distributeur */
|
||||||
$sqls = "SELECT d.nom ";
|
$sqls = "SELECT d.nom ";
|
||||||
$sqls .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur as d";
|
$sqls .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur as d";
|
||||||
@ -221,6 +224,12 @@ if ( $resql )
|
|||||||
$m++;
|
$m++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $db->error();
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user