07.12.2012, 15:10
I do not understand the principle of a little. Suppose this code:
How to determine where to save the query results? Where pull information?
Next, let's say I want to display nicknames players who are in the n-th organization. The query:
These nicknames are written to a variable, as they then bring in a column?
PHP код:
mysql_store_result();
if (mysql_num_rows() >= 1)
{
new tmp[MAX_STRING];
mysql_retrieve_row();
mysql_get_field("ID", tmp);
SetPVarInt(playerid, "MySQL_ID", strval(tmp));
Next, let's say I want to display nicknames players who are in the n-th organization. The query:
PHP код:
SELECT `Name` FROM `users` WHERE `Org` = 'n'