I recently created a membership listing form for a website. It has an administrative backend that will allow a user to insert, update, and delete member information. The backend seems to be working fine but on the public side, I sporadically receive an error that says:
Fatal error: Call to a member function on a non-object in /home/content/c/a/l/calvertmba/html/admin/members-admin/viewlist.php on line 10
Here is line 10 of my code:
***** PLEASE USE
Code: Select all
AND OTHER TAGS *****[/color]Code: Select all
$maxRecord = 10;
$sqlbase = "SELECT * FROM members ".$myData->whereStr.$myData->getOrderString();
$sql = $sqlbase."LIMIT ".(($myData->actPageNr-1)*$maxRecord).",".$maxRecord;
$Result = $MyDb->f_ExecuteSql($sql);
$ResultRowNr = $MyDb->f_GetSelectedRows($Result);
$ResultTotalRow = $MyDb->f_ExecuteSql($sqlbase);
$totalRows = $MyDb->f_GetSelectedRows($ResultTotalRow);Any help would be greatly appreciated. I'm trying to finish this project by the end of the week.
Thank you