Raised This Month: $32 Target: $400
 8% 

SQL: Very confused!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KaOs
Senior Member
Join Date: Apr 2004
Old 02-08-2008 , 18:18   SQL: Very confused!
Reply With Quote #1

Ok lol this is my last question..

Now, I'm not an idiot, I program PHP and MySQL all day long, but this I just don't understand..

Code:
                new plrUniqueID;
		new Handle:Result = SQL_Query(DB, QueryString);
		plrUniqueID = SQL_GetInsertId(Result);
I get error:
Quote:
Native "SQL_GetInsertId" reported: Invalid statement or db Handle 5f9f0120 (error: 2)




Then I tried:

Code:
                new plrUniqueID;
		new Handle:Result = SQL_Query(DB, QueryString);
                SQL_FetchRow(Result);
		plrUniqueID = SQL_GetInsertId(Result);
I get error:
Quote:
Native "SQL_FetchRow" reported: No current result set

WITH BOTH CODES I GET THE ROW INSERTED INTO MY DB! The query is executing!!!
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
 



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


All times are GMT -4. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode