Not loading image


Posted on 16th Feb 2014 07:03 pm by admin

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);
}
}

if (file_exists("$dirpath$headshot/$posername.jpg"))
{
if ($iframe == "yes")
{
print "<a href=$folder/roster.php?username=$username target=_top><img src=$folder$headshot/$posername.jpg border=0 align=left width=".$bioheadwidth." height=".$bioheadheight." hspace=5 vspace=5></img></a>n";
}
else
{
print "<a href=$folder/bio.php?username=$username target=_top><img src=$folder$headshot/$posername.jpg border=0 align=left width=".$bioheadwidth." height=".$bioheadheight." hspace=5 vspace=0></img></a>n";
}
}
print "<font size=5> ".$rp_title."</font>
n";
print "<b>Featuring:</b> <a target=_top href=".$folder."/bio.php?username=".$username.">".$charactername."</a>
n";
if ($rp_date != "") { print "<b>Date:</b> ".$rp_date."
n"; }
if ($location != "") { print "<b>Location:</b> ".$location."
n"; }
print "

<p style="margin-left:20px;margin-right:20px;">n";

print nl2br($roleplay)."
n";
print "</p><hr>n";
if ($iframe == "yes")
{
print "<center><a target=_top href=".$folder."/roster.php?username=".$username.">View ".$charactername."'s Biography</a></center>n";
}
else
{
print "<center><a target=_top href=".$folder."/bio.php?username=".$username.">View ".$charactername."'s Biography</a></center>
n";
}
}

print "</div>n";
}

No comments posted yet

Your Answer:

Login to answer
188 Like 18 Dislike
Previous forums Next forums
Other forums

Little problem with form insertion in MySQL, Please help!!!
Hi!,

I'm a little bit new with php and I have a little issue here. I created a webform to ins

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

PHP MySQL and DATE
Hi everyone

I have a databse and in one of the columns I have date values such as 2009-March-

How to store checkbox array in a session, and then be able to add to it?
I'm trying to store an array of checkbox values into a session array, sort of like a shopping cart,

sql problems
I am having a small problem with my sql statement. it is inserting into 4 of the fields.

fie

PHP submit form script causing blank page
Im trying to submit a form using this script, however nothing shows up on the page, does anyone know

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

Place specific image in html page when specific name is typed.
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Relative path
I have a absolute path to an image - like so: C:/Program Files/Apache Software Foundation/Apache2.2/

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash