Yes I'm missing the query line in this posting my error (frustration is
taking over me <G>). The error occurs on line 5, which is the $dbconnection
line.

> -----Original Message-----
> From: Adam Douglas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 2:00 PM
> To: Mysql@Lists. Mysql. Com (E-mail); '[EMAIL PROTECTED]'
> Subject: MySQL Connection Failure: Lost...
> 
> 
> Ok I've finally gotten MySQL 3.23.37 installed and operating. 
> Thanks to all
> that helped! The problem I'm now experiencing is when I try 
> to interface
> with MySQL via PHP. MySQL seems to work fine by logging into 
> MySQL directly
> and through a MySQL GUI Client. I get the following error...
> 
> Warning: MySQL Connection Failed: Lost connection to MySQL 
> server during
> query...
> 
> I'm doing very simple query to see if it works and no 
> success. Even code
> that worked before I upgraded doesn't work anymore. Here's 
> the test query I
> made... (BTW, the below query works fine via MySQL/MySQL GUI Client)
> 
> $szQuery = "SELECT * FROM People WHERE First_Name='adam'";
> $dbconnection = mysql_connect("host","username","password");
> mysql_select_db($szQuery, $dbConnection);
> $obResults = mysql_fetch_row($saResults)
> 
> echo "$obResults[0], $obResults[1], $obResults[2], $obResults[3],
> $obResults[4], $obResults[5]";
> 
> 
> The MySQL Database has it's own dedicated machine running on 
> OpenBSD 2.9.
> The web server accessing the MySQL Database is on it's own 
> machine with
> Apache 1.3.12 and OpenBSD 2.9. Any other details needed let me know.
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to