Hi
On 17 Jul 2005 at 17:16, Linda H wrote:
> I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP
> system. I can run scripts with PHP and HTML statements and see correct
> output in my browser. But when I try to connect to MySQL I get nothing,
> including no error messages.
>
> One book I have says to run the following scrip to test the connection. It
> should print either the Resource name or an error message:
>
> <?php
> echo mysql_connect ('localhost','calendar','pass1234'); # host, user,
> password
try:
<?php
echo("Before<br>");
$rc = mysql_connect ('localhost','calendar','pass1234');
echo("After<br>");
echo($rc);
?>
That should tell you whether ANY of your php is being executed or just the
mysql_connect and what the output of the mysql_connect is.
Regards
Rob
--
Rob Thomas ([EMAIL PROTECTED])
The School for Mountain Leadership
+27-(0)12-482-2957 (07h30 - 16h30, GMT + 02h00)
+27-(0)82-652-1490 (all hours - try to be reasonable)
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/