Odd problem - not retrieving any records

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 16, 2010   (RSS)

Re: [garyhoffmann] Odd problem - not retrieving any records

By Chris - June 16, 2010

Hi Gary,

Can you please post the complete PHP source code for your page, as well as a description of (or link to) what the results are?

Does nothing print for print_r($coursesRecords)?

There is a debugging mode which shows you the SQL generated for your getRecords call. I'm not sure it'll help, but you can always try it:

list($coursesRecords, $coursesMetaData) = getRecords(array(
'tableName' => 'courses',
'debugSql' => true,
));

All the best,
Chris

Re: [chris] Odd problem - not retrieving any records

By garyhoffmann - June 16, 2010

Nevermind on this one. I'm calling this page with a querystring and did not put the allowSearch to false on the getRecords command, so it was trying to create a query with my querystring parameters.