You are here: Re: select form entries from mysql table « PHP Language « IT news, forums, messages
Re: select form entries from mysql table

Posted by none on 10/15/05 04:19

Thanks for the answer... new questions coming soon :)

Jon ha scritto:
> Yeah, that'll help with validation. I think on the application I wrote in
> this in I was validating data before it goes into the DB and eliminating any
> possible character problems. I don't remember though - probably best to use
> htmlspecialchars just in case and not be lazy like me :p
> "Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in message
> news:diosv4$15l$1@news.onet.pl...
>
>>><form><select name="stuff">
>>><?php while($row=mysql_fetch_array($sqlResults)){
>>>?>
>>><option value<?php = $row['dataYouWantToOutput'];?></option>
>>><?php
>>>};
>>>?>
>>
>>
>>Should be something like:
>>
>><form><select name="stuff">
>><?php while($row=mysql_fetch_array($sqlResults)){
>>?>
>><option><?php echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?></option>
>><?php
>>};
>>?>
>></select>
>></form>
>>
>>or:
>>
>><form><select name="stuff">
>><?php while($row=mysql_fetch_array($sqlResults)){
>>?>
>><option value="<?php
>>echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?>"><?php echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?></option>
>><?php
>>};
>>?>
>></select>
>></form>
>>
>>Hilarion
>>
>
>
>

 

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

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