where $CURRENT_USER['num'] problem after post!

Re: [ht1080z] where $CURRENT_USER['num'] problem after post!

By Jason - December 9, 2011


What's happening is that all of the information you just posted form the form is making it's way into your getRecords() query. you can stop this by using setting the 'allowSearch' option to false like this:

list($accomRecords, $accomMetaData) = getRecords(array(
'tableName' => 'accoms',
'where' => 'owner = '.mysql_escape($CURRENT_USER['num']),
'limit' => '1',
'allowSearch' => false,
$accomRecord = @$accomRecords[0];

Hope this helps
Jason Sauchuk - Project Manager

Hire me! Save time by getting our experts to help with your project.

Re: [Jason] where $CURRENT_USER['num'] problem after post!

By ht1080z - December 9, 2011


That was simple! [:)] i lost myself in php and mysql syntax...

Thank you!