here is what needs to be fixed it says line 6 is the issue <? include"config.php"; //db connection $database=""; blank $dbuser=""; bla $dbpass=""; bl $c=mysql_connect ('localhost',$bla,$bl) or die(mysql_error()); mysql_select_db ($,$c) or print(mysql_error(blank)); ?>
$database=""; blank $dbuser=""; bla $dbpass=""; bl this is wrong the correct code will be like dis $database="blank"; $dbuser="bla"; $dbpass="bl";
<?php include 'config.php'; # Database Variables $dbhost = 'localhost'; $database = 'blank'; $dbuser = 'bla'; $dbpass = 'bl'; # Connect to the database $c = mysql_connect ($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db ($database, $c) or die(mysql_error()); PHP: