hi
can anyone see an error with this code, i'm trying to check if the file i have in a certain directory is in my database, and if it isnt then put it in and tell me which files are new so i can tell people on my news page
<?
$sql = "SELECT * FROM `waypoints` WHERE `type` = '$wpt[$i]' AND `name` = '".$files."'";
$qry = mysql_query($sql) or die(mysql_error());
?>
i keep getting this error
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 ' AND name='as_52hours6.zip'' at line 1
could anyone please give me some insight as to why this is happening?
thanks, Comms