Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2336 points

ahmedeleven

Favorite Answers8%
Answers71
  • problem in session (PHP) :(?

    im beginner in PHP ... and i have problem with my first script using sessions and here is the code :

    1st page :

    <?

    //page.php

    session_start();

    ?>

    <html>

    <head></head>

    <body>

    <form name="form1" method="post" action="page2.php">

    User Name <input type="text" name="userName"/><br>

    Password <input type="password" name="pass"/><br>

    <input type="submit" value="eb3at"/>

    </form>

    <?

    $User=$_GET['userName'];

    $pass=$_GET['pass'];

    $conn=mysql_connect("localhost","root","***********");

    $db=mysql_select_db("fake",$conn);

    $query="select * from privacy where user='$User' and pass='$pass'";

    $result=mysql_query($query);

    $num=mysql_num_rows($result);

    if($num==1)

    {

    $_SESSION['auth']="yes";

    $_SESSION['user']=$User;

    header("Location: page2.php");

    }

    ?>

    </body>

    </html>

    2nd page :

    <?

    //page2.php

    session_start();

    if($_SESSION['auth']!=yes)

    {

    include("page.php");

    echo " invalid user and pass " ;

    }

    else

    {

    echo " welcome";

    }

    ?>

    wats wrong with this code ???!!! .. :(:(

    3 AnswersProgramming & Design1 decade ago
  • how 2 control the keeper in FIFA 2008?

    i know that its possible 2 control goal keeper in FIFA 2008 after committing a foul , when u wanna him to be in the against box when u have a corner kick or anytime ...

    how 2 do this ???? ... i have game pads the same as play station pads ... thnx

    3 AnswersVideo & Online Games1 decade ago