Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

PHP scripts for Sql Database Query

Need Script

1:27 pm on Nov 16, 2009 (gmt 0)

New User

5+ Year Member

joined:Nov 16, 2009
posts: 3
votes: 0

Hi Every body i am a fresher in php and sql .I want when a user fill a registeration form and submit . All information will sent to my database. and he will redirect to a page named profile page. in this page his all information submitted by him and a unique username and password will published.

please help me. how can i do it.

please tell me full detail. i am a completly new in this .



3:31 pm on Nov 16, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 15, 2003
votes: 0

gajendrasaini welcome to WebmasterWorld.

What you are asking is not something that can just be explained in full detail without teaching you some basic things.

I suggest you take this one step at a time.

First you need to create and HTML form that has all the registration data you want. In the form tag you want it to post to a php page that will do some processing.

<form action="/process_registration.php">
First name <input type="text" name="first_name">

Then the process_registration page takes the form data and puts it into a sql insert statement


$sql="insert into user_reg (first_name) values (" + $POST['first_name'] + ")"

Execute the query... once you have it inserting data from the form post back and we can work on step 2

7:14 pm on Nov 16, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

Try W3C Schools [w3schools.com] which will get you up and running in a very short time.

mySQL documentation [dev.mysql.com] for setting up the database.