php-general | 2001072
Date: 07/31/01
- Next message: James, Yz: "[PHP] Re: Types of table...."
- Previous message: mike cullerton: "Re: [PHP] Execute mixed php code from mysql?"
- In reply to: CGI GUY: "[PHP] dumb mysql_connect issue"
- Next in thread: mike cullerton: "Re: [PHP] dumb mysql_connect issue"
- Reply: mike cullerton: "Re: [PHP] dumb mysql_connect issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try putting mysql_error() in your die statements so :
or die(mysql_error());
and see what it tells you.
Regards,
Philip
On Tue, 31 Jul 2001, CGI GUY wrote:
> Is there anything (add. parameters, etc.) that I'm
> missing that would possibly explain why the following
> code won't execute?
>
> <?php
>
> $connection =
> mysql_connect("hostname","username","password") or die
> ("Couldn't connect to server");
>
> $db = mysql_select_db("database", $connection) or die
> ("Couldn't select database");
>
> $sql = "SELECT * FROM table_name.column_name1,
> table_name.column_name2";
>
> $sql_result = mysql_query($sql,$connection) or die
> ("Couldn't execute query");
>
> ?>
>
> Thanks in advance. This mailing list rules!!!
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: James, Yz: "[PHP] Re: Types of table...."
- Previous message: mike cullerton: "Re: [PHP] Execute mixed php code from mysql?"
- In reply to: CGI GUY: "[PHP] dumb mysql_connect issue"
- Next in thread: mike cullerton: "Re: [PHP] dumb mysql_connect issue"
- Reply: mike cullerton: "Re: [PHP] dumb mysql_connect issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

