Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

insert data in mysql with php

do you have a simple script



2:11 pm on Mar 25, 2003 (gmt 0)

10+ Year Member

I just want to insert my name into the database from a web site that is using php.

I want the name to be inserted as soon as SUBMIT is pressed and a new window saying name saved should show.

I just need this very simple script, nothing else.



4:48 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Well first you would have to make the form to submit the name to the db. Then set your insertion script as the form action.

The script then needs to have these elements.

connect to mysql using
mysql_connect [php.net]

select your db using
mysql_select_db [php.net]

send your insert query using
mysql_query [php.net]


Featured Threads

Hot Threads This Week

Hot Threads This Month