I have few check boxes which users can select..inside a form..I'm sending all the checked check boxes to database and saving them by imploding ','..
Then again in html i'm exploding "," and getting data..But now i want to keep the check boxes which are already checked..How can i do that..I have tried following..
$chkw = $works; $chkecked = explode(',',$chkw); <input name="work" value="doctor" type="checkbox" <?php echo $chkecked  == 'doctor' ? 'checked="checked"':'' ?>>
But this way it is wrong..