1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| $sSQL="SELECT mon-champs1, mon-champs2, mon-champs3... FROM ma-table1, ma-table2, ma-table3... where clause1, clause2, clause3...";
$row=$q->getrow();
$prenom=urldecode($row[3]);
$nom=urldecode($row[4]);
$adresse=urldecode($row[5]);
$codepostal=$row[6];
$ville=urldecode($row[7]);
...
if (empty($q->query($DB,$sSQL))) {
$sSQL2="SELECT mon-champs1, mon-champs2, mon-champs3... FROM table1, table2, table3... where clause1, clause2, clause3...";
$q->query($DB,$sSQL2);
$row=$q->getrow();
$prenom=urldecode($row[0]);
$nom=urldecode($row[1]);
$adresse=urldecode($row[2]);
$codepostal=$row[3];
$ville=urldecode($row[4]);
...
} |
Partager