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";
}
All possible combinations of String in PL/SQL
Hi All,
PHP not creating file.
Its supposed to create a .ini file in the /scriptfiles/users/ with the name they entered into the field then its supposed to create a password in the file in md5 encryption like this
Displaying different page content, depending on the logged in user.
Hi all, I am new to ASP.net (and web development in general), and have a question about how I can display different page content depending on the current user.I wish to create a digg style social news
Simple MySQL script is not working
Hey guys, Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly book that addresses both topics and has the platypus on the cover. At any rate, I tried typing in chapter 6
Help =( !! Upload Pics [PHP script]
HelloI need help with a php script [MULTIPLE UPLOAD IMAGES] , where I want to add a feature (watermark the uploaded pictures) , thats mean its watermark & upload in the same time . look this
defining website tags
Hi,What would be the best way to define tags for my site, such as website title, url etc.Should I just use somethng like:$website_name = "name";or should I use arrays?Thanks
Web Application Recipe
Hi Guys! I am working with the Web Application recipes. I am currently working on the send password page. The page is working, but I sends the same password and username regardless of the email
disabling a button server-side then re-enabling client-side breaks button postback
I have a tabbed container and a button (not in the container) on a page. If the first tab is selected, I want the button enabled. If the second is selected, I want the button disabled. I have created
Advice on how to delete a mysql row using my form
Hi,I am very new to php and am struggling to work out how to delete a portfolio item (a row from my database using my form which is here):
Attempt to assign property of non-object in...
I'm having issues with the following function in PHP 5... function getTreeWithChildren() { $category_id = $this->fields['id']; $parent_id =