Normally, you'll create the databases within the native database
environment.  For instance, for mysql, at the mysql command line.

Then, you use PHP/PERL/C/sh/bash/... to access the database with various
queries, such as SELECT.

You also use the database native environment to update/maintain table
structures.

-----Original Message-----
From: Martin Clifford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 7:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] DB Question


Hello all,

I've been waiting in the shadows, reading, trying to get a handle on what
type of questions go here.  I'm hoping this one does, and that some of you
guru's might be able to offer some insight.

I've just started out with PHP, and want to get to know relational
databases.  I've seen numerous tutorials that show you how to create the DB
with PHP... something along the lines of... 

$link = mysql_connect('localhost', 'mylogin', 'mypass');

And the like... but here's my question...

You connect to the database program (MySQL in MyCASE, hehe) and create the
database and tables you want to use, but... do you only have to run this PHP
script once to create the database/tables... or do you have to run the lines
that create the database and tables each time you want to write information
to them or extract information from them?

I've not come across any tutorials that expand on that.  I'm guessing you
run the script once to create the DB and Tables, then it's there.  After
that, you need only write to/extract from them.  If anyone can please offer
information on this I'd greatly appreciate it.  Also, direct replies to this
mail address are encouraged, as I'm in digest mode and want to get your
answers as soon as I can :o)

Take care all, and thanks in advance!
Martin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to