All you need to connect is to add this to a php page.
// connect to database
$connection = mysql_connect("localhost", "adminusername", "adminpass") or
die("Invalid server or user");
// select database
mysql_select_db("DBNAME",$connection);
Usually you can leave localhost but just substitute
adminusername
adminpass
DBNAME
with your own values.
"Robert Blackwell" <robbie (AT) wowcentral (DOT) com> wrote
Quote:
Hey guys, question about PHP, I'm trying to help out a friend but I don't
really know anything about php.
I'm also pretty amaturish at asp. I know how to read/write to an access db
etc. Basically, I know the first half of the UD 1.0 manual inside out.
What I would actually like to learn though is how to connect to a dbase in
php...
From what I understand, I can create an odbc connection to mysql dbase.
And
I was wondering if that would be similar to how I'd do it in DW when I'm
connecting to an mdb using asp classic? |