AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Mysql question (https://forums.alliedmods.net/showthread.php?t=136136)

ghostdlr 08-23-2010 09:30

Mysql question
 
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.

xPaw 08-23-2010 10:03

Re: Mysql question
 
plugin_end, but i would suggest using threaded queries

ghostdlr 08-23-2010 10:19

Re: Mysql question
 
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 08-23-2010 13:27

Re: Mysql question
 
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


All times are GMT -4. The time now is 21:57.

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