Cant find a reason for this not to work
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 '* FROM urls ORDER BY id DESC LIMIT 0,10' at line 1
PHP Code:
<?php
$con = mysql_connect("localhost","***","***");
mysql_select_db("dubstep3_project1");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_query("DELETE * FROM urls ORDER BY id DESC LIMIT 0,10")
or die(mysql_error());
?>
Any help is greatly appreciated
Also in-cases its not obvious enough trying to delete top 10 row...i tried the TOP function and that also does not work.