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:[EMAIL PROTECTED]] Sent: Sunday, 29 July 2001 9:40 PM To: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]