PHP MySQL problems
From: *** HAWK (ignore_at_ignore.net)
Date: 10/25/03
- Next message: Janwillem Borleffs: "Re: Why hiring a php coder is better than buying a shopping cart program?"
- Previous message: Baron: "Re: Imagevote script problems"
- Next in thread: Janwillem Borleffs: "Re: PHP MySQL problems"
- Reply: Janwillem Borleffs: "Re: PHP MySQL problems"
- Reply: HamMan: "Re: PHP MySQL problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 12:20:29 +0100
Can anyone explain this error - I am trying to setup PHP/Apache/MySQL on my
home machine (Winxp pro)
I have got everything working now - I know MySQL works cos I am able to run
the MySQL monitor through the command prompt. But when I run the following
php file (see text below as contained in the php file) IE returns the
following error -
Parse error: parse error, unexpected T_STRING in
C:\Apache\htdocs\mysqltest.php on line 8
PHP Script
<html>
<head> <title>MySQL Connection Test</title> </head>
<body>
<h2>
<?php
$connection = mysql_connect("localhost","root","") or
die("Sorry - unable to connect to MySQL");
echo(Congratulations - you are connected to MySQL");
?>
</h2>
</body>
</html>
- Next message: Janwillem Borleffs: "Re: Why hiring a php coder is better than buying a shopping cart program?"
- Previous message: Baron: "Re: Imagevote script problems"
- Next in thread: Janwillem Borleffs: "Re: PHP MySQL problems"
- Reply: Janwillem Borleffs: "Re: PHP MySQL problems"
- Reply: HamMan: "Re: PHP MySQL problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|