Cannot update my table with the follow code...have been trying for hours... tagboard is the table name, mytag1 is what I want to update with reference to emailadd.
$myemail = mysql_real_escape_string( $_POST["myemail"] );
$mytag1 = mysql_real_escape_string( $_POST["mytag1"] );
echo $mytag1;
$query = "UPDATE tagboard SET mytag1='{$mytag1}' WHERE emailadd = {$myemail}";
$result=mysql_query($query);
OR
$sql="UPDATE tagboard SET mytag1 ='".$_POST['mytag1']."' WHERE myemail='".$_POST['myemail']."'";
$result=mysql_query($sql);
Appreciate your help!
mysql_error()is your friend