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