0) { while ($r = mysql_fetch_assoc($select_response)) { $user_id = intval($r["id"]); } $query = "INSERT INTO `ordered_products` (`product_id`, `user_id`, `seller_id`, `quantity`, `price`, `date`, `time`, `comment`, `phone`, `product_name`, `unit_of_quantity`, `number_of_unit`) VALUES ($product_id, $user_id, $seller_id, $quantity, $price, '".$date."','".$time."','".$comment."' ,'".$phone."', '".$name."', $unit_of_quantity, $number_of_unit)"; mysql_query($query) or $code = 10; }else{ $code = 10; } $mail_message = '
| Название товара | Количество | Сумма | Дата | Время | Телефон | Комментрий |
|---|---|---|---|---|---|---|
| '.$name.' | '.$quantity.' | '.$price.' | '.$date.' | '.$time.' | '.$phone.' | '.$comment.' |