Jump to content

Entanio

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Posts posted by Entanio

  1. Use cookies instead of the Session. So just set the $_COOKIE['USERID'] instead of $_SESSION['USERID'].

     

    In an unrealted subject it is good practice to put single quotaion marks in $_SESSION, $_COOKIE etc. So, for example it would be $_SESSION['USERID'] not $_SESSION[uSERID].

  2. Instead of a form use a link?

     

    Like Project fear said, so you would have

     

    echo "<a href='menulist.php?busname=" .$row->busname. "' />";

     

    Then on menulist.php:

     

    $busname = $_GET['busname'];
    
    mysql_query("SELECT ... WHERE busname=" .mysql_real_escape_string($busname). "");

     

    Possible?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.