Problems displaying Uploads

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 10, 2011   (RSS)

By sidcam - April 8, 2011

I'm trying to display a list of some uploads.

However my viewer:

list($reportsRecords) = getRecords(array(
'tableName' => 'uploads',
'where' => 'tableName = "community_reports"',
));

Is generating the following error:

Notice: Undefined index: listPageOrder in /home/stlage5/public_html/cmsAdmin/lib/viewer_functions.php on line 70

How do edit the table Uploads?

Re: [sidcam] Problems displaying Uploads

By Jason - April 10, 2011

Hi,

You can avoid this error by querying the uploads table directly instead of using the getRecords() function. Try this:

$query = "SELECT * FROM `{$TABLE_PREFIX}uploads` WHERE tableName = 'community_reports'";
$reportsRecords = mysql_query_fetch_all_assoc($query);


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/