Raised This Month: $ Target: $400
 0% 

Mysql question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 08-23-2010 , 09:30   Mysql question
Reply With Quote #1

I would prefer not to open and close the mysql connection in each function where I use a query .

I can place the open mysql connection in plugin init but where can I place the close connection block ?

I want everything to be optimized.

Last edited by ghostdlr; 08-23-2010 at 09:33.
ghostdlr is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-23-2010 , 10:03   Re: Mysql question
Reply With Quote #2

plugin_end, but i would suggest using threaded queries
__________________
xPaw is offline
ghostdlr
Senior Member
Join Date: Aug 2010
Old 08-23-2010 , 10:19   Re: Mysql question
Reply With Quote #3

I didn't knew dbi was outdated .

Meanwhile I found this tutorial.
https://forums.alliedmods.net/showthread.php?t=46779
Is this the best way ?
ghostdlr is offline
ghostdlr
Senior Member
Join Date: Aug 2010
Old 08-23-2010 , 13:27   Re: Mysql question
Reply With Quote #4

How can I read the data from a particular column ?

Can I do this with ReadResult ? How ?
http://www.amxmodx.org/funcwiki.php?go=func&id=1105
ghostdlr is offline
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 21:57.


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