[Include] [INC] MySQL Light
#1

To new users, (even to me when i was new) scripting mysql looks hard, one of the reason are the functions' name. In this include i re-named the Functions and added a few checks, like samp_mysql_get_field has to be used after samp_mysql_fetch_row.

It will slow down (just a little) the script processing speed, but you can use until you learn mysql.

The new functions' names are:

Quote:

native MySqlConnect(server[], user[], password[]);

native MySqlSelectDB(db[]);

native MySqlQuery(query[]);

native MySqlStoreResult();

native MySqlFetchRow(line[]);

native MySqlNumerOfRows();

native MySqlNumberOfFields();

native MySqlCloseConnection();

native MySqlGetPing();

Check https://sampwiki.blast.hk/wiki/mysql for more Details on the functions.

Download Link

PS: I kno' it's a small thing, but it helps the newbies.
Note: i haven't use it, cause i don't need it (atm), so if you encounter any problem, let me kno'
Reply


Messages In This Thread
[INC] MySQL Light - by cmg4life - 29.10.2009, 11:24
Re: [INC] MySQL Light - by SergiKirov - 29.10.2009, 11:55
Re: [INC] MySQL Light - by Sergei - 29.10.2009, 13:27
Re: [INC] MySQL Light - by NeRoSiS - 29.10.2009, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)