ctcp Posted November 11, 2011 Share Posted November 11, 2011 im trying to create withdraw page <?php $query=mysql_query("SELECT * FROM users WHERE login='$data->login'")or die(mysql_error()); $row = mysql_fetch_array($query); $moneycount="5000"; $count=$row['coins']; if(isset($_POST['send'])) { if($_POST['name'] == ""){ $mesaj = "<div class=\"msg\"><div class=\"error\">". $lang['PLEASE_ENTER'] ."</div></div>"; }else if($_POST['email'] == ""){ $mesaj = "<div class=\"msg\"><div class=\"error\">". $lang['PLEASE_ENTER_YOUR_MAIL']."</div></div>"; }else if($_POST['message'] == ""){ $mesaj = "<div class=\"msg\"><div class=\"error\"> ".$lang['PLEASE_ENTER_YOUR_MESSAGE'] . "</div></div>"; }else if ($moneycount => $count ){ $mesaj = " not engout money"; }else{ $subject ="Withdraw"; $message="{$_POST['message']} BANK{$_POST['bank']} Likes{$_POST['likes']} "; $header="From: {$_POST['name']} <{$_POST['email']}>"; $to = $site->site_email; $send_contact=mail($to,$subject,$message,$header); if($send_contact);{ echo $sent = "<div class=\"msg\"><div class=\"success\">". $lang['WITHDRAW_REQUEST']."</div></div>"; }}} ?> evrithink is working fine the only promblem is i whant to add limit 5000 coins can sombady tell me what is wrong here and not working? $moneycount="5000"; $count=$row['coins']; else if ($moneycount => $count ){ $mesaj = " not engout money" Link to comment https://forums.phpfreaks.com/topic/250943-withdraw-limits/ Share on other sites More sharing options...
AyKay47 Posted November 11, 2011 Share Posted November 11, 2011 the greater than or equal to comparison operator in PHP is >= not => Link to comment https://forums.phpfreaks.com/topic/250943-withdraw-limits/#findComment-1287389 Share on other sites More sharing options...
ctcp Posted November 11, 2011 Author Share Posted November 11, 2011 i need cofee Link to comment https://forums.phpfreaks.com/topic/250943-withdraw-limits/#findComment-1287391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.