Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 10th, 2007, 02:59 PM
Friend of Wrox
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default entering £ (pound sign) into MySQL database - PHP

Can anyone tell me what the issue is with inserting a pound sign (£) into a MySQL database with PHP and retrieving it back out the database?

I haven't received an error, but when I use the following code the information just stops and does not render any further:

if (mysql_num_rows($result)) {
   $row = mysql_fetch_assoc($result);
   echo $row["moreinfo"] 

$row["moreinfo"] contains data like 'Paid £10,000'


Ayrshire Minis - a Mini E-Community
Old November 14th, 2007, 02:02 AM
Friend of Wrox
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran

try to use ascii value for £
£ - #163 - chr(163)

(Anything is Possible)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering data into an SQL database jmsherry SQL Server 2000 3 July 24th, 2007 01:00 AM
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 01:48 AM
pound sign and querystring ricespn Classic ASP Basics 3 October 19th, 2006 09:24 AM
Interfacing PHP/MYSQL to existing Database... mekh Pro PHP 6 February 8th, 2004 06:04 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.