PHP Classes

Display Icon using numbers from database

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Display Icon using numbers from database  
Subject:Display Icon using numbers from database
Summary:Display Icon using numbers from database
Messages:2
Author:Martin Crepaz
Date:2010-11-02 20:14:46
Update:2010-11-02 22:08:52
 

  1. Display Icon using numbers from database   Reply   Report abuse  
Picture of Martin Crepaz Martin Crepaz - 2010-11-02 21:49:56
Hello,

I'm really stuck and need help and hopefully you guys can help me.

I have a list of stores which show services as numbers

Database = Postcode
Table = tcodelists

In this table i have a store id "id" and Services offered "tcode_services"

The data in the "tcode_services" field is listed like 1, 2, 4, 5,

However i need some php code that will split these services down and display the image name from another table

id image
1 300494051201019510.gif
2 300494051201019512.gif
3 300494051201019513.gif

This table is called "icons".

I need this data to display on a php page when a certain store id is called from tcodelists

Please help

Thanks

Martin

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.