Hi Rob, thanx for your help...
this is what i came up with:
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("SummerProject",$db);
$sql = "SELECT user FROM valid WHERE user='$user' AND pass='$pass'";
$result = mysql_query($sql,$db);
if ($myrow = mysql_fetch_array($result)) {
do {
echo "You are logged in as, <b>$user</b>";
} while ($myrow = mysql_fetch_array($result));
} else {
echo "<SCRIPT>location.replace('../../index.htm')</SCRIPT>";
}
?>
The problem is that i dont know anything about cookies 🙁
Could you write a bit of code of how i can set up cookies... thanx