Jump to content

Recommended Posts

Hello,

 

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:

$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);

 

I created the database on my local server using PHPAdmin 2.6.3 & Mysql 5.0.2. The forms were created using PHP Wizard  0.3.  They are residing on a server that is running Mysql 4.1

 

Any help would be greatly appreciated. I'm trying to finish this project by the end of the week.

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/73418-fatal-error-call-to-member-function/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.