[thelist] PHP/MySQL Newbie question
Jay Blanchard
jay.blanchard at niicommunications.com
Tue May 21 10:14:02 CDT 2002
[snip]
How does PHP see the connection to the MySQL database and
associated tables?
In Dreamweaver MX, I seem to make a connection to the MySQL
server, but no databases or tables show up.
[/snip]
PHP uses a native set of functions to interact with MySQL, ODBC is not
needed
http://www.php.net/manual/en/ref.mysql.php
$dbconnect = mysql_pconnect("localhost", "username", "password");
mysql_select_db("dbname", $dbconnect);
is a connection to MySQL followed selecting a database to use.
HTH!
Jay
More information about the thelist
mailing list