this is the code, but this code works on my hosting provider but not on my own server. I think i have to change settings in php.ini but dont know which...
first page:


include "connect.php";
include "functions.php";

            $user= $_GET["email"];
            $ww = $_GET["ww"];

$check_user_query = "select id,email, password from user where email='$user' and password='$ww'";
$check_user_res = mysql_query($check_user_query) or die(mysql_error().": $check_user_query");

            if (mysql_num_rows($check_user_res) == 1){
                   //user is ingelogd

                                 $userdata = mysql_fetch_array($check_user_res);
                         $_SESSION['logged_in'] = true;
                         $_SESSION['sid'] = $sid;
                         $_SESSION['user'] = $uid;

                         $dt = date("Y-m-d H:i:s");

               header("location: user.php?action=0");
                   header("location: user.php?action=9");

second page:



if ( isset($_SESSION['logged_in'])){

echo "Welcome...";

          header("location: user.php?action=9");

Hotmail en Messenger on the move

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to