I'm trying to write some values to my database, however it seems to fail since I'm getting the following error when I want to insert a record:
I hope someone can tell me what I'm doing wrong.
Warning: mysqli_query() [function.mysqli-query]: Empty query in
$con=mysqli_connect($db_host, $db_username, $db_password, $db_database);
echo "Failed to connect to MySQL: " . mysqli_connect_error();
$sql=mysqli_query($con,"INSERT INTO myproduct (product, model, price, quantity) VALUES ('hi', 'hixxx', '34', '99999')");
die('Error: ' . mysqli_error($con));