|
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]
|