dumb mysql_connect issue
| From: | CGI GUY | Date: | Tue, 31 Jul 2001 22:10:43 +0000 |
| Subject: | dumb mysql_connect issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60518@lists.php.net to get a copy of this message | ||
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/