When this function gets loaded it doesn't load the image just trying to figure out why.
Code: function roleplay($fedid,$rp,$iframe,$dirpath,$folder,$headshot,$fullshot,$bioheadwidth,$bioheadheight) { print "<div id="roleplays">n";
$query = "SELECT rp.id as rpid, rp.title as rp_title, rp.rpdate as rp_date, rp.location as location, rp.roleplay as roleplay, bio.charactername as charactername, bio.username as username, bio.posername as posername FROM efed_content_roleplays as rp INNER JOIN efed_bio as bio ON ( rp.bio_id = bio.id ) WHERE rp.id = '$rp' ORDER BY rp.id desc"; $result = mysql_query ($query); while ($row = mysql_fetch_assoc($result)) { $fieldarray=array('rpid','rp_title','rp_date','location','roleplay','charactername','username','posername'); foreach ($fieldarray as $fieldlabel) { if (isset($row[$fieldlabel])) { $$fieldlabel=$row[$fieldlabel]; $$fieldlabel=cleanquerydata($$fieldlabel); } }