$res=mysql_query("SELECT * FROM users WHERE username={$_SESSION['user']}");
This line is giving me a lot of trouble. It returns blank when it should be returning something. Anyone have an idea?
$res=mysql_query("SELECT * FROM users WHERE username={$_SESSION['user']}");
This line is giving me a lot of trouble. It returns blank when it should be returning something. Anyone have an idea?
I have session_start at the top. $_SESSION['user'] is properly echoing out the username.
It's combined with $userRow=mysql_fetch_array($res);
Figured it out thanks.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.