nateforever96
Member
- Apr 11, 2021
- 59
- 21
$currencyData = mysql_fetch_array(mysql_query("SELECT * FROM
this is far as my logic goes with the pulling i am use to simple and when i have to pull a tables value only at the session user i get confused one person can get me a far way right now the tables are
Users_Currencys
values
Users_Id , Type , Amount
credits are type 0
diamonds 5
P.S. im trying to reconvert this and bring it back
if(isset($_POST['BuyRoll'])){
$userData = mysql_fetch_array(mysql_query("SELECT * FROM
$currencyData = mysql_fetch_array(mysql_query("SELECT * FROM
$Purchase = '5000';
if($userData['credits'] < $Purchase){
echo "Not Enough Credits</br></br>";
}else{
mysql_query("UPDATE
$LotControl = mysql_fetch_array(mysql_query("SELECT * FROM
if ($userData['online'] == 0){
$testUsers = mysql_query("SELECT * from user_lottery WHERE user_id = '". $_SESSION['user']['id'] ."' LIMIT 1");
if(mysql_num_rows($testUsers) > 0){
users_currency
WHERE user_id
= '".$_SESSION['user']['id']."'"));this is far as my logic goes with the pulling i am use to simple and when i have to pull a tables value only at the session user i get confused one person can get me a far way right now the tables are
Users_Currencys
values
Users_Id , Type , Amount
credits are type 0
diamonds 5
P.S. im trying to reconvert this and bring it back
if(isset($_POST['BuyRoll'])){
$userData = mysql_fetch_array(mysql_query("SELECT * FROM
users
WHERE id
= '".$_SESSION['user']['id']."'"));$currencyData = mysql_fetch_array(mysql_query("SELECT * FROM
users_currency
WHERE user_id
= '".$_SESSION['user']['id']."'"));$Purchase = '5000';
if($userData['credits'] < $Purchase){
echo "Not Enough Credits</br></br>";
}else{
mysql_query("UPDATE
users
SET credits = credits - $Purchase WHERE id = '".$_SESSION['user']['id']."'");$LotControl = mysql_fetch_array(mysql_query("SELECT * FROM
LotteryControls
"));if ($userData['online'] == 0){
$testUsers = mysql_query("SELECT * from user_lottery WHERE user_id = '". $_SESSION['user']['id'] ."' LIMIT 1");
if(mysql_num_rows($testUsers) > 0){