Hi, The ref is populated from a form i.e,
<?php echo $ref ?>
This then updates a mysql table and I get the message 1 record updated, but it doesn't update. Any ideas on why it doesn't update the table.
$sql="UPDATE table_one SET
ref='$ref',name='$name' WHERE ref ='$ref'";
die('Error: ' . mysql_error());
echo "1 record updated";
Not sure why it goes through but doesn't update..?
Thanks in advance.