I am getting this wierd error on the top of this page
http://www.thecasualmeet.com/show_prices.php
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/k/e/i/keith6359/html/show_prices.php:1) in /home/content/k/e/i/keith6359/html/conn.php on line 28
I have no idea why am I getting it there...The conn.php is here
Code: Select all
<?php
//enter your MySQL database host name, often it is not necessary to edit this line
$db_host = "localhost";
//enter your MySQL database username
$db_username = "username";
//enter your MySQL database password
$db_password = "password";
//enter your MySQL database name
$db_name = "database";
$script_dir = "Personals";
////////////////////////////////////////////////////////////
////// do not edit below this line ///////
///////////////////////////////////////////////////////////
//connect to the database server
$connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error());
//select database
$db = mysql_select_db($db_name, $connection);
session_start();
$t = time();
//build the script path
if(!empty($script_dir))
{
$dir = "/".$script_dir;
}
?>Code: Select all
<?
require_once("conn.php");
require_once("includes.php");
//get the prices
$q1 = "select * from personal_prices order by PriorityLevel desc, ads, days";
$r1 = mysql_query($q1) or die(mysql_error());
$col = "white";
while($a1 = mysql_fetch_array($r1))
{
if($col == "white")
{
$col = "dddddd";
}
else
{
$col = "white";
}
if($a1[ads] > '1')
{
$s = "s";
}
else
{
$s = "";
}
$Prices .= "<tr bgcolor=$col>\n\t<td>$a1[ads] ad$s for $a1[days] days";
if($a1[PriorityLevel] == '1')
{
$Prices .= " <sup><font color=\"#990000\" face=verdana size=2><b>Featured</b></font></sup>";
}
$Prices .= "</td>\n\t";
$Prices .= "<td align=right>$$a1[price]</td>\n</tr>\n";
}
//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/ShowPricesTemplate.php");
require_once("templates/FooterTemplate.php");
?>
Thanks in Advance !!!