I want to add something to a database using a file instead of ftp. The following code excutes fine, however nothing is created in the database. The database names are correct. Any ideas?
$sql = "INSERT INTO $table SET item = '$item',";
this is invalid SQL.
Just to clarify our Junior Members post, ( 🙂 ) the comma is not needed on the end of the query.
HalfaBee
oh yea oops. My blind mistake :/
it still doesnt work even without the ,
$sql = "INSERT INTO $table SET item = '$item'"; $result = mysql_query($query);
nevermind, my mistake