Glyndower;
I just joined the PHP mailing list. It appears to be fairly active and
knowledgable. Your question seems to be MORE PHP related than MySQL.
I know, I hate joining half a dozen lists to get answers, and the MySQL
list has been most helpful with database questions, but this sounds like
something for the PHP guys.
I can't answer your question--I'm a green weenie newbie, but I would like
to see how the PHP list answers it. So join that list and fire off the
question.
I look forward to seeing their reply.
Joe
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]
At 06:31 AM 07/03/2001 , you wrote:
>Hi all,
>
>I'm new to the whole PHP and MySql stuff and I hopeful that I can get a push
>in the right direction for what I'm sure is a very sinple problem.
>
>I have succesfully created a databse using telnet and added data to it also
>using telnet.
>
>I have also succesfully got the data to display on a page using PHP.
>
>My problem is adding data from the PHP page.
>
>My insert code is:
>
>$query = "INSERT INTO guests ";
>
>$query .= "(guest_id, guest_name, ";
>
>$query .= "guest_email, guest_time, guest_message) ";
>
>$query .= "values(0000,'$name','$email',NULL,'$message')";
>
>mysql_pconnect("localhost","blahblah","blahblah")
>
>or die("Unable to connect to SQL server");
>
>mysql_select_db("blah") or die("Unable to select database");
>
>mysql_query($query) or die("Insert Failed!");
>
>When I add data via the form, npthing seems to happen, it does not add the
>data to the databse, nor does it pop any errors.
>
>
>
>Any help would be appreciated...tia
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php