| 
	
 | 
 Posted by Vjeran on 10/06/06 05:55 
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
 
  
Navigation:
[Reply to this message] 
 |