Ben Stones wrote:
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.
mysql_query("INSERT INTO `comments`(`messages`) VALUES ('$post')") or
You're still not escaping your data and you will run into problems
unless you start doing it.
Postgresql & php tutorials
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php