Mysql not displaying any results?

Remove the use of $_SESSION. May be you are not initialized it or something else. Just put escaped username into the SQL.

Remove the use of $_SESSION. May be you are not initialized it or something else. Just put escaped username into the SQL $username = mysql_real_escape_string( $_GET 'nicky' ) ; $result = mysql_query("SELECT * FROM users WHERE username='$username'") or die(mysql_error()); If you want requested username to be stored in session (hightly possible you dont, but if you still want), make sure you initialized session: called session_start() in config.php.

Profile with the session start and db connect at top of the page – user1121083 Dec 29 '11 at 20:29 then print out your query: $sql = "SELECT * FROM users WHERE username='$username'"; echo $sql; die(); Then go to PHPMyAdmin and run it. May be there is no user with this username or something like that – Anton Serdyuk Dec 29 '11 at 21:07 And put this query here of couse – Anton Serdyuk Dec 29 '11 at 21:08.

You probably need to start the session first session_start().

Profile with the db and session start ont op of it – user1121083 Dec 29 '11 at 20:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions