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
18
Other forums
CU&UC guide
Hi Gurus,
can anybody provide me the link for CU&UC upgrade guide
Thanks i
[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in
PHP form authentication
Hi guys,
what am trying to achieve is this: Whenever a user tries to login to my website, an
php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu
how to timeout $doc = new DOMDocument()->load($url)
I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than
what business processes?
Hi,
A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)
Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010
Saving PHP output as a file
I wondered if anyone knows how to save the rendered output of a PHP script as a file?
I have
Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is
rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the sam