besly98 Posted December 8, 2010 Share Posted December 8, 2010 hi all i am trying to pass a value into an update query in mysql but i cant seem to get it working. whta is the correct syntax for this? the code is below UPDATE `team` SET $_GET['type'] = '".$_GET['result']."' (incase you wondering) im passing the correct row name into the GET['type'] as i want that to be dynamic depending on what the user selects) Thanks Link to comment https://forums.phpfreaks.com/topic/221015-mysql-error/ Share on other sites More sharing options...
Buddski Posted December 8, 2010 Share Posted December 8, 2010 Can you show us a snippet of your code.. especially the SQL execution part. Also you should check the fields being entered from the form. Link to comment https://forums.phpfreaks.com/topic/221015-mysql-error/#findComment-1144392 Share on other sites More sharing options...
fenway Posted December 8, 2010 Share Posted December 8, 2010 And you're missing a WHERE clause. Link to comment https://forums.phpfreaks.com/topic/221015-mysql-error/#findComment-1144495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.