Jump to content

withdraw + limits


ctcp

Recommended Posts

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

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.