homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
PHP on IIS.returning an error
mcjohnson




msg:3621398
 1:07 am on Apr 8, 2008 (gmt 0)

Hi folks,

I have a client running Windows 2003 server, and he has installed MySQL and PHP and is runnign a number of apps with taht technology.

I have installed a very simple script taht pulled tha news item from the database and displays it on the front page, linked to the news page.

That works fine. But when the user clicks the item, it returns a 404 page not found. I am sure the coding is right, and the news1.php is in place. Is there some reason that, due to the PHP sitting on an IIS server, that would cause the 404?

Here's the code I am using:

<?PHP

$query = "select * from al_news
order by ItemID desc limit 3";

$results=mysql_query($query) or die (mysql_error());
while ($rows=mysql_fetch_array($results))
$a = $rows;

if (isset($a)) {
echo "<img border=0 src=images/news.gif width=53 height=18><br><br>";
}else {echo "";}?>

<?PHP

$Title =$row['Title'];
$Content =$row['Content'];
$ItemID = $row['ItemID'];


$query = "select * from al_news
order by ItemID desc limit 3";

$results=mysql_query($query) or die (mysql_error());
while ($rows=mysql_fetch_array($results)) {
extract ($rows);
echo "::&nbsp;";
echo "<a href='news1.php?ItemID=$rows[ItemID]'>";
echo stripslashes($Title);
echo "</a>";
echo "<br>";
echo "<br>";
}
?>

ANY help would be appreciated.

Pat

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved