Jump to content

Updating the same values to db


gaffafoote

Recommended Posts

Hi there.

 

I am pulling information from my database and populating some forms with this information. This is in the aim of letting the user UPDATE information. If the user then changes their mind about changing the values and leaves them the same, the query then tries to update the fields with the same values as they already contain. This then causes my scripts to stop yet mysql_error is not bringing back any information.

§

 

$query = "UPDATE fp_tags SET tag1='$tag1', tag2='$tag2', tag3='$tag3' WHERE page_id='$tid'";

$result = @mysql_query ($query) OR DIE(mysql_error());

 

 

echo '<p>'.mysql_error() .'<br /><br />This error relates to this query: ' .$query.

 

 

Yours with bleary eyes,

 

Gareth

Link to comment
https://forums.phpfreaks.com/topic/50579-updating-the-same-values-to-db/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.