runnerjp Posted February 13, 2010 Share Posted February 13, 2010 where am i going wrong here: $insert = mysql_query("REPLACE INTO `users` SET `".$forum."`=`".$timestamp."` where id = `".$id."`") or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
sader Posted February 13, 2010 Share Posted February 13, 2010 surround table names, field names db's names by `, but field values surround by ' or " SELECT * FROM `table` WHERE `name`='user_name'; Quote Link to comment Share on other sites More sharing options...
Mchl Posted February 13, 2010 Share Posted February 13, 2010 That's exactly why you should not use backticks. You use too many of them. $insert = mysql_query("REPLACE INTO users SET $forum ='$timestamp' where id = $id") or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.