for your first code use an elseif which will either display one or the other
if ($row[dependents]=='with'){
...
}elseif($row[dependents]=='without'){
...
}
public-image
Junior Poster in Training
76 posts since Oct 2010
Reputation Points: 10
Solved Threads: 11