Hi,
Have been racking my head just for the following error:
Parse error: parse error, unexpected T_INCLUDE in C:\Chuan\xampp\htdocs\xampp\absolutephp\insertnew.php on line 9
<html>
<head>
<title>NA</title>
</head>
<body>
<? php
include("C:/chuan/topsecret.php"); <---line 9 is HERE
$query="SELECT * FROM users";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
some codes carry on here...
?>
</body>
</html>
My topsecret.php contains the following:
$mysqluser="root";
$mysqlpasswd="8040615";
$mysqlhost="localhost";
$mysqldbname="abs";
$link=@mysql_pconnect($mysqlhost,$mysqluser,$mysqlpasswd);
if($link==FALSE){
echo "<p><b>Unfortuantely, no link to the database can be made. Therefore, no results. Try later.</body></html>\n";
exit();
}
mysql_select_db($mysqldbname);
I remembered it works fine this morning...i always get the feeling that my coding only works sometimes :queasy:
Please...point out my mistakes and clear my doubts:bemused: