RE: New user asks for help with connect func tion.
"Lawson Cronlund" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.windows |
|---|---|
| Message-ID | <[email protected]> |
Wes, I'm not sure whether this is related to your problem but it sounds like the problem that I had after installing Apache2 and PHP5. The installation routine that I used apparently identified the php5 dll in the "httpd.conf" file as: LoadModule php5_module "c:/php/php5apache.dll But it needs to be: LoadModule php5_module "c:/php/php5apache2.dll Note the "2" in the dll name. Hope this helps. Lawson [email protected] +1(480)308-0641 (Voice) +1(602)996-0376 (Fax) -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Tuesday, February 14, 2006 11:15 AM To: [email protected] Subject: New user asks for help with connect func tion. I would appreciate any assistance. I have MySQL 4.0.21 and Apache 2.0.52 and PHP 5.0.2 newly installed on mmy laptop. I am able to use PHP and Apache in my browser and see results. However, I am not successful when I attempt to connect to MySQL with PHP. The simple connection script I am using is as follows: ============================================================== <?php $conn = mysql_connect("LocalHost", "wesmith", "my password"); echo $conn; ?> ============================================================= I saved this script as mysqlconnect.php. When I access the script with my web browser I expect to see.. Resource id #1 Instead I see nothing at all. No error message. Simply a blank screen. Note: I have been able to view other output from PHP with my browser that does not involve MySQL. I don't know what I am doing wrong. Any help would be appreciated. Wes smith -- MySQL Windows Mailing List For list archives: http://lists.mysql.com/win32 To unsubscribe: http://lists.mysql.com/[email protected] -- MySQL Windows Mailing List For list archives: http://lists.mysql.com/win32 To unsubscribe: http://lists.mysql.com/[email protected]