22.09.2011, 13:11
(
Последний раз редактировалось kuba707; 22.09.2011 в 15:32.
)
Hi, I am a Pole, I'm sorry for my English.
I have a table `gangs` that consists of these fields: `gid` (index), `leader`, `name`, `shortname`, `created`
The table is empty. Then send query:
Next is the code to mysql_num_rows, but before he performs, the database already crashes, then the server shuts down.
Here is the log
Edit: The problem of obsolete. I added the before mysql_num_rows function mysql_store_result and now it works.
I have a table `gangs` that consists of these fields: `gid` (index), `leader`, `name`, `shortname`, `created`
The table is empty. Then send query:
Код:
SELECT * FROM gangs WHERE name='Grove Street' OR shortname='GS'
Here is the log
Код:
[14:44:37] CMySQLHandler::Query(SELECT * FROM gangs WHERE name='Grove Street' OR shortname='GS') - Successfully executed. [14:44:37] >> mysql_num_rows( Connection handle: 1 ) [14:44:37] CMySQLHandler::NumRows() - You cannot call this function now. (Reason: Dead Connection) [14:44:37] >> mysql_ping( Connection handle: 1 )