Hi!
I'm making a form with some checkboxes and I would like some of them to be checked depending my database.
This is what Ive done but is not working I dont know why. Any help is appreciated
$result= mysql_db_query ("$DbName","SELECT * from mydb WHERE ID='$ID'");
<input name="one" type="checkbox" value="http://localhost/images/one.gif"
<? if($result['one']){echo"checked";}?>>
Thanx