You are here: Re: problem with php mysql iis « All PHP « IT news, forums, messages
Re: problem with php mysql iis

Posted by Johnny on 10/06/06 08:53

"Vjeran" <vperinov@MAKNIfoi.hr> wrote in message
news:eg4r1l$4lv$1@ss408.t-com.hr...
> Hi
> I have one page: index.php - news portal - with headlines, every headline
is
> a link to whole news , and the code is like this:
> ...
> $news_id=$row["news_id"];
> echo "<a href='news.php?news_id=$news_id'>
> ...
>
> the other page -news.php- that shows that news looks like this:
> ...
> <?php
> $result = mysql_query("select * from news WHERE
> news_id='$news_id'") or
> die (mysql_error());
> while ($row = mysql_fetch_array($result))
> ....
>
> and this works fine on the Internet (PHP/MySQL/Apache)
> but locally, I tried the same thing, and it doesn't work - but on
> PHP/MySQL/IIS
>
> it seems like it doesn't bring $news_id to sql query... is this a IIS
> problem or what?
>
> thanks for any help
> Vyeran
>
>
perhaps: relying on register globals to get $news_id in place of
$news_id = $_GET['news_id']

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация