Re: MySQL newbie: inserting new entry to table?
| From: | sg | Date: | Sun, 29 Jul 2001 11:40:22 +0000 |
| Subject: | Re: MySQL newbie: inserting new entry to table? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10874@lists.php.net to get a copy of this message | ||
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