1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <?
include('connect.php');
$req=mysql_query("SELECT id_product,title_fr,price FROM products
WHERE id_product IN ('232','295','299','327','328','313','284','287','291','317','332','336','341','345','349','353','357','234','236','237','245','305','307')");
while ($result=mysql_fetch_array($req)) {
$id_product=$result['id_product'];
$title=$result['title_fr'];
$price=$result['price'];
echo "
<tr>
<td>".$id_product." --</td>
<td>".$title."</td><br><br>
<td>Prix standard : </td><br>
<td>Prix actuel : ".$price."</td><br>
<td>Nouveau prix : <input id='new_price' type='text' value=''></td>
<input type='button' value='reset price'> <input id='update' type='button' value='update price'>
</tr><br><br><br>";
}
?> |
Partager