Hi all, I need a bit of code and I’m not “great” at php I can read it and understand it but writing it is a different matter.
I have this bit of code within my website at the moment,
[php]<?php
$quotes[] = ‘Quote number one’;
$quotes[] = ‘Quote number two’;
$quotes[] = ‘Quote number three’;
$random_number = rand(0,count($quotes)-1);
echo $quotes[$random_number];
?> [/php]
This will display a random quote.
I need a bit of code on the top of the site that will display the total number of likes/tweet the site has receive but each individual quote has received too…
SO…
“Quote number one” is displayed and someone likes it and tweets it, on this page the like/tweets is one but… the total number of likes/tweets for the website is 5 so the box at the top says 2 likes and 3 tweets.
(I hope I’m explaining this clearly)
Any help would be appreciated.