I am not a PHP/MYSQL coder, and need a bit of help if possible?
How can I construct a load records query that will return all records if there are no variables passed in the URL, but only the records matching the passed variable if on exists?
Here is what I have now, and it works great if the variable is passed, but I also would like the default URL to return all of the list records?
// load records from 'products_list'
list($products_listRecords, $products_listMetaData) = getRecords(array(
'tableName' => 'products_list',
'loadUploads' => true,
'allowSearch' => true,
'where' => "category = '$_GET[category]'",
));
Thanks for your help!
CMSB Rocks!
Thanks,
Kurt