I am new to php =) For the past few weeks, i been reading alot of php tutorials so i am familer with it. I created a mysql databse named "blog", i am creating my frist blog page. Well, i have this problem I am trying to connect my varibles to the database i created but i am getting this error... Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\phpvt\lesson01\global.php:2) in C:\wamp\www\phpvt\lesson01\global.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\phpvt\lesson01\global.php:2) in C:\wamp\www\phpvt\lesson01\global.php on line 3 Fatal error: Call to undefined function mysql_connect_db() in C:\wamp\www\phpvt\lesson01\global.php on line 5 the code i added before the html tag is <?php session_start(); $connect = mysql_connect(localhost,root,"") or die(mysql_error()); $db = mysql_connect_db(blog.$connect); $session_name = $_session['uid']; ?> Code (markup): Did i make a mistakes somewhere ?? Thanks