ציטוט:
נכתב במקור על ידי Eran-s
|
זה עדיין משאיר את התווים בצורה הזאת.
בכל מקרה, שיניתי את הקוד, ולא שינה שום דבר.
PHP קוד:
$querycon = "SELECT * FROM tablename ORDER BY id DESC LIMIT 3";
$querysql = mysql_query($querycon);
while($array = mysql_fetch_array($querysql)) {
$title = html_entity_decode($array["title"]);
$cont = html_entity_decode($array["value"]);
$echo = substr($cont, 1, 15)."...";
echo $echo;
}
http://superior.off.co.il/guides/index.php
:\