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
Formatting echo from database
So I have a database that stores First and last names, then echos them back to a website, as of now
socket makes browser hang...
I have a socket server, and I am having a problem at the moment...
A browser sends a http hea
SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built
Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website
Simpler method of getting variables from mysql
Hi Guys,
I'm trying to streamline my CMS's code and as I was writing a new page it occured to
data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t
Multithreading in Oracle (Java, SQLJ, Pro*C,??) on 10g
I am investigating how to run a Java stored procedure in multithread mode.
I know that if I chang
small inaccuracies
I have this code to convert fractional base 10 into base 2:
while($num > 0)
Changes to hosting company's server has affected web contact form
I started a thread a couple of months ago about the contact forms on my client's website. Basically
Showing selected item at top of list
Hi,
I've got a list of names which i am fetching from database like this:
$qry = db_query