go to www.ratemymug.com rate somone, now see..? the message at the top.. what does this mean? everything is working fine, i just get this message for some reason.. please help me
<?
$dbServer = "";
$dbuserName = "";
$dbpassword = "";
$dbName ="";
$site_title = "Rate My Mug, meet people, have fun!!";
$site_copyright = "Rate My Mug";
$bannerprice ="";
$newletterprice ="";
$paypalemail ="";
$stormpayemail = "";
$passwordemail = "";
$con=mysql_connect ($dbServer, $dbuserName, $dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
session_start();
?>
Forgive me, as I'm not an "expert" ....compuXP said:EDIT: PLEASE USE [ PHP ] [ /PHP ] TAGS!
Correction - You can have ANYTHING before sending a header (or using session_start()) AS LONG AS it DOES NOT send ANY DATA to the browser before calling that function!
You can have blank lines, spaces, etc. You CANNOT HAVE:
-echo statements
-printf statements
-HTML
-CSS
etc.
Okay, try putting the db connection AFTER the session_start.
Thanks.
<?php
session_start();
$dbServer = "";
$dbuserName = "";
$dbpassword = "";
$dbName ="";
$site_title = "Rate My Mug, meet people, have fun!!";
$site_copyright = "Rate My Mug";
$bannerprice ="";
$newletterprice ="";
$paypalemail ="";
$stormpayemail = "";
$passwordemail = "";
$con=mysql_connect ($dbServer, $dbuserName, $dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
?>
<?
session_start();
$dbServer = "";
$dbuserName = "";
$dbpassword = "";
$dbName ="";
$site_title = "Rate My Mug, meet people, have fun!!";
$site_copyright = "Rate My Mug";
$bannerprice ="";
$newletterprice ="";
$paypalemail ="";
$stormpayemail = "";
$passwordemail = "";
$con=mysql_connect ($dbServer, $dbuserName, $dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/ratemy/public_html/config.php:22) in /home/ratemy/public_html/index.php on line 29
sorry don't know about that. It dosen't seem like you have a server problem, it seems like you have a php problem.skrilla said:no there is nothing b4 session_start like i said this works fine on my other host www.paruch.com/ratemymug.com somone told me it had to do with installing modules on the server.. ???
are all the files the same on both servers? Have you updated one server and not the other?skrilla said:then why does it work on my other server? www.paruch.com/ratemymug.com ?

