Help please
Posted: Sat Aug 30, 2008 4:29 pm
Here is my code:
And I keep getting:
Code: Select all
<?php
$dbh=mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("anima33_have");
mysql_query("SELECT * FROM mods WHERE left='1'") or die(mysql_error());
?>Help please?You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='1'' at line 1