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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.