Jump to content

[SOLVED] Some simple querys don't work :/


Thomisback

Recommended Posts

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

$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! :D

 

-Zack

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.