Jump to content

[SOLVED] Catchable fatal error: Object of class Command could not be converted to string


jamesxg1

Recommended Posts

Can someone help me do this please,

 

      function EditEst($ename, $ephone, $eaddress, $eaddresstwo, $ecounty, $ecity, $epostcode, $ecountry) {

                   session_start();
                   
          $this->ename =       mysql_real_escape_string(addslashes($ename));
          $this->ephone =      mysql_real_escape_string(addslashes($ephone));
          $this->eaddress =    mysql_real_escape_string(addslashes($eaddress));
          $this->eaddresstwo = mysql_real_escape_string(addslashes($eaddresstwo));
          $this->ecounty =     mysql_real_escape_string(addslashes($ecounty));
          $this->ecity =       mysql_real_escape_string(addslashes($ecity));
          $this->epostcode =   mysql_real_escape_string(addslashes($epostcode));
          $this->ecountry =    mysql_real_escape_string(addslashes($ecountry));
          $this->eeusername =  mysql_real_escape_string(addslashes($_SESSION['username']));
          $this->eeid =        mysql_real_escape_string(addslashes($_SESSION['id']));

**********!!!!!! LINE 120 START!!!!!!!************       
       mysql_query("UPDATE `establishments` SET name = '$this->ename', phone = '$this->ephone', address = '$this>eaddress', addresstwo = '$this->eaddresstwo', county = '$this->ecounty', city = '$this->ecity', postcode = '$this->epostcode', country = '$this->ecountry' WHERE mid = '$this->eeid' AND username = '$this->eusername'") or die(mysql_error());

**********!!!!!! LINE 120 END !!!!!!!************ 
       $addone = "Your establishment was sucessfully added.";

       return $addone;  


}

 

Many thanks,

 

James.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.