codrgii Posted February 4, 2010 Share Posted February 4, 2010 I'm declaring a table name as a varable and trying to update a table using that varable name, like below. $table = "coursework"; odbc_exec($con, "UPDATE $table SET number = '1'"); but when i try that it errors, does anyone know what's to be done here? Link to comment https://forums.phpfreaks.com/topic/190979-updating-query/ Share on other sites More sharing options...
trq Posted February 5, 2010 Share Posted February 5, 2010 What is the error? Link to comment https://forums.phpfreaks.com/topic/190979-updating-query/#findComment-1007329 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.