Im trying to have php code that contains an echo. within that echo however, I need it to echo php code within it. a short example is bellow.
Otherwise, try reversing it:
while ($row = mysql_fetch_array($result)) { ?>
And also switch to PDO objects.