ammu_sridhar Posted May 8, 2009 Share Posted May 8, 2009 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 More sharing options...
gevans Posted May 8, 2009 Share Posted May 8, 2009 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 Link to comment https://forums.phpfreaks.com/topic/157342-sample-project-for-a-biginner/#findComment-829348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.