3 Replies - 2030 Views - Last Post: 22 May 2014 - 12:46 AM Rate Topic: -----

#1 vinson89   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-May 14

Fatal Error Call to a member function free() on a non-object

Posted 22 May 2014 - 12:29 AM

I got fatal error message from the server, it said:

Fatal error: Call to a member function free() on a non-object in /home/tz005/public_html/COMP1687/edit.php on line 139

$result->free();


How to solve the error above?
Is This A Good Question/Topic? 0
  • +

Replies To: Fatal Error Call to a member function free() on a non-object

#2 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4192
  • View blog
  • Posts: 13,244
  • Joined: 08-June 10

Re: Fatal Error Call to a member function free() on a non-object

Posted 22 May 2014 - 12:34 AM

my bet is that the variable $result is out of scope.
Was This Post Helpful? 0
  • +
  • -

#3 vinson89   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-May 14

Re: Fatal Error Call to a member function free() on a non-object

Posted 22 May 2014 - 12:35 AM

Don't need to include it?
Was This Post Helpful? 0
  • +
  • -

#4 astonecipher   User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 2523
  • View blog
  • Posts: 10,101
  • Joined: 03-December 12

Re: Fatal Error Call to a member function free() on a non-object

Posted 22 May 2014 - 12:46 AM

Where is it being used in relation to the database code? Could you post where you're using it?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1