PDA

View Full Version : Trouble printing pound sign (£) into a table


simonwraight
02-15-2008, 09:51 AM
I am having a strange problem where the pound sign is not showing up in a printed out table. The funny thing is I have had it working before using chr(163) but this does not seem to work. here is my code.

print "<tr align='center'><td><a href='reservation.php?roomID=" . $row['roomID'] . "&amp;arriveDate=$arriveDate&amp;numGuests=$numGuests&amp;departDate=$departDate&amp;totalCost=$totalCost'>Reserve</td><td>" . $row['name'] . "</a></td><td>" . $row['description'] . "</td><td>" . $row['maxOccupants'] . "</td><td>" .chr(163) $row['rate'] . "</td><td>" .chr(163) $row['rate'] * $duration."</td></tr>";

In the past it has even worked just by printing "£" but not today ????

rangana
02-15-2008, 10:07 AM
You could give £ (ampersandPOUNDSIGN163; ) :D

simonwraight
02-15-2008, 10:18 AM
Thanks that works great.

rangana
02-15-2008, 10:20 AM
You're completely welcome!..Glad I could help :D