At 5:24 PM -0400 8/1/01, Steve Fitzgerald wrote:
>I belive this UPDATE should work, but it isn't. I get no errors. I have also
>tried using FieldName= '$Fieldname', but that does not seem to work either.

Try your WHERE clause with a SELECT statement and see if it's actually
matching any rows.

>$table_name = "contacts";
>$update_contact_sql = "UPDATE $table_name
>FirstName =\"$FirstName\",
>LastName = \"$LastName\",
>Title = \"$Title\",
>WorkPhone = \"$WorkPhone\",
>HomePhone = \"$HomePhone\",
>Mobile = \"$Mobile\",
>EmailName = \"$EmailName\",
>Birthday = \"$Birthday\"
>WHERE ContactID = \"$ContactID\"
>$result = @mysql_query($update_contact_sql, $connection) or die ("Couldn't
>execute query.");


PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to