MYSQL ip returns blank
#1

Hello guys. I am working on an auto-login code and im having problems. I am trying to retrieve an IP of a user from the database but it return blank with the following mysql error

Код:
17:19:45] CMySQLHandler::Query(SELECT `IP` FROM `users` WHERE  `Username` = 'Saurik') - Successfully executed.

[17:19:45] >> mysql_store_result( Connection handle: 1 )

[17:19:45] CMySQLHandler::StoreResult() - Result was stored.

[17:19:45] >> mysql_fetch_field_row( Connection handle: 1 )

[17:19:45] CMySQLHandler::FetchField(IP) - You cannot call this function now. (Reason: Fields/Rows are empty.)

[17:19:45] >> mysql_query( Connection handle: 1 )

Here is my code

http://pastebin.com/33bW7MUa


When i print the ip that is retrieved from the DB, its blank. >> The field IP does exist and has an ip in it <<
Reply


Messages In This Thread
MYSQL ip returns blank - by Saurik - 17.06.2012, 21:33
Re: MYSQL ip returns blank - by A7X_CEEJAY - 17.06.2012, 21:52
Re: MYSQL ip returns blank - by Calgon - 17.06.2012, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)