|
|
|
| Поскажите, как сделать!
Надо вывести индекс из таблицы, значения в которую только что были введены (primary введенных значений) .
Пишу:
$sql1 = "INSERT INTO customs (ind_custom,price_tran,date_price,order_type,ins_type,city_out) VALUES ('', '$price_tran','$date_price','$order_type','$ins_type','$city_out')";
$result1 = mysql_query($sql1) or die("Сохранить Ваши данные не удалось1");
$sql6 = "SELECT ind_custom FROM customs WHERE [price_tran = '$price_tran'] AND [date_price ='$date_price'] AND order_type ='$order_type' AND ins_type ='$ins_type' AND city_out ='$city_out'";
$result=mysql_query($sql6);
while($rs=mysql_fetch_assoc($result))
{
echo $rs['ind_custom'];
}
Почему не работает? | |
|
|