Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't get it. This is extremely frustrating. This should work perfectly fine.
[code:1] $query = "DELETE FROM #__liveshoutbox WHERE nameid='66'"
. "ORDER BY id DESC LIMIT 10";
$database->setQuery($query);
[/code:1]
66 would be replaced obviously, but as a test I let it run and NOTHING happened. What in the heck is going on with this. User 66 has over 20 rows. It should have deleted all but the 10 newest.
Please Log in or Create an account to join the conversation.