", "
", $top_row['description']); $p_description = str_replace("
", "
",$top_row['description']); $p_publisher = $top_row['publisher']; $submited = $top_row['submited']; $title_for_meta_strl = strtolower($p_description); $title_for_meta = str_replace("
", "
", $title_for_meta_strl); $title_for_meta = str_replace("
", "
",$title_for_meta); $title_for_meta = explode("
", $title_for_meta); $title_for_meta = "$title_for_meta[0] $title_for_meta[1] $title_for_meta[2]"; $c_name = $top_row['cat_name']; $s_name = $top_row['sub_cat_name']; $ss_name = $top_row['ss_cat_name']; $cat_name = $top_row['cat_name']; $sub_cat_name = $top_row['sub_cat_name']; $ss_cat_name = $top_row['ss_cat_name']; $cat_url_c = $c_url; $cat_url = $c_url; $sub_cat_url = $top_row['sub_cat_url']; $added = $top_row['added']; $ratings = $top_row['ratings']; $views = $top_row['views']; $v_up = $top_row['voteup']; $ratings = $top_row['ratings']; $v = $views + 1; //$v++; $n_views = mysql_query("UPDATE poems SET views='$v' WHERE id='$p_id'"); //Connect to main database include 'opendb-main.php'; $queryu = "SELECT * FROM `users` WHERE `username` = '$username'"; $resultu = mysql_query($queryu) or die('Error, query failed'); $rowu = mysql_fetch_array($resultu); $user_id = $rowu['id']; $pts = $rowu['pts']; //$ptsc = $pts+$cx; if(isset($_SESSION['userpts'.$from_gid])) {}else{ $ptsc = $pts + 2; $tquery = "UPDATE `users` SET `pts` = '$ptsc' WHERE `username` = '$username'"; $tresult = mysql_query($tquery) or die('Error, query failed ' . mysql_error()); } $_SESSION['userpts'.$from_gid] = 'pt'.$from_gid; include 'opendb.php'; if($ss_url != '') { $sm = 1; $sub_ch = $ss_url; $p_url = 'http://poems.funmunch.com/'.$ss_url.'-poem-'.$p_id.'.html'; $n_url = 'http://poems.funmunch.com/'.$ss_url.'/'; $np = "`cat_url` = '$c_url' AND `sub_cat_url` = '$s_url' AND `ss_cat_url` = '$ss_url'"; $mt_cat_name = $ss_cat_name; $chk_cat_url = $top_row['ss_cat_url']; $cat_name = $top_row['ss_cat_name']; } elseif(($s_url != '') && ($ss_url == '')) { $sm = 2; $s_ch = 1; $p_url = 'http://poems.funmunch.com/'.$s_url.'-poem-'.$p_id.'.html'; $n_url = 'http://poems.funmunch.com/'.$s_url.'/'; $np = "`cat_url` = '$c_url' AND `sub_cat_url` = '$s_url'"; $mt_cat_name = $sub_cat_name; $chk_cat_url = $top_row['sub_cat_url']; $cat_name = $top_row['sub_cat_name']; } else { $sm = 3; $p_url = 'http://poems.funmunch.com/'.$c_url.'-poem-'.$p_id.'.html'; $n_url = 'http://poems.funmunch.com/'.$c_url.'/'; $np = "`cat_url` = '$c_url'"; $mt_cat_name = $cat_name; $chk_cat_url = $top_row['cat_url']; $cat_name = $top_row['cat_name']; } $comid = 'poem_'.$p_id; $pm = 'poem_'.$p_id; $nxt = "SELECT * FROM `poems` WHERE `id` > '$cid' AND $np ORDER BY `id` ASC LIMIT 0,1"; $r_nxt = mysql_query($nxt) or die('Error, query failed ' . mysql_error()); if (mysql_num_rows($r_nxt) == 0) { $nxtr = $n_url; }else { while($row_next = mysql_fetch_array($r_nxt)) { $nxtr = 'http://poems.funmunch.com/'.$chk_cat_url.'-poem-'.$row_next[id].'.html'; } } $pre = "SELECT `id` FROM `poems` WHERE `id` < '$cid' AND $np ORDER BY `id` DESC LIMIT 0,1"; $r_pre = mysql_query($pre) or die('Error, query failed ' . mysql_error()); if (mysql_num_rows($r_pre) == 0) { $prer = $n_url; }else { while($row_pre = mysql_fetch_array($r_pre)) { $prer = 'http://poems.funmunch.com/'.$chk_cat_url.'-poem-'.$row_pre[id].'.html'; } } ?> <?=$p_title;?>
Home  :   Poems  :     :     :     :  

Publisher :-
Submitted By :-
Rate:    
Views:  | Rating:  |  Votes:
Comments ()
Comments
Funmunch.com
No comments yet. Comment about this poem & share your comments with other users who browse this poem. So be the first one...
Comments
( ,)
Thanks for your comments ! It will be shown after approval shortly.
Add your comment here

You are not signed in. Sign up or sign in to comment with a username.

Your Name:


Your Email:


Your Comment: [500 Words Limit]



Type security code here: