View Single Post
  #12  
Old 07-01-2010, 01:15 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by sssssssssss View Post
This was working perfectly find when I was using a dbnpc, so I saw no real need to post where they came from.
You mean the code was working when it was in a DBNPC? If so, where is it now?

Quote:
Originally Posted by sssssssssss View Post
PHP Code:
temp.reqitem requestsql("SELECT id FROM Items WHERE name = '" @temp.item"'"true);
  
temp.blue 1;
  
temp.queryString requestsql("INSERT INTO Auction_Selling VALUES (" @temp.blue", " @temp.sellacct", " @temp.reqitem["rowid"]@ ", " @temp.blue", " @temp.blue", " @temp.price", " @temp.reqitem["category"]@ ")"true);
  echo(
temp.queryString);
  
requestsql(temp.queryStringtrue); 
and all im getting back is this
PHP Code:
SQLRequest_325830 
dont understand why. :x
You're getting SQLRequest_325830 because requestsql returns a "request object", so it's not actually a string like the variable name queryString implies. Also, since you're doing INSERT in the query the query object won't contain very much data like it would if you were SELECTing something.

Maybe you meant to do this?
PHP Code:
temp.queryString "INSERT INTO Auction_Selling VALUES (" @temp.blue", " @temp.sellacct", " @temp.reqitem["rowid"]@ ", " @temp.blue", " @temp.blue", " @temp.price", " @temp.reqitem["category"]@ ")";
echo(
temp.queryString);
requestsql(temp.queryStringtrue); 
Reply With Quote