Thomisback Posted April 8, 2008 Share Posted April 8, 2008 Hi, I have got a few simple querys in PHP but they don't work, and I can't find out why. The query is: $prijsver = $_POST['prijsver']; mysql_query("UPDATE `sportschool` SET `prijs`='$prijsver' WHERE gamename='$prefix' AND `land`='$data->land'"); Both, $prefix & $data->land are defined, but the query still does not work, any suggestions? Thanks! Link to comment https://forums.phpfreaks.com/topic/100097-solved-some-simple-querys-dont-work/ Share on other sites More sharing options...
quickstopman Posted April 8, 2008 Share Posted April 8, 2008 $prijsver = $_POST['prijsver']; mysql_query("UPDATE `sportschool` SET `prijs`='$prijsver' WHERE gamename='$prefix' AND `land`='$data->land'") or die(mysql_error()); i find it easier to know what the error is before you ask about it so try that if it tells you the error than you can help you self! -Zack Link to comment https://forums.phpfreaks.com/topic/100097-solved-some-simple-querys-dont-work/#findComment-511815 Share on other sites More sharing options...
Thomisback Posted April 8, 2008 Author Share Posted April 8, 2008 :/ I just used your line from the quote and now it works fine ??? Well, thanks! Link to comment https://forums.phpfreaks.com/topic/100097-solved-some-simple-querys-dont-work/#findComment-511817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.