Jump to content
  • 0

ostatní mysql podmienka


BlueSk

Dotaz

Zdravím potreboval by som podmienku v mysql,že musí byť hodnota totalbet rovná alebo väčšia hodnote totaldeposit 

 

Kod

$query0 = mysql_query("SELECT * FROM `steam_users` WHERE steamid='$steamid'") or die("{\"success\": false, \"reason\":\"".mysql_error()."\"}");

if(mysql_num_rows($query0) == 0) {
	die("{\"success\": false, \"reason\":\"invalid_tradeurl\"}");
}

$result = mysql_fetch_array($query0);

if($type == 'withdraw' && $result['totaldeposited'] < 2) {
	die("{\"success\": false, \"reason\":\"deposit\"}");
}
Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...