Jump to content

Adding symbols


unplugged_web

Recommended Posts

I've got two pages that display a salary in a different way. The database for salary is INT so there are no $ symbols. How do I add that so that it's always displayed?The two ways the field is displayed are:

echo "<td>" . $row['salary'] . "</td>";

and

PRINT "<b>Salary: </b> "; print $row["salary"];

thanks

Link to comment
Share on other sites

Try

PRINT "<b>Salary: </b> "; print "\$".$row['salary'];

I think or something similar.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...