| 
 Posted by Veikko Mδkinen on 06/14/81 11:22 
matt wrote: 
> Well, i'm stumped with a php/mysql issue so i'm bringing to the newgroups,  
> since i've had much luck here.  I have a mysql table with some entries  
> containing either TRUE or FALSE.  I want to create html form checkboxes and  
> check them based on these entries.  This is the php code i have in the  
> middle of my html form.  At this point the php code chooses to echo "  
> checked" or not to check the box: 
>  
>     $query = "SELECT 'read' FROM access WHERE usertype_id = '$usertype_id'  
 
This selects a string 'read', not a value from a column named read.  
Either drop single quotes or use ` -quotes. 
 
 
-veikko 
 
--  
         veikko 
mail@                     .com 
                 makinen
 
  
Navigation:
[Reply to this message] 
 |