I am sure ths is simple but I can't find the mistake - I get a sql syntax error .....
I do a statistical analysis of every search done on my site and therefore have a massive database and I am only interested in the last, say, 10 000 searches - I have reached that 10 000 so now all I want to do is, right after the line of code that inserts new data, put a line of code which deletes the first bit of data.
$query = "DELETE FROM marketanalysis ORDER BY user_id LIMIT 1";
$result = mysql_query($query);
This doesn't work.....
I have tried apostrophes, LIMIT 0,1, including a where statement .. nothing seems to work. I've even restarted my computer as a last resort.
Thanks a lot.
Jon