Jump to content

feroz_rk

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

feroz_rk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Dear plutomed, Thank you so much for your time and help. The issue is fixed now. Thanks.
  2. Dear xylex & dg, Thanks for your response. These are my include files config.php ******** <?php $dbhost = 'localhost'; $dbuser = 'carnatik_root'; $dbpass = ''; $dbname = 'carnatik_apothem'; ?> opendb.php ********* <?php $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); ?>
  3. Hello everyone, I have this error comming up in the hosting server and not in my local box. I know this is a simple error but i am not able to find a fix even after a lot of googling. Can some one help me to fix this issue. Its very urgent. Thanks in advance for your advices. Error ***** Cannot modify header information - headers already sent by (output started at /home/carnatik/public_html/apothem/library/config.php:6) in /home/carnatik/public_html/apothem/login.php on line 14 Code **** <?php session_start(); $errorMessage = ''; if (isset($_POST['schoolname'])) { include 'library/config.php'; include 'library/opendb.php'; $schoolname = $_POST['schoolname']; $sql = "SELECT schoolname FROM registration WHERE schoolname = '$schoolname'"; $result = mysql_query($sql) or die('Query failed.' . mysql_error()); if (mysql_num_rows($result) == 1) { $_SESSION['db_is_logged_in'] = true; header('Location: schoollist.php'); exit; } else { $errorMessage = 'Error: Please check the school name / Register again'; } include 'library/closedb.php'; } ?>
×
×
  • 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.