Bonjur,
je rencontre depuis un certain temp cette erreur: "Warning: Cannot use a scalar value as an array ", et je sais pas d'ou ça vient!
voivi le bout de code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 $h=0; $p="SELECT * FROM PRIX,HOTEL WHERE HOTEL.id_hotel=PRIX.id_hotel and HOTEL.id_hotel=$id_hotel and PRIX.date_dep >='$datt' and PRIX.date_fin <='$dateret' ORDER BY PRIX.date_dep "; $pi=mysql_query($p)or die('Erreur SQL !<br>'.$p.'<br>'.mysql_error()); while ($pri=mysql_fetch_array($pi)) { $pris[$h]=$pri['prix_adulte']; $dep[$h]=$pri['date_dep']; $fin[$h]=$pri['date_fin']; $sup[$h]=$pri['sup_single']; $h++; }
Partager