Jump to content

[SOLVED] A Bit Of Math


cdog5000

Recommended Posts

Add some error checking to get mysql/php to tell you if the mysql_query() is being executed without error -

 

mysql_query("UPDATE authTable SET minerMinutesLeft=minerMinutesLeft+10000 WHERE username = '$username'") or die("Update query failed: " . mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/119089-solved-a-bit-of-math/#findComment-613200
Share on other sites

Add some error checking to get mysql/php to tell you if the mysql_query() is being executed without error -

 

mysql_query("UPDATE authTable SET minerMinutesLeft=minerMinutesLeft+10000 WHERE username = '$username'") or die("Update query failed: " . mysql_error());

ok... i found out it was a simple syntax error in my username
Link to comment
https://forums.phpfreaks.com/topic/119089-solved-a-bit-of-math/#findComment-613203
Share on other sites

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.