Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-11-2009, 11:37 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 19,130
BMR777 is on a distinguished road
Default RE: MySQL queries ..?

This may be the issue:

PHP Code:
if($_GET["payclix"])
$newclix $clix $clixprice;
mysql_query("UPDATE users SET clix = '".$newclix."' WHERE username = '$loggedinname'");
$i++;
echo 
"clix: $clix balance: $newclix price: $clixprice name: $loggedinname";
}

elseif(
$_GET["paycash"])
$newcash $cash $cashprice;
mysql_query("UPDATE users SET cash = '".$newcash."' WHERE username = '$loggedinname'");
$i++;
echo 
"cash: $cash balance: $newcash price: $cashprice name: $loggedinname";

Mainly lines such as:

PHP Code:
mysql_query("UPDATE users SET clix = '".$newclix."' WHERE username = '$loggedinname'"); 
Should probably be:

PHP Code:
mysql_query("UPDATE ".$prefix."users SET clix = '".$newclix."' WHERE username = '$loggedinname'"); 
It simply looks like in a few of your queries you may be forgetting to use the table prefix for your database tables. :)

Let me know if that helps,
Brandon
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubles with queries pachoofoosh Questions and Supports 4 08-05-2013 11:32 AM
Question about Queries? Tsuntsun Questions and Supports 2 11-03-2011 01:57 PM
MySQL: What to do? Knyfe Questions and Supports 18 03-11-2011 12:52 PM
Anyone care to enlighten me as to why 188 queries are used on a page? Arianna Questions and Supports 5 05-14-2010 09:21 AM
mySQL help aroymart Questions and Supports 4 04-20-2009 12:13 AM


All times are GMT -5. The time now is 04:43 AM.

Currently Active Users: 6073 (0 members and 6073 guests)
Threads: 4,082, Posts: 32,047, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636