Hi ...
I am not sure if this is the rite place to post this but if its not sorry
i am new here and need help with my cricket scores script now the code works well i just cant get the next or prev to work
so when i click next it stays on the same page with the same items this is my code
Code: <?php
$ShowBookmark = "False";
include 'Include/Header.php';
?>
<div class="hd2"><center><font face="Verdana" size="3"><b>Daily Cricket News</b></font></center></div>
<?php
extract($_REQUEST);
$feed = "http://content-www.cricinfo.com/rss/content/feeds/news/0.xml";
$fp = @fopen($feed,"r");
if(!$fp)
{
echo"Cannot Connect to read info<br/>";
echo"Try Again Later <br/>";
} else
{
while(!feof($fp)) $raw .= @fgets($fp, 4096);
fclose($fp);
if( eregi("<item>(.*)</item>", $raw, $rawitems ) ) {
$items = explode("<item>", $rawitems[0]);
$m4u_items_per_page = 5;
if ($m4u == "")$m4u = "1";
$countfile= count($items);
$countfile=$countfile-2;
$first=($m4u*$m4u_items_per_page)-$m4u_items_per_page;
$m4u_pages = ceil($countfile / $m4u_items_per_page);
$next_arrays=($first+($m4u_items_per_page-1));
if($next_arrays>$countfile)$next_arrays=$countfile;
for ($i=($first); $i <= $next_arrays; $i++) {
eregi("<title>(.*)</title>",$items[$i+1], $title );
eregi("<link>(.*)</link>",$items[$i+1], $url );
eregi("<description>(.*)</description>",$items[$i+1], $description);
eregi("<pubDate>(.*)</pubDate>",$items[$i+1], $pubDate);
$url[1] = str_replace("<![CDATA[", "", $url[1]);
$url[1] = str_replace("]]>", "", $url[1]);
$url[1] = str_replace("<![CDATA[", "", $url[1]);
$title[1] = str_replace("'", "", $title[1]);
$title[1] = str_replace("&", "&", $title[1]);
$title[1] = str_replace("<", "<", $title[1]);
$title[1] = str_replace(">", ">", $title[1]);
$title[1] = str_replace("<![CDATA[", "", $title[1]);
$title[1] = str_replace("]]>", "", $title[1]);
$description[1] = str_replace("&", "&", $description[1]);
$description[1] = str_replace("<", "<", $description[1]);
$description[1] = str_replace(">", ">", $description[1]);
$description[1] = str_replace("'", "'", $description[1]);
$description[1] = str_replace("<![CDATA[", "", $description[1]);
$description[1] = str_replace("]]>", "", $description[1]);
echo '<font face="Verdana" size="2"><u><b> '.$title[1].'</font></u></b>
';
echo '<font face="Verdana" size="2">'.$description[1].'</font>
';
}
}
}
if ($m4u_pages>1) {
echo "<hr/>";
echo "Page {$m4u} of {$m4u_pages}<br/>";
}
if ($m4u <= $m4u_pages and $m4u>1) $m4u_prew = '<a href="news.php?npage='.($m4u-1).'"><- prev<br/></a> ';
if ($m4u_pages > 1 and $m4u<$m4u_pages) $m4u_next = ' <a href="news.php?npage='.($m4u+1).'">next -></a>';
if ($m4u_pages>1) {
echo "<b>".$m4u_prew.$m4u_next."</b><br/>";
}
?>
<div class="menu">
</div>
<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Back.gif"></td><td>
<font face="Verdana" size="2"><b><a href="index.php?cmd=100">Back</b></font></a>
</td></tr>
</table>
<hr>
<?php include 'Include/Footer.php'; Log_Hit("CricketNews"); ?>
I need to increse 6hours more, and i don't know how???
I need to increse 6hours more, and i don't know how???<tr> <th>{ov_server_time}</th> <th
SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is significal for e.g Plan cost is 112 million where as budget is 136 million. In this situation what will
Stuck with preg_replace
Hi,I'm trying to use preg_replace to remove part of the IP address submitted using a form on my website. The full IP is entered into my SQL database, but when printing it on the website I want to
How to implement HTTP connection timeout
Hi All,I would like to implement an HTTP connection timeout.I am working on a application which uses HTTP connection, but the problem here is that the response from server is late... I want to create
PHP and XML image gallery variable issue
I'm trying to display the large image on the same page as the thumbnails, to do that I'm passing a variable called $current. I know that the code to display large image works, because it works when no
Session problem?!?
Hello All! I am very new to the php world but I am working on fixing things that a previous programmer screwed up for a site that I have. Let me explain what the current issue is. I believe it had to
Help, Base64 encoding url and decoding server side.
Hello everyone, i have a website with videos and games and also provide an embed code which people can use to embed the games and videos on their website.My problem is that alot of people would embed
mails going in spam??
The mails I sent to folks in my database using mail(function) are going in spam??Any idea how I rectify this issue?
defining website tags
Hi,What would be the best way to define tags for my site, such as website title, url etc.Should I just use somethng like:$website_name = "name";or should I use arrays?Thanks
Help to integrate whois Domain Details to website
Hi, can i know is their any php script r methods to add domain details to my website.I mean when user wants to know the details about a particular domain they will type in a text box, so that we need