Minggu, 15 September 2013

PHP Indonesia - Facebook: mau tanya saya udah buat readmore artikel yang say...

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/ 
Microsoft Excel 2010 Training Course

Beginner / Intermediate self-paced online course of Microsoft's spreadsheet application. Enroll for just $99.
From our sponsors
mau tanya saya udah buat readmore artikel yang say...
Sep 16th 2013, 01:07, by Ardian Saputra

Ardian Saputra 1:07am Sep 16
mau tanya saya udah buat readmore artikel yang saya dapat dari searching.. al hasil ga berjalan dengan sukses.. adakah disini yang punnya link referensi?

Muhammad Saleh Hafizh Fajri 1:17am Sep 16
sistem readmore saya buat sih g pake itung2 kata sampe 250 gitu tapi ngambil pada paragraf pertama saja di setiap postingannya, mau seperti itu?

Ardian Saputra 1:18am Sep 16
boleh juga itu.

Muhammad Saleh Hafizh Fajri 1:19am Sep 16
<?php
$query="SELECT `wy_post`.`post_id`, `wy_post`.`post_title`, `wy_post`.`post_category`, `wy_post`.`post_content`, `wy_post`.`post_tag`, `wy_post`.`post_user`, DATE_FORMAT(`wy_post`.`post_date`,'%d %M %Y') as date, `wy_category`.`category_id` FROM `wy_post`, `wy_category`
WHERE `wy_post`.`post_category`=`wy_category`.`category_title` ORDER BY `post_id` DESC LIMIT 0,10";
$row=$conn->query($query);
$data=$row->num_rows;
if(!$row=$conn->query($query)){
echo "
<div class='".$css."_imagetext'>
<p>Could not retrieve data!</p>
</div><!--close content_imagetext-->
";
}
else{
if($data==0){
echo "
<div class='".$css."_imagetext'>

<p>No data found in database!</p>

</div><!--close content_imagetext-->
";
}else{
while($data=$row->fetch_array()){
$content=explode("</p>",$data['post_content']);
echo "
<div class='".$css."_imagetext'>
<div class='content_title'>
<a href='?post_id=".$data['post_id']."'>".$data['post_title']."</a><br>
<h4>Posted by <a href='?author=".$data['post_user']."'>".$data['post_user']." </a>, ".$data['date']."</h4>
<h4>Category <a href='?catedory_id=".$data['category_id']."'>".$data['post_category']."</a>, Tags : ".$data['post_tag']."</h4>
</div>
".$content[0]."
<div class='button_small'>
<a href='?post_id=".$data['post_id']."'>Read more</a>
</div><!--close button_small-->";
$querycomment="SELECT COUNT(`comment_id`) as comment FROM `wy_comment` WHERE `post_id`='".$data['post_id']."'";
$rowc=$conn->query($querycomment);
$datac=$rowc->num_rows;
if(!$rowc=$conn->query($querycomment)){
echo "
<div class='comment'>
<p>Could not retrieve data!</p>
</div><!--close comment-->
";
}
else{
$datac=$rowc->fetch_assoc();
echo "
<div class='comment'>
<p>".$datac['comment']." Comments</p>
</div><!--close comment-->
";
}
echo "</div><!--close content_imagetext-->";
}
}
}
?>

itu

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