unplugged_web Posted June 27, 2008 Share Posted June 27, 2008 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 More sharing options...
roondog Posted June 27, 2008 Share Posted June 27, 2008 Try PRINT "<b>Salary: </b> "; print "\$".$row['salary']; I think or something similar. Link to comment Share on other sites More sharing options...
unplugged_web Posted June 27, 2008 Author Share Posted June 27, 2008 TryPRINT "<b>Salary: </b> "; print "\$".$row['salary']; I think or something similar. Briiliant, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.