AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] SQL INSERT & UPDATE (https://forums.alliedmods.net/showthread.php?t=85699)

AntiBots 02-14-2009 16:54

[Solved] SQL INSERT & UPDATE
 
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.


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

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