Hi wonder if anyone could help with cookies, it doesnt seem to send one
my code is..
btw this is called from a html form using username/password
<?
mysql_connect("localhost", $user, $pass)
or die ("Unable to connect to server.");
mysql_select_db($table)
or die ("Unable to select database.");
$sql = "SELECT USERID FROM users WHERE username='$username' and password='$password'";
$result = mysql_query($sql)
or die ("Unable to get results.");
$num = mysql_numrows($result)
or die ("You're not authorized to be here.");
if ($num == 1) {
setcookie("wwcookie", '$result', time()+94608000, "/");
}
?>
thanks