Mysql little explain
#1

Ok i fully know mysql but in samp i cant understand one how when i select some thing like
Код:
mysql_query(SELECT * FROM USER WHERE USERNAME='...some string');
So i want to ask how to save it as a new string in samp beacuse
Example:
Код:
new adminlevel[MAXPLAYERS];
so here i want to save some row from mysql in this String
Reply
#2

use format..
Код:
format(query,sizeof query, "SELECT * FROM USER WHERE USERNAME='%s'",..some string);
mysql_query(query);
Reply
#3

and then when i select it how to save it in sting
if i cant save it i cant do anything with mysql
Reply
#4

Look at all the mysql/sqlite tutorials on the forum. ****** is your friend. To save items in a database it's the UPDATE clause.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)