Jump to content

[SOLVED] What's wrong with my update code?


dumpty

Recommended Posts

Hey

 

$query = "UPDATE table SET $this = $that WHERE id = $id";
$exe = mysql_query($query) or die ("Could not execute query");

 

 

Tried  replacing the variables with definite numbers and values, still doesnt work. I can echo the variables right before so I know they exists etc. I am connected to the DB, right table name and all.

 

What'd i do?

 

Thankyou

Link to comment
https://forums.phpfreaks.com/topic/66755-solved-whats-wrong-with-my-update-code/
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.