brookside, if you're seeing plain php code in your html output then you have quotes problems.
E.g echo 'while ($foo){ echo $something; }'; will just output the php code in plain text. So double check where you are echoing and putting 'stuff'.
Problems with populating forms with queried information
Moderator: General Moderators