Re: Another new PHP programmer question...

From: Date: Thu, 03 Jan 2008 23:22:47 +0000
Subject: Re: Another new PHP programmer question...
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44481@lists.php.net to get a copy of this message
Ben Stones wrote:
Hello, Thank you for your help previously everyone, I was able to fix that problem. The thing now, is that I want to add smileys to the messages; i.e. :) would equal to a smiley image when posting a message.
Assuming you have images/smiley.gif on your server, it's pretty simple: echo '<img src="images/smiley.gif">'; at the right place.
else { mysql_query("INSERT INTO comments(messages) VALUES ('$post')") or die(mysql_error()); }
You're still not escaping your data and you will run into problems unless you start doing it. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#44481) next »