PDA

View Full Version : Parse error: syntax error, unexpected $end in /home/the/public_html/Connections/rs.php on line


anees_a
08-09-2008, 04:14 PM
hi

I was moving my website to my new hosting server after copping all the files when i tried to acess my website i get ths error
Parse error: syntax error, unexpected $end in /home/the/public_html/Connections/rs.php on line 10

I found that the programer had programed 1st line of index.php file to access mysql database the the file use to access was called rs.php bellow are the contents of the file

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_rs = "ServerIP";
$database_rs = "Database";
$username_rs = "User";
$password_rs = "Password;
$rs = mysql_pconnect($hostname_rs, $username_rs, $password_rs) or trigger_error(mysql_error(),E_USER_ERROR);
?>


thanks in advance

edbr
08-11-2008, 01:35 AM
$password_rs = "Password;
should be
$password_rs = "Password";