code? for that reason it doesn't insert and it doesn't state any errors too
if($_SERVER['REQUEST_METHOD']=='POST')
if(isset($_POST['sbmt']))
{
if($result1="INSERT INTO basket(productqty, sum, fname) VALUES ('$qty','2','$selectdata')" or die(''.mysqli_error($conn)))
{
echo "<script>alert(' ok');</script>";
}
else{
echo mysqli_error($conn);
}}
Please format the code you posted, by wrapping it in triple backticks. -> `
Here no arguments
Обсуждают сегодня