Raised This Month: $ Target: $400
 0% 

Noob MySQL Question...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-07-2005 , 22:22   Noob MySQL Question...
Reply With Quote #1

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?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-08-2005 , 00:47  
Reply With Quote #2

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
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-08-2005 , 18:40  
Reply With Quote #3

well i like the ghetto mysql_getfield better... I don't like how baliopan changed it
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Reply



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 19:15.


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