Search results

  1. E

    Is my Login PHP correct, its not working? (logout....)?

    -----------INDEX.PHP <?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', True); session_start(); ?> <html> <head> <title>My login</title> </head> <body> <div></div> <?php if (isset($_SESSION['username'])) { ?> You are now logged in <a href="index.php">Logout</a> <?php } else {...
  2. E

    what is wrong with my restricted page PHP code?

    i made this code in dreamweaver. i made a new .PHP file and went to server behaviors and made the page restricted. i uploaded to the website's server. i test it and an error comes out -> Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in ....... on line 19...
  3. E

    Query was empty (PHP)?

    ive been going crazy!!! can someone please take a look at this code and figure out why i get the message "Query was empty"??? <?php $username =$_POST['username']; $password =$_POST['password']; $login =$_GET['login']; setcookie("username","$username",time()+86400); $con =...
  4. E

    Query was empty (PHP)?

    ive been going crazy!!! can someone please take a look at this code and figure out why i get the message "Query was empty"??? <?php $username =$_POST['username']; $password =$_POST['password']; $login =$_GET['login']; setcookie("username","$username",time()+86400); $con =...
Back
Top