PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_select_db('realest1_proppost');
$query2 = "UPDATE customerindex SET cfirstname='$cfirstname', clastname='$clastname', cmidinitial='$cmidinitial', cstaddress='$cstaddress', cunitnum='$cunitnum', ccity='$ccity', czip='$czip', cphone='$cphone', cfax='$cfax', cemail='$cemail' WHERE login='$login', $db";
$result2 = mysql_query($query2);
if ($result2)
echo '<span class=p2><b>Profile Successful</b></span><br /><br />';
echo '<span class=psparkblu12><b>';
echo $myrow["login"];
echo '</b> You have successful updated your user profile for your property posting account</span><br /><br />';
echo '<a class=pmidblu href="proppost_controlpanel.php">Click here to return to Property Post Control Panel</br></a>';
I changed
$result2 = mysql_query($query2);
to
$result2 = mysql_query($query2) or die(mysql_error());
and I got the following error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' Resource id #11' at line 1