• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

PHP fix

yss

Newbie Spellweaver
Joined
Dec 26, 2015
Messages
13
Reaction score
1
Someone a simple sulution for this?
 
Joined
Jun 8, 2007
Messages
1,985
Reaction score
490
What's the problem? Quote syntax in SQL command? My memory is fuzzy on those rules, but that might be it..

PHP:
$loadrecords = 12;
$sql = "SELECT * FROM `producten`
    WHERE `visible` = '1'
    ORDER BY `id` DESC
    LIMIT '{$loadrecords}'
";