jamesxg1 Posted August 10, 2009 Share Posted August 10, 2009 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. Link to comment https://forums.phpfreaks.com/topic/169642-solved-catchable-fatal-error-object-of-class-command-could-not-be-converted-to-string/ Share on other sites More sharing options...
jamesxg1 Posted August 10, 2009 Author Share Posted August 10, 2009 Does anyone know what this error means ?, James. Link to comment https://forums.phpfreaks.com/topic/169642-solved-catchable-fatal-error-object-of-class-command-could-not-be-converted-to-string/#findComment-894982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.