liking a quote... need a little bit of help

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.

Well im not pro with php myself lol but I dont think you should put [] behind a variable
Only superglobals have that
And all you do with the variables is define the same variable 3 times?
I could be wrong maybe its more advanced PHP coding or something lol but yea
I don’t know what exactly you are trying to do sorry

Sponsor our Newsletter | Privacy Policy | Terms of Service