AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Noob MySQL Question... (https://forums.alliedmods.net/showthread.php?t=10084)

TotalNoobScripter 02-07-2005 22:22

Noob MySQL Question...
 
hehe, so noob...

When you do a getfield from query in a mysql database... and the data that you retrive in the mysql database is set for an integer, does mysql_getfield keep it an integer or is it a string and i must use str_to_num?

XxAvalanchexX 02-08-2005 00:47

There is no mysql_getfield. I'm assuming you mean dbi_field. If that is the case...

With two parameters (the result and the field), it returns an integer. With three parameters it returns a Float by reference to the third parameter. With four parameters, it returns a String by reference to the third parameter up to the fourth parameter (maxLength).

http://www.amxmodx.org/funcwiki.php?go=func&id=212

TotalNoobScripter 02-08-2005 18:40

well i like the ghetto mysql_getfield better... I don't like how baliopan changed it :roll:


All times are GMT -4. The time now is 19:15.

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