parser problem
Posted: Thu May 08, 2003 1:51 am
i create this php file to connect to a table guestbook in a database name guestbook
<?php
mysql_connect("localhost", "", "");
mysql_select_db("guestbook");
$result = mysql_query("select * from guestbook") or
die ( mysql_error() );
echo mysql_result($result,0,0);
?>
the browse return this error message
Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\database.php on line 4
can anymore tell me what is T_STRING and how to solve this problem
<?php
mysql_connect("localhost", "", "");
mysql_select_db("guestbook");
$result = mysql_query("select * from guestbook") or
die ( mysql_error() );
echo mysql_result($result,0,0);
?>
the browse return this error message
Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\database.php on line 4
can anymore tell me what is T_STRING and how to solve this problem