Minggu, 18 Agustus 2013

PHP Indonesia - Facebook: sudah pakai "substr($var[field],0,100)", tapi kena...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Refresh your vocabulary.

Learn a new word everyday by subscribing to Word of the Day. A great tool if you're studying for the GRE, GMAT or LSAT, or simply want to enhance your lexicon.
From our sponsors
sudah pakai "substr($var[field],0,100)", tapi kena...
Aug 18th 2013, 09:47, by Wi Bi

Wi Bi 9:47am Aug 18
sudah pakai "substr($var[field],0,100)", tapi kenapa artikel masih ditampilkan seluruhnya, ya? termasuk syntax "substr" tampil juga di-view artikelnya, need advice, please.

Gunawan Mujur Wibisono 9:48am Aug 18
echo "substr($var[field],0,100)"; ???

Wi Bi 9:51am Aug 18
ya, pake echo, tapi tetep aja tampil seluruhnya, kira2 apa yg salah? ini berkenaan dgn read more.

Agus Setiawan 9:52am Aug 18
$var['field'] --> Coba kasih petik, Kk.

Gunawan Mujur Wibisono 9:54am Aug 18
-_- nulisnya
echo substr($var[field],0,100); donk

Wi Bi 9:54am Aug 18
@agus, saya juga sudah coba pake petik, hasilnya malah error.

Wi Bi 9:55am Aug 18
@gunawan, ya pastinya pake echo donk

Ulumuddin Cahyadi Yunus 9:56am Aug 18
<?php echo ?>

Gunawan Mujur Wibisono 9:57am Aug 18
share code nya di pastebin lalu share ke mari ... (kl susah ketik 3 line sebelum line yg masalah dan dibawahnya)

Wi Bi 10:00am Aug 18
while($row=mysql_fetch_array($result)){
echo("<b>$row[title]</b><br>");
$detail="substr($row[content],0,50)";
echo("$detail");
echo("<a href=\"news_read.php?id=$row[id\">Read >></a><br><br>");
}

Ulumuddin Cahyadi Yunus 10:02am Aug 18
itu substr kenapa pake "" -_-
$detail=substr($row['content'],0,50);

Hero Hl 10:02am Aug 18
Short_tag=on belum?

Wi Bi 10:03am Aug 18
@ulumuddin, kan jadi variable-nya $detail, kalo petiknya diilangin artikelnya ga tampil, gan.

Wi Bi 10:04am Aug 18
@hero, Short_tag=on? di mana yak?

Hero Hl 10:07am Aug 18
Ada di php.ini, letak file nya tergantung konfigurasi servernya

Ulumuddin Cahyadi Yunus 10:07am Aug 18
lah, komen ane itu juga jadi variable-nya $detail kok :D
coba dulu :D

Gunawan Mujur Wibisono 10:18am Aug 18
share full code di pastebin deh

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar