"; //echo "B=".$b."
"; $q_id = $b; $sqlg = "SELECT * FROM `quotes` WHERE `cat_url` = '$a' AND `id` = '$q_id' OR `sub_cat_url` = '$a' AND `id` = '$q_id' OR `ss_cat_url` = '$a' AND `id` = '$q_id'"; $resultg = mysql_query($sqlg) or die('Error, Quote table query failed ' . mysql_error()); $count_if_ext1 = mysql_num_rows($resultg); $top = "SELECT * FROM `quotes` WHERE `id` = '$q_id'"; $top_result = mysql_query($top) or die('Error, Select query failed of quotes table :' . mysql_error()); $count_if_ext = mysql_num_rows($top_result); if(($count_if_ext1 == '0') || ($count_if_ext == '0')) { header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); } else { $top_row = mysql_fetch_array($top_result); $p_id = $top_row['id']; $c_url = $top_row['cat_url']; $s_url = $top_row['sub_cat_url']; $ss_url = $top_row['ss_cat_url']; $title_for_meta1 = $top_row['description']; $title_for_meta1 = str_replace("
", "
", $title_for_meta1); $title_for_meta1 = str_replace("
", "
",$title_for_meta1); $title_for_meta1 = explode("<", $title_for_meta1); $title_for_meta1 = $title_for_meta1[0]; $title_for_meta1 = explode(" ", $title_for_meta1); $title_for_meta1 = "$title_for_meta1[0] $title_for_meta1[1] $title_for_meta1[2] $title_for_meta1[3] $title_for_meta1[4] $title_for_meta1[5]..."; $title_for_meta_strl = strtolower($top_row['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]"; $from_gid = $top_row['id']; if($ss_url != '') { $p_url = '/'.$ss_url.'/0'.$p_id.'/'; $chk_cat_url = $top_row['ss_cat_url']; $cat_name = $top_row['ss_cat_name']; } elseif(($s_url != '') && ($ss_url == '')) { $p_url = '/'.$s_url.'/0'.$p_id.'/'; $chk_cat_url = $top_row['sub_cat_url']; $cat_name = $top_row['sub_cat_name']; } else { $p_url = '/'.$c_url.'/0'.$p_id.'/'; $chk_cat_url = $top_row['cat_url']; $cat_name = $top_row['cat_name']; } $q_description = str_replace("
", "
", $top_row['description']); $q_description = str_replace("
", "
",$q_description); $q_description = str_replace('\"', '"',$q_description); //$q_description = str_replace('\"', "'",$q_description); $q_description = str_replace("\'", "'",$q_description); $description_og = $q_description; $description_og = str_replace("
", "\n",$description_og); //echo "Desc : $q_description
"; $image_code = str_replace("
", "
", $top_row['image_code']); $image_code = str_replace("
", "
",$image_code); $image_code = str_replace('\"', '"',$image_code); $image_code = str_replace('\"', "'",$image_code); $image_code = str_replace("\'", "'",$image_code); $q_publisher = $top_row['publisher']; $views = $top_row['views']; $q_votes = $top_row['voteup'] + $top_row['votedown']; $ratings = $top_row['ratings']; $v_up = $top_row['voteup']; $v = $views + 1; $n_views = mysql_query("UPDATE quotes SET views='$v' WHERE id='$q_id'"); $expected_url = "http://quotes.greet2k.com/$chk_cat_url-$p_id.html"; $url_path_get = "http://".$_SERVER['HTTP_HOST']."/$_REQUEST[cat]-$_REQUEST[id].html"; if($expected_url != $url_path_get){ header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); } //============================================================================= $fb_main_url = "http://quotes.greet2k.com".$p_url; $fb_thumb = "http://quotes.greet2k.com/images/poems.png"; ?> <?=$title_for_meta1;?>

Quotations

Author :
Quote Tags : $tgs[$i], "; } $tgts = substr($tgts, 0, strlen($tgts)-2); echo $tgts; ?>
Email this Quote now

Error! Cannot connect to the database.
Error! Server Is Down Or Database Does Not Exist.
Error! Server Is Down. Can Not Connect to Database.
">
">
">
">

Delivery Date  
>   Please send me a copy of this quote.
Comments...
Post Your Comment
Rate this card :