You are here: Re: Result of checkbox selection into an SQL request « PHP Programming Language « IT news, forums, messages
Re: Result of checkbox selection into an SQL request

Posted by Barry on 09/13/05 13:10

<?php
$sql="select id, name from table";
if (isset($_POST['fieldname'])){
$sql.=" where field='blue'";
}else{
$sql.=" where field='red'";
}
?>
Nicolas Rubin wrote:
> Hi,
>
> I would transfer the result of a checkbox selection into an SQL request.
>
> Could you help me ?
>
> Many thanks in advance
>
> Nicolas

 

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

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