Jump to content
xisto Community

andrewgauger

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by andrewgauger


  1. Maybe this can help,or is there something wrong with this??
    require.inc.php

    global $username;require 'dconn.php';session_start();$username = @$_SESSION["username"];$connection = mysql_connect($db_server, $db_user, $db_pass) or die(mysql_error());mysql_select_db($db_name, $connection) or die(mysql_error());.....variables.....function footer() { ?> <CENTER> <table><tr>  <td class="font" align=center><a href="start.php?option=contact">-contact us-</a>  <a href="privacy.htm" target="_NEW">-privacy policy-</a>  <a href="spam.htm" target="_NEW">-spam policy-</a><br></td></tr> </table> </CENTER> <?}?>


    after this line:
    header("Location: start.php?option=main");
    put:
    exit;

    You need to end the parsing of the script so it doesn't always send you to index.
    PHP.net: header - Manual
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.