Raised This Month: $ Target: $400
 0% 

Checking if mysql items exist and creating them...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 05-09-2004 , 23:45   Checking if mysql items exist and creating them...
Reply With Quote #1

Could someone give me a little hint on this?...I'm going to start working on AMX_Live again.

I want to know, how can I tell if a database is made, and how can I tell if the table, and the fields in that table are all made?...

I'm going to add checking of the mysql table and creation built into the plugin so nobody has to worry about creating their database, they just have to worry about setting the proper connect cvars.
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 05-10-2004 , 04:29  
Reply With Quote #2

use mysql_error
if the table does not exist then the mysql will return proper error
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
Reply


Thread Tools
Display Modes

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:04.


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