Raised This Month: $ Target: $400
 0% 

SQL querys


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
misterx
Member
Join Date: Jan 2011
Old 06-12-2011 , 16:04   SQL querys
Reply With Quote #1

Hi,

I've used SQL alot, but both SQLx and DBI modules seem too confusing. Can someone write me some code:
  1. I need to set g_number[id] (a player specific variable) to the one saved in MySQL database (you can use steam_id, nick, ip or even id, I don't care), if it is set. If its not, set it and default to zero.
  2. When player disconnects, I want to save the g_number[id] to MySQL.
If you don't understand, I can write a PHP code that does that.
misterx is offline
 



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 23:34.


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