Hi All
Im having a problem when trying to submit data using MySQL INSERT Query to my Database. I have tried using mysql_error() to determine the problem but it returns empty.
First I thought it was a Database connection problem but I'm having no trouble getting the Data from the Database on the server.
Here is the code that im using to test.
[code]<?php
mysql_connect('SERVER','USER NAME','PASSWORD');
mysql_select_db('pumas');
$query = mysqli_query("INSERT INTO `test`(`name`) VALUES (Andreas)");
if($query){echo 'INSERT Working';} else { echo 'INSERT Not Working';}
echo mysql_error($query);
?>[/code]
Any help or input will be appreciated :).