[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
#2

good job
Reply
#3

Are you sure this is going to work?
Reply
#4

You should at least do a minor test with things for "newbs" as if this is fucked it'll only complicate things for them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)