18.07.2007, 08:10
here is a sample code for your loop:
Code:
new resultline[1024]; samp_mysql_connect("127.0.0.1", "root", ""); //replace with the good params samp_mysql_select_db("test"); //replace with the good database samp_mysql_query("SELECT * FROM members"); //replace with the good query samp_mysql_store_result(); while(samp_mysql_fetch_row(resultline)) { printf("%s\n", resultline); } samp_mysql_close();