Just to state the difference in markl999's code (as it may not be immediately obvious), the ", " needed to be deleted from:
Code: Select all
review, rating)", "VALUES ('blah', 'blah',
as the SQL statement should be all in one string.
You will probably find that debugging will be made easier in the long run if you separate your SQL statements from the mysql_query() function so that you have things like:
Code: Select all
$sql = "INSERT INTO soda_sodas(image, imageb, title, company, categories, information, review, rating) VALUES ('blah', 'blah', 'blah', 'blah', 'blah', 'blah', 'blah', 'blah')";
@mysql_query($sql, $connect) or die(mysql_error().'<p>'.$sql.'</p>');
It makes it easier to echo out the SQL for testing.
Mac