new Props;
mysql_query("SELECT * FROM `props`");
mysql_store_result();
Props = mysql_num_rows();
printf("MAX Props: %i",Props);
mysql_affected_rows()
mysql_debug(1);
[02:34:44] [02:34:44] --------------------------- [02:34:44] MySQL Debugging activated (07/15/11) [02:34:44] --------------------------- [02:34:44] [02:34:44] >> mysql_query( Connection handle: 1 ) [02:34:44] >> mysql_query() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_store_result( Connection handle: 1 ) [02:34:44] >> mysql_store_result() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_num_rows( Connection handle: 1 ) [02:34:44] >> mysql_num_rows() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_connect( ) [02:34:44] CMySQLHandler::CMySQLHandler() - constructor called. [02:34:44] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "QDM" | Username: "root" ... [02:34:44] CMySQLHandler::Connect() - Connection was successful. [02:34:44] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
Which Plugin is this? G-StylezZz or StrickenKid's?
This will make the query not function right ^. |
new Props, szQuery[128];
format(szQuery, sizeof(szQuery), "SELECT * FROM `Props`");
SendQuery(szQuery);
mysql_store_result();
Props = mysql_num_rows();
mysql_free_result();
printf("MAX Props: %d",Props);
pawn Код:
|
new Props, szQuery[128];
format(szQuery, sizeof(szQuery), "SELECT * FROM `Props`");
SendQuery(szQuery);
mysql_store_result();
Props = mysql_num_rows();
mysql_free_result();
printf("MAX Props: %d",Props);
return Props;
new Props, szQuery[128];
format(szQuery, sizeof(szQuery), "SELECT * FROM `Props`");
SendQuery(szQuery);
mysql_store_result();
Props = mysql_num_rows();
mysql_free_result();
printf("MAX Props: %d",Props);
return Props;
new Props, szQuery[128], szString[128];
format(szQuery, sizeof(szQuery), "SELECT * FROM `Props`");
SendQuery(szQuery);
mysql_store_result();
Props = mysql_num_rows();
mysql_free_result();
format(szString, sizeof(szString), "Max Props= %d", props);
printf("MAX Props: %d",szString);
return Props;
here the debug text:
Код:
[02:34:44] [02:34:44] --------------------------- [02:34:44] MySQL Debugging activated (07/15/11) [02:34:44] --------------------------- [02:34:44] [02:34:44] >> mysql_query( Connection handle: 1 ) [02:34:44] >> mysql_query() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_store_result( Connection handle: 1 ) [02:34:44] >> mysql_store_result() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_num_rows( Connection handle: 1 ) [02:34:44] >> mysql_num_rows() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0). [02:34:44] >> mysql_connect( ) [02:34:44] CMySQLHandler::CMySQLHandler() - constructor called. [02:34:44] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "QDM" | Username: "root" ... [02:34:44] CMySQLHandler::Connect() - Connection was successful. [02:34:44] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. |