RE: [PHP-DB] MySQL newbie: inserting new entry to table?
| From: | Howard Picken | Date: | Mon, 30 Jul 2001 08:54:49 +0000 |
| Subject: | RE: [PHP-DB] MySQL newbie: inserting new entry to table? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10894@lists.php.net to get a copy of this message | ||
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@freesurf.fr]
Sent: Sunday, 29 July 2001 9:40 PM
To: php-db@lists.php.net
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@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net