PHP image replacement script needed

  • Posted
  • Proposals 1
  • Remote
  • #1922
  • Archived
Simon S. has already sent a proposal.
  • 0

Description

Experience Level: Intermediate
Please visit this page from a website that is not yet live: http://www.cyclopsbeer.co.uk/dynamiclist.php?beer_id=1

It shows characteristics of a beer - the values and descriptions of which are returned from a recordset from a table called 'beers' held in a MySQL database

The php code request is for this page to display a specific row of images for the 'BITTER' and 'SWEET' numerical values returned from the database.

(For illustrative purposes I have inserted these actual numerical values returned from the database which appear on the page bottom-left of the 'Bitter' and 'Sweet' titles).

For example, if the database returned the value '2.5' from the db (held in table column 'bitter') for a certain beer, the row of images for BITTER would show 2 'solid' flower images, one 'half' flower and two 'clear' flowers.

Likewise if the database retured the value 3.5 for SWEET, the SWEET images would be three 'solid' blocks, one 'half' and one 'clear' block.

In other words it would show exactly how it is displayed on the page: cyclopsbeer.co.uk/dynamiclist.php?beer_id=1

In summary - the page needs a bit of php in it to display a certain combination of flowers and blocks depending on the number value returned for each 'bitter' or 'sweet' recordset.

The values in the database would range from 0 to 5 and include .5 half values.

The web page can be sent over along with any Db or FTP details and the lines concerned are in the ul classes <ul class="col-2"> and can be seen on lines 234 to 250 in the webpage dynamiclist.php

If anyone who can help me out here it would be much appreciated and undoubtably lead to more php work that comes my way.

Cheers

Chris

Clarification Board

    There are no clarification messages.