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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.