$result= mysql_query("SELECT * FROM users WHERE userName = '$username'");
if (!$result) {
die('Invalid Username: ' . mysql_error());
}
$row = mysql_fetch_array( '$result' );
$temp = $row('userName');
echo $temp;
When I run this I get:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /url.com/loginprocess.php on line 22
Fatal error: Function name must be a string in /url.com/loginprocess.php on line 23
Line 22 is the one that starts with $row =
Bookmarks