Page 1 of 1

dynamic html table

Posted: Tue Jan 12, 2010 6:56 pm
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

Re: dynamic html table

Posted: Tue Jan 12, 2010 8:01 pm
by JNettles
I suggest you look through the Joomla API as they have prebaked classes for doing this sort of thing.

Re: dynamic html table

Posted: Tue Jan 12, 2010 8:38 pm
by wan_marwan
sorry but joomla API?
im really2 new at this,this is my 1st project

Re: dynamic html table

Posted: Wed Jan 13, 2010 2:03 am
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.

Re: dynamic html table

Posted: Wed Jan 13, 2010 12:20 pm
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.

Re: dynamic html table

Posted: Wed Jan 13, 2010 6:24 pm
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

Re: dynamic html table

Posted: Thu Jan 14, 2010 5:04 am
by manojsemwal1
ARe u using any unique id for product ?

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