RE: [PHP] Any Clues Here???
| From: | Bill Marlin | Date: | Fri, 17 Nov 2000 19:21:27 +0000 |
| Subject: | RE: [PHP] Any Clues Here??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25949@lists.php.net to get a copy of this message | ||
Yes I did the mysql option. I was informed on the latest version you do not
have to put the path in but I am finding that if I change print to echo that
seems to work. I am using code out of the "PHP4 in 24 Hours book"
-----Original Message-----
From: Sam Masiello [mailto:smasiello@chekinc.com]
Sent: Friday, November 17, 2000 2:11 PM
To: Bill Marlin
Subject: RE: [PHP] Any Clues Here???
When you compiled PHP, did you remember to include the -with-mysql option?
HTH
Sam Masiello
System Analyst
Chek.Com
(716) 853-1362 x289
smasiello@chekinc.com
-----Original Message-----
From: Bill Marlin [mailto:BMarlin@AccentSystems.com]
Sent: Friday, November 17, 2000 2:06 PM
To: PHP List (E-mail)
Subject: [PHP] Any Clues Here???
Is there something wrong in my php.ini file???
This is on the latest greatest version of php which someday I will start to
learn if I can ever get it to run!!!
I get this error when using <?php to begin with
test.php4: parse error, expecting `'('' on line 7
$user = "Accent";
I get this error when using <? to begin with
test.php4: No mySQL support on line 10
$link = mysql_connect( "localhost", $user, $pass );
test.php4: parse error, expecting
END_TAG' or ';'' or
`'{'' on line 12
die ( "Could not open MySQL Database" );
####THE CODE###
<html>
<head>
<title>Example</title>
</head>
<body>
<?
$user = "Me";
$pass = "letmein ";
$db = "Test";
$link = mysql_connect( "localhost", $user, $pass );
if ( ! $link )
die ( "Could not open MySQL Database" );
print "Successfully connected to server<P>";
mysql_select_db ( $db )
or die ( "Could not open $db: ".mysql_error() );
print "Successfully selected database<P> ";
mysql_close ( $link );
?>
</body>
</html>
Bill Marlin
Web Site Specialist / EMT / Fire Fighter
Accent Systems, Inc.
193 Computrex Drive
Nicholasville, KY 40356
[859] 887-1023 X104
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net