I meant there is no row in table members where username='$logname',
whatever value $logname contains.
Don't forget to run session_start() at the begining of every script.
Andy wrote:
logname is not in my database.
It is a session variable used to hold the members login name.
In the form it is s
logname is not in my database.
It is a session variable used to hold the members login name.
In the form it is session_register('logname'); which is then set to a
variable with this code:
if ($num2 > 0) { // password is correct
$auth="yes";
$logname=$fusername;
$tod
Andy wrote: (and Marek fixed)
$connection = mysql_connect($host, $user,$password)
or die ("Couldn't connect to server.");
$db = mysql_select_db($database, $connection)
or die ("Couldn't select database.");
$sql = "SELECT name FROM members
WHERE username=
3 matches
Mail list logo