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

Posted by Colin Fine on 10/06/06 17:01

Vjeran wrote:
> thank you Pedro and Johnny, it's working now...
>
>
>
> "Pedro Graca" <hexkid@dodgeit.com> wrote in message
> news:slrneic7nl.dls.hexkid@ID-203069.user.individual.net...
>> ["Followup-To:" header set to comp.lang.php.]
>> Vjeran wrote:
>>> <?php
>>> $result = mysql_query("select * from news WHERE
>>> news_id='$news_id'") or
>>> die (mysql_error());
>>> while ($row = mysql_fetch_array($result))
>>> ....
>> It appears you have register_globals on.
>> http://php.net/register_globals
>>
>> *Turn it off!*
>>
>> And change your code to:
>>
>> <?php
>> $result = mysql_query("select * from news WHERE
>> news_id='".$_GET['news_id']."'") or die (mysql_error());
>> ...
>>
>>
>> Happy Coding :)
>> --
>> File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
>
>
.... but as I said to somebody else,

"doesn't work" doesn't tell us anything!

Colin

 

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

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