Forum: PHP Dec 16th, 2007 |
| Replies: 5 Views: 970 use the function mysql_escape_string();
It will make sure all the characters are escaped and safe to use in a mysql query
escaping a character is adding a \ in front of a character. Eg: \'
... |
Forum: PHP Dec 12th, 2007 |
| Replies: 2 Views: 788 Simple.
Take the text of the article as a string, crop the string to a certain size, append "......" to the string and display it.
<?php
... |