SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I display images like this???

    Hi

    Im currently working on a website where i need to display images as in this webpage
    http://www.mobiles4everyone.com/hand...12&tariff=xnet

    As you can see as you select various options from the form the images are dynamically listed.

    Do i need to write my own script for this or is does anyone know of one which i can download.

    Thanks

  2. #2
    SitePoint Evangelist Waffles's Avatar
    Join Date
    Nov 2005
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    /* ###### example ####### */

    // its fairly simple..on the form submit just do

    $sql mysql_query("SELECT * FROM phones WHERE tariff = '".$_GET['tariff']."' AND make = '".$_GET['make']."'");

    while(
    $r mysql_fetch_array($sql)) {
    // show these images

    you'd need to secure the data before entering it into the SQL but this is a very brief example..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •