Hey guys
I have two tables, hl_listings and hl_statistics
They have the following fields:
hl_listings
id.....................bigint(20)................. 3(Primary)
name...............varchar(255)............ Test site
hl_statistics
id....................bigint(20)......................70 (Primary)(70th payment)
listing_id.........bigint(20).....................3 (for. key)
type................tinyint(1)......................0 or 1(0 for incoming payments and 1 for out)
date................datetime......................2006-07-01 00:00:00
amount...........double(10,2).................15.00 ie $15.00
What i want to do is display some of the information in an image, basically a table with a background and the rows contain some fields in php.
However im having trouble with some calculations that need to be displayed.
I would like to show the most recent pay out date for the image id (same as hl_listings.id) something like
$date= $info['date']
print $date when date=largest and type =0???
And display the date as 1/07/06 for example?
Next problem, i'd like to calculate the perectentage profit done something like this
print $info['amounts'] where type=0/$info['amounts'] where type=1 * 100 to show the percentage???
but only show the percent ie 10
but i dont know how to do this as php?
I know this is an awful lot guys but any help is greatly appreciated!!
If this helps the record 9 in the database is shown in what ive got so far: http://www.thehyipsite.com/index.php?a=image&lid=9 only the name, paying image and a link to the page that this record is on have been added to the table/image
another example at http://www.thehyipsite.com/index.php?a=image&lid=2 the other parts is just a image located at http://www.thehyipsite.com/images/Image_bk.gif
Like i said before any help greatly apprectiated!! 🙂 🙂
Many thanks
Mikk