Re: [PHP-DB] config php w/ mysql

2001-07-23 Thread leo g. divinagracia iii



Darrell wrote:
 
 I got mysql installed on my win2000 machine, and have apache running with
 php 4 all working correctly.
 
 but I can't get php to work with the db...
 
 I'm pretty sure I can connect with mysql_connect(...) because it doesn't die
 at that spot.  rather, when I try to do the mysql_query(...) it dies each
 time.
 
 how do I have to configure mysql or php to get them to communicate
 correctly?  I know my query is correct because I can run it in mySQLGUI just
 fine...
 

die... do you mean mean the result of mysql_query(...) is FALSE?

check that result first?  maybe the queries are returning no data or
something...  i mean if you can connect, then PHP and MySQL are working
together just fine...

i'd check the data first...

-- 
Leo G. Divinagracia III
[EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] config php w/ mysql

2001-07-23 Thread Beau Lebens

also, make sure you have selected a db to work on onece connected to the
mysql server

mysql_select_db or something like that

beau

// -Original Message-
// From: leo g. divinagracia iii [mailto:[EMAIL PROTECTED]]
// Sent: Tuesday, 24 July 2001 12:21 PM
// Cc: [EMAIL PROTECTED]
// Subject: Re: [PHP-DB] config php w/ mysql
// 
// 
// 
// 
// Darrell wrote:
//  
//  I got mysql installed on my win2000 machine, and have 
// apache running with
//  php 4 all working correctly.
//  
//  but I can't get php to work with the db...
//  
//  I'm pretty sure I can connect with mysql_connect(...) 
// because it doesn't die
//  at that spot.  rather, when I try to do the 
// mysql_query(...) it dies each
//  time.
//  
//  how do I have to configure mysql or php to get them to communicate
//  correctly?  I know my query is correct because I can run 
// it in mySQLGUI just
//  fine...
//  
// 
// die... do you mean mean the result of mysql_query(...) is FALSE?
// 
// check that result first?  maybe the queries are returning no data or
// something...  i mean if you can connect, then PHP and MySQL 
// are working
// together just fine...
// 
// i'd check the data first...
// 
// -- 
// Leo G. Divinagracia III
// [EMAIL PROTECTED]
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: [EMAIL PROTECTED]
// For additional commands, e-mail: [EMAIL PROTECTED]
// To contact the list administrators, e-mail: 
// [EMAIL PROTECTED]
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]