Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Php add new line script
Old 10-06-2008, 11:47 AM Php add new line script
ihsaan's Avatar
Extreme Talker

Posts: 155
Name: Ihsaan
Location: Botswana
Trades: 0
i would like to create a script that has 4 input boxes once filled out the content should be inserted into a table above the form. Here is a picture of what i need done.

Im a newbie and would like to learn how todo this so please guide me or direct me to a tutorial to accomplish it.

Last edited by ihsaan; 10-06-2008 at 12:13 PM..
ihsaan is offline
Reply With Quote
View Public Profile Visit ihsaan's homepage!
 
 
Register now for full access!
Old 10-06-2008, 07:26 PM Re: Php add new line script
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
What you'll probably want to do is have the info from the form entered into a database and have the table reading the values in that same database. Typically the database used with PHP is MySQL, but it doesn't have to be.

I'm also guessing you'll want the table to be updated right away without the page reloading, which suggests using Ajax to refresh the table after the new entry is added.

I'm not sure there will be one tutorial that works through exactly what you want. What you might want to do first is work through a tutorial for setting up a database and creating a form that writes to and updates the database. Then a second tutorial for displaying the contents of the database and finally a third tutorial that updates the table through Ajax without having to refresh the page.

None of the above is all that difficult. Any decent book on PHP/MySQL will show you how to create the database and read from it and write to it. You may want to grab a PHP/MySQL book to start. Once you understand how to update the database and read from it to display the table it won't be much work to update the table via Ajax.

A quick search for php/mysql tutorial led me to this page, which seems to cover the basics in individual tutorials. I haven't gone through them so I couldn't tell you how easy/difficult they are to understand. W3Schools has tutorials on both PHP and SQL.

It shouldn't be too hard to find more tutorials online. Sorry I can't recommend a specific one, but I learned the basics through reading a few books.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Php add new line script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11495 seconds with 12 queries