+----+-----------+-----+
| ID | name |price|
+----+-----------+-----+
| 1 |dest_tahiti| 10 |
| 2 |dest_bora | 20 |
| ...| ... | ... |
+----+-----------+-----+
$price="SELECT price FROM rates WHERE name IN('dest_tahiti','dest_bora', ...) ";
$price_prep= mysqli_query($connect,$price);
$price_result= mysqli_fetch_array($price_prep);
echo $prix_result["price"] //Just display price for dest_tahiti with WHERE = 'dest_tahiti';
echo $prix_result["price"] //Just display price for dest_bora with WHERE = 'dest_bora';
我想自定义的 值 WHERE name = ...进行相同的查询 与mysqli_fetch_array?你可以帮助我 ?
繁星淼淼