php echo !+rep!
#1

hi,

i know this is not a php forum but this problem is really tiny so i thought id try it here.

PHP код:
//i get my money amount from a mysql database then i print it onto an image
//but my question is how would i not only display the money amount like e.g. just 200 but also a dollar sign behind it?
//Like: 200$
//how could i also echo the $ signs behind the money amount?
$Money=mysql_result($result,0,"Money"); 
$text_money $Money
imagettftext($im200150174$text_color$font$text_money);
//i tried things like:
echo'$';
//but it didnt work. 
would be happy abot help.
Reply
#2

Just a quick guess:

PHP код:
echo '\$'
Reply
#3

thx,

and where to place it?
like

PHP код:
imagettftext($im200150174$text_color$font$text_money);echo '\$'
pretty new to this...
Reply
#4

$text_money = $Money."\$";

and no need for the echo..
At least I guess that this is what you wanted
Reply
#5

PHP код:
$str $Money."$";

echo 
$str
Reply
#6

EDIT: Way too late
Reply
#7

Quote:
Originally Posted by iTorran
Посмотреть сообщение
EDIT: Way too late
you always are
Reply
#8

THE_KNOWN'S method worked!
BUt no need for the echo as already mentioned.

thx alot!

reps+ for all
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)