Using the thumbsup script to generate ratings for various things. Here is the current code:
echo ThumbsUp::item($reviewid)->template('mini_thumbs2')->format('{UP} out of {TOTAL} people found this review helpful')
I’m trying to add the text review_ before $reviewid. No matter what I try, Dreamweaver will stop showing errors, but the variable doesn’t pass through. Last thing I tried is:
echo ThumbsUp::item('review_$reviewid')->template('mini_thumbs2')->format('{UP} out of {TOTAL} people found this review helpful')
Have you tried using double quotes? Variables (and this is the rule for Perl too) won’t interpolate into strings unless you use double quotes.
Alternatively, you could use string concatenation to do the same thing: