Raised This Month: $ Target: $400
 0% 

[Solved] SQL INSERT & UPDATE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-14-2009 , 16:54   [Solved] SQL INSERT & UPDATE
Reply With Quote #1

Well how i do with sqlx to know if a row is writed? So if writing i update if not I insert.. Look in dbi is like this:

result = dbi_query(sql, "SELECT ............bla bla bla")

if( result == RESULT_NONE )
row is clean

else if( result <= RESULT_FAILED )
sql error

else
row is wrired.


Thanks.
__________________

Last edited by AntiBots; 02-14-2009 at 21:35. Reason: Solved
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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:08.


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