Jump to content

Sample Project for a biginner


ammu_sridhar

Recommended Posts

Hello all,

 

I am new to PHP, html and mysql. I have installed these things in my pc and would like to write a sample code as follows.

 

A basic html form which takes input "name" from text box, "sex" from combo box (M,F), "preferences" from check box and "status" from radio button. This form will have two options "Add" and "Query".

 

When some body enters name and press "Query" , I should go to the table "testdb" in the database "test", get "sex", "preferences" and "status" from the table and display in the html page.

 

Similarly, when somebody enters all this info and press "Add" button, a new record should be added to my table.

 

Could anybody provide me code for such a requirement. Any other sample project in the similar lines is also most welcome.

 

Thanks

Sri

Link to comment
https://forums.phpfreaks.com/topic/157342-sample-project-for-a-biginner/
Share on other sites

Have you attempted to write it yourself yet?

 

If you want to learn php I'd recommend getting a good book or going through some basic tutorials online. Googling 'php tutorialsfor beginners' (http://www.google.co.uk/search?hl=en&q=php+tutorial+for+beginners&btnG=Google+Search&meta=&aq=1&oq=php+tut) gives loads of results, and the second result is a great starting point;

 

http://www.webmonkey.com/tutorial/PHP_Tutorial_for_Beginners

 

or the third is from php.net;

 

http://uk3.php.net/tut.php

 

Hope this helps. If you get stuck writting your code please give us a shout, but definetley attempt it yourself first ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.