php-db | 2001072
Date: 07/22/01
- Next message: Alnisa Allgood: "[PHP-DB] Temporary Tables in MySQL"
- Previous message: Nashirak Bossk: "[PHP-DB] Re: [PHP-DEV] Re: IMAP/POP3 Administration API?"
- In reply to: Darrell: "[PHP-DB] config php w/ mysql"
- Next in thread: leo g. divinagracia iii: "Re: [PHP-DB] config php w/ mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
When you execute your query, do like I do...
$query = mysql_db_query($db, $query) or die(mysql_error());
the "or die(mysql_error())" will tell you what the mysql error is...
On Sun, 22 Jul 2001, 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...
>
> any clues?
>
> thanks in advance,
> Darrell
>
> (oh, and I'm on w2k only because I need to be...not by preference!)
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Alnisa Allgood: "[PHP-DB] Temporary Tables in MySQL"
- Previous message: Nashirak Bossk: "[PHP-DB] Re: [PHP-DEV] Re: IMAP/POP3 Administration API?"
- In reply to: Darrell: "[PHP-DB] config php w/ mysql"
- Next in thread: leo g. divinagracia iii: "Re: [PHP-DB] config php w/ mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

