Code: Select all
<?
$connection = mysql_connect("kennedywebdev.com","user","****")
$connection = mysql_connect("kennedywebdev.com","user","****") or die ("Couldn't connect.");
if ($connection) {
$msg = "success!";
}
?>
<HTML>
<HEAD>
<TITLE>MySQL Connection</TITLE>
</HEAD>
<BODY>
<? echo "$msg"; ?>
</BODY>
</HTML>
I get the following parse error when viewing the file:
Parse error: parse error, unexpected T_VARIABLE in /home/kennedyw/public_html/db_connect.php on line 5
What is wrong?
NOTE: you can view the file error: http://kennedywebdev.com/db_connect.php
Thanks
//Edited by Pejone
Never post here your login and password and one more i fix in script that arror that Redcircle talked about.