This topic is locked

show info on list page

4/19/2008 7:36:06 PM
PHPRunner General questions
N
nickrix author

Sorry to keep posting questions on here, im new to all this php mysql and am trying to get my head around it all.
Im having trouble displaying info on my list page. here is the link:

http://www.upickdata.co.uk/udata/Directors...terkey1=5845866
the results show all the directors for A company. I want to be able to display the company Name at the top of the page. is there a way of doing this?
I tried adding {foreach from=$rowinfo item=row} {/foreach} around it but it repeats the company name X amount of times (x being the number of directors there are)

J
Jane 4/21/2008

Hi,
use Custom event (Insert PHP code snippet option on the Visual Editor tab) for this purpose.

Select CompanyName from database and print it on the page in this event.

N
nickrix author 4/21/2008

Hi,

use Custom event (Insert PHP code snippet option on the Visual Editor tab) for this purpose.

Select CompanyName from database and print it on the page in this event.


do you have any example code? or a link to somewhere that can show me this? sorry - just new to all this.

J
Jane 4/22/2008

Hi,
it's difficult to advise sample code without seeing actual structure of tables.

Send structure of Directors and company tables to support@xlinesoft.com and I'll try to help you.