'0') { $meta_title_end = " - page $_REQUEST[w]"; } //============================================================================ $topsql_sg = "SELECT SUM(voteup) AS `vtup`, SUM(votedown) AS `vtdown`, SUM(views) AS `totalview` FROM `poems`"; $topresult_sg = mysql_query($topsql_sg) or die('Error, query failed ' . mysql_error()); $toprow_sg = mysql_fetch_array($topresult_sg); $voteup_sg = $toprow_sg['vtup']; $votedown_sg = $toprow_sg['vtdown']; $totalview = $toprow_sg['totalview']; $total_sg = $voteup_sg + $votedown_sg; if($voteup_sg > 0) { $percenteach = ($voteup_sg/$total_sg) * 5; $rate_sg = round($percenteach, 0); }else{ $rate_sg = "0"; } //============================================================================= ?> Free Poems, Birthday, Funny, Love Poetry "; } ?>
  • Poems

Poetry

Free Poems - Valentines day, Love Poems, Funny Poetry
A collection of beautiful free poems! Choose from love poems, funny poems, birthday poems, friendship poems, valentines day poems and more...

Last added poems

More...
Title
Rating
Views
Category
", "
", $top_row['description']); $p_description = str_replace("
", "
",$top_row['description']); $p_description = str_replace('\"', '"',$p_description); $p_description = str_replace('\"', "'",$p_description); $p_description = str_replace("\'", "'",$p_description); $p_publisher = $top_row['publisher']; $p_views = $top_row['views']; $p_votes = $top_row['voteup'] + $top_row['votedown']; $p_ratings = $top_row['ratings']; if($ss_url != '') { $p_url = '/'.$ss_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$ss_url.'/'; $cat_name = $top_row['ss_cat_name']; } elseif(($s_url != '') && ($ss_url == '')) { $p_url = '/'.$s_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$s_url.'/'; $cat_name = $top_row['sub_cat_name']; } else { $p_url = '/'.$c_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$c_url.'/'; $cat_name = $top_row['cat_name']; } $cat_url = '/'.$c_url.'/'; $cat_name = $top_row['cat_name']; ?>

Most viewed poems

More...
Title
Rating
Views
Category
", "
", $top_row['description']); $p_description = str_replace("
", "
",$top_row['description']); $p_description = str_replace('\"', '"',$p_description); $p_description = str_replace('\"', "'",$p_description); $p_description = str_replace("\'", "'",$p_description); $p_publisher = $top_row['publisher']; $p_views = $top_row['views']; $p_votes = $top_row['voteup'] + $top_row['votedown']; $p_ratings = $top_row['ratings']; if($ss_url != '') { $p_url = '/'.$ss_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$ss_url.'/'; $cat_name = $top_row['ss_cat_name']; } elseif(($s_url != '') && ($ss_url == '')) { $p_url = '/'.$s_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$s_url.'/'; $cat_name = $top_row['sub_cat_name']; } else { //$sqlcat = "SELECT `sub` FROM `poems_main_categories` WHERE `cat_url` = '$c_url'"; //$resultcat = mysql_query($sqlcat) or die('Error, Query failed of category table:' . mysql_error()); //$rowcat = mysql_fetch_array($resultcat); //$sub = $rowcat['sub']; //if($sub == "no"){ $p_url = '/'.$c_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$c_url.'/'; //}else{ //$p_url = '/'.$c_url.'/'.$p_title_path.'-'.$p_id.'/'; //$cat_url = '/poems-'.$c_url.'.html'; //} $cat_name = $top_row['cat_name']; } $cat_url = '/'.$c_url.'/'; $cat_name = $top_row['cat_name']; ?>

Random poems

Title
Rating
Views
Category
", "
", $top_row['description']); $p_description = str_replace("
", "
",$top_row['description']); $p_description = str_replace('\"', '"',$p_description); $p_description = str_replace('\"', "'",$p_description); $p_description = str_replace("\'", "'",$p_description); $p_publisher = $top_row['publisher']; $p_views = $top_row['views']; $p_votes = $top_row['voteup'] + $top_row['votedown']; $p_ratings = $top_row['ratings']; if($ss_url != '') { $p_url = '/'.$ss_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$ss_url.'/'; $cat_name = $top_row['ss_cat_name']; } elseif(($s_url != '') && ($ss_url == '')) { $p_url = '/'.$s_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$s_url.'/'; $cat_name = $top_row['sub_cat_name']; } else { //$sqlcat = "SELECT `sub` FROM `poems_main_categories` WHERE `cat_url` = '$c_url'"; //$resultcat = mysql_query($sqlcat) or die('Error, Query failed of category table:' . mysql_error()); //$rowcat = mysql_fetch_array($resultcat); //$sub = $rowcat['sub']; //if($sub == "no"){ $p_url = '/'.$c_url.'/'.$p_title_path.'-'.$p_id.'/'; $cat_url = '/'.$c_url.'/'; //}else{ //$p_url = '/'.$c_url.'/'.$p_title_path.'-'.$p_id.'/'; //$cat_url = '/poems-'.$c_url.'.html'; //} $cat_name = $top_row['cat_name']; } $cat_url = '/'.$c_url.'/'; $cat_name = $top_row['cat_name']; ?>