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";
}
upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please tell me how can i restrict that
MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE tutorialid='1' ORDER BY commentid DESC LIMIT $offset, $rowsperpage";Can I change the timezone
Storing user data help?
Hey Guys, I'm not use if this question is to broad but I can always give you more information if needed.I have a website where users can login which uses mysql anyway I have a little form asking some
Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at the last entered variable. Help would be great! <html><head>
What's best way to get a user's Word doc converted to simple html and images?
Hi all,I was just wondering if anybody has any experience of this.Basically, I'm building a site for a guy and he keeps throwing tonnes of content my way, all Word docs with tables, images, etc.The
Converting numbers to months
The porgram works -just need the last function(month_convert_ to convert numbers to months -thanks.
Sequencing or queuing parallel process
Scenario is as followsThere is one parent process say P1 and 4 child processes say A B C DProcess A starts at 3:00 pm Process B starts at 3:15 pm Process C starts at 3:30 pm Process D starts at 3:45
How to return to a previous page after running a PHP script
I'm having a bit of a melt down here because I think this should be really easy but can't work it out...!My page lists the records in my database and next to each record is a 'Delete' button. What I
Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and placeI would like to have a page that looks something like this:Monday:club1club2club3Tuesday:club1club2club3etc.and each club is
Socket Server Response Headers
Earlier I had a post about my Socket Server, I wasn't able to get it to connect, now I can I am using socket_write() to well hopefully send html to a web page, the problem I think is that I have to