Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

RE: [PHP-DB] MySQL newbie: inserting new entry to table? From: Howard Picken (hpicken <email protected>)
Date: 07/30/01

I'm a learner too.

But as I understand it, You make a connection to the database (or open it?).
Once it's open or connected to, you can access the different tables within
it.

I think the difference between "mysql_db_query" & "mysql_query" is that
later assumes that
you all ready connected to the database where the first connects at the same
time.

Anyway glad you fixed your problem. It wasn't a holiday in Australia (just
a Sunday night :-))

Cheers
Howard

-----Original Message-----
From: sg [mailto:sguillon <email protected>]
Sent: Sunday, 29 July 2001 9:40 PM
To: php-db <email protected>
Subject: Re: [PHP-DB] MySQL newbie: inserting new entry to table?

Thank You Howard!

You sure are quick!

I found a way to make it work. I used to have both scripts (the one that
displays and the one that inserts new entries) on the same page...
Once I separated them I had a link on a third page. I first clicked on the
insert entry link then back to the display page... My new entry was there...

Now for the solution you gave me. I haven't tried it yet but I'd like to
know the difference.
I see you don't provide the database name in the mysql_query call. How does
MySQL know what base to work with?
I've seen both 'mysql_query' and 'mysql_db_query' in several tutorials but
haven't yet figured the difference between them (told you a was a newbie...)

Thanks again for your interest, I thought everybody would be on holidays...

Sébastien

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>