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

Closed Thread
How to create an table thats editable online.
Old 02-27-2009, 11:48 AM How to create an table thats editable online.
Junior Talker

Posts: 2
Name: Daniel French
Trades: 0
Hi, I'm new to php coding but have experience of html code, I was wondering if anyone could help me, basically I have a table that has a list of members in one column and a list of which new recruits each member has recruited in the second column.

I was wondering If anyone could tell me how I could possibly make an input filed for each column so that new names can be added while the table is live rather than having to edit the table offline and then upload it again. I have mySQL databases available if need be.

I was thinking along the lines of being able to edit an existing members name as well as just adding new names, but just adding new names would be a good start for me.

Thanks in advance for any help offered.

If you wish to see the existing table it is at www.hades-guild.co.uk/recruiters.php
reelforjake is offline
View Public Profile
 
 
Register now for full access!
Old 02-28-2009, 05:45 AM Re: How to create an table thats editable online.
EdB
Skilled Talker

Posts: 79
Name: Ed Barnett
Trades: 0
You'll definitely want to use a mysql database if you are going to be having to edit tables all of the time. This is where PHP and MySQL are perfect - together they can rapidly retrieve vast amounts of data that you can insert, update, delete etc. using a web page interface (built yourself).

If I could suggest anything it would be to do a little reading on relational database theory http://en.wikipedia.org/wiki/Relational_model . Only reason being, you will save yourself a lot of heart ache in the long run. For example, what you have told me so far would lead most beginners to do the following;

Members_table
column 1 `id`
column 2 `member`
column 3 `recruited member`

Imagine you had a `member` named `Jane Smith` who recruited 50 new `recruited members`. You would have `Jane Smith` repeated in column 2 of the table all over the place. What would happen when you want to change her name (she got married) or there is another `Jane Smith`?

Best bet would be to keep things separate and use three tables;

Members_table
column 1 `id`
column 2 `member`

Recruits_crossref
column 1 `member_id`
column 2 `recruit_id`

Recruits_table
column 1 `id`
column 2 `recruit`

Sound strange...? Go have a little read of that Wikipedia page. Or if that's too hard going and you are serious about learning php and mysql I'd suggest this book http://www.amazon.co.uk/Build-Databa...5817899&sr=8-1 . It was a really good starting point for me and is written with good humour all the way through.
EdB is offline
View Public Profile Visit EdB's homepage!
 
Old 03-01-2009, 03:34 AM Re: How to create an table thats editable online.
Junior Talker

Posts: 1
Name: Alex
Trades: 0
Look for something called tablekit, here its on my dev server.

http://orfius.net/table/
amanelis is offline
View Public Profile
 
Old 03-02-2009, 03:29 AM Re: How to create an table thats editable online.
Junior Talker

Posts: 2
Name: Daniel French
Trades: 0
Thanks for the help guys I'll give these a try.

I did borrow a book called "Sam's Teach Yourself PHP, MySQL and Apache in 24 Hours" but i took almost an hour to read each "lesson" so i gave up on that and am hoping to find a book thats easier reading as i'm not much of a reader (reading bores me, I'm a practically minded person)

Thanks for the heads up on Tablekit, might give it a try, it looks good.
reelforjake is offline
View Public Profile
 
Old 03-11-2012, 10:24 PM Re: How to create an table thats editable online.
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Quote:
Originally Posted by EdB View Post
You'll definitely want to use a mysql database if you are going to be having to edit tables all of the time. This is where PHP and MySQL are perfect - together they can rapidly retrieve vast amounts of data that you can insert, update, delete etc. using a web page interface (built yourself).

If I could suggest anything it would be to do a little reading on relational database theory http://en.wikipedia.org/wiki/Relational_model . Only reason being, you will save yourself a lot of heart ache in the long run. For example, what you have told me so far would lead most beginners to do the following;

Members_table
column 1 `id`
column 2 `member`
column 3 `recruited member`

Imagine you had a `member` named `Jane Smith` who recruited 50 new `recruited members`. You would have `Jane Smith` repeated in column 2 of the table all over the place. What would happen when you want to change her name (she got married) or there is another `Jane Smith`?

Best bet would be to keep things separate and use three tables;

Members_table
column 1 `id`
column 2 `member`

Recruits_crossref
column 1 `member_id`
column 2 `recruit_id`

Recruits_table
column 1 `id`
column 2 `recruit`

Sound strange...? Go have a little read of that Wikipedia page. Or if that's too hard going and you are serious about learning php and mysql I'd suggest this book http://www.amazon.co.uk/Build-Databa...5817899&sr=8-1 . It was a really good starting point for me and is written with good humour all the way through.
You're actually making assumptions here which might be unwise - that recruits aren't members and that future members aren't recuited.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
View Public Profile
 
Closed Thread     « Reply to How to create an table thats editable online.
 

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 1.15535 seconds with 12 queries