dynamic html table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wan_marwan
Forum Newbie
Posts: 3
Joined: Tue Jan 12, 2010 6:44 pm

dynamic html table

Post by wan_marwan »

hi,hope u guys can help me out her as i am just learning php

1.i need to create a table to be put in joomla,using php code
2.the table is query to the database to call out only 1 field from the dbtable that has several other field
3.how can i make each field in table in joomla to become a link that will open up a new page for user to view the selected value from dbtable
4.this will continue automatically when other post new value

its something like this

item
watch
laptop
motocycle


above will be the web table view,when a user click let say watch it will dispaly in another page

item description price
watch timex $300


then a back button will bring them back to the selection page
can plz provide me with php code to be inserted in joomla
thanx
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: dynamic html table

Post by JNettles »

I suggest you look through the Joomla API as they have prebaked classes for doing this sort of thing.
wan_marwan
Forum Newbie
Posts: 3
Joined: Tue Jan 12, 2010 6:44 pm

Re: dynamic html table

Post by wan_marwan »

sorry but joomla API?
im really2 new at this,this is my 1st project
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: dynamic html table

Post by manojsemwal1 »

These value comes from database?
if yes do one thing also access item code and make a hyper link and create a file abc.php
in that file fetch the data where the user has click like

laptop //laptop id is 45454545 in database
when user click on that that time abc.php?laptop=45454545 file will open and
get the laptop value and fetch the laptop information.
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: dynamic html table

Post by JNettles »

http://docs.joomla.org/

Their developer manuals aren't the most extensive but if I remember correctly there's a tutorial somewhere for something very similar to what you're doing.
wan_marwan
Forum Newbie
Posts: 3
Joined: Tue Jan 12, 2010 6:44 pm

Re: dynamic html table

Post by wan_marwan »

hi manojsemwal1,

can u write the code down please,im not getting ur explaination,im very new at this,all my code are from tutorial sorry
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: dynamic html table

Post by manojsemwal1 »

ARe u using any unique id for product ?

if yes call the ID with item list.
send me the code............
Post Reply