Forum Moderators: coopster
$query = "SELECT s.hometown as hometown, s.height as height, s.weight as weight,
h.kowtitles as kowtitles, h.kowawards as kowawards,
w.nicknames as nicknames, w.finisher as finisher, w.setup as setup, w.music as music
FROM `efed_bio_singles` AS s,
`efed_bio_history` AS h,
`efed_bio_wrestling` AS w
WHERE s.bio_id = '{$defaultcharacterid}',
h.bio_id = '{$defaultcharacterid}',
w.bio_id = '{$defaultcharacterid}'";
$result = mysql_query($query);
echo $result;
?>
<h1 class=backstage>Character Management</h1><br />
<h2 class=backstage><?php echo $defaultcharactername; ?> - Personal</h2><br />
<form name="editcharacter" method="post">
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Hometown:</td><td class=row3>
<input type=text name=hometown class=fieldtext490 value="<?php echo $hometown; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Height:</td><td class=row3>
<input type=text name=height class=fieldtext40 value="<?php echo $row['height']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Weight:</td><td class=row3>
<input type=text name=weight class=fieldtext80 value="<?php echo $row['weight']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>KOW Related</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>KOW Titles:</td><td class=row3>
<input type=text name=kowtitles class=fieldtext490 value="<?php echo $row['kowtitles']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>KOW Awards:</td><td class=row3>
<input type=text name=kowawards class=fieldtext490 value="<?php echo $row['kowawards']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>Wrestling</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Nicknames:</td><td class=row3>
<input type=text name=nicknames class=fieldtext490 value="<?php echo $row['nicknames']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Alignment:</td><td class=row3>
<select name=alignmentid class=dropdown>
<option value=1>-Select-</option>
<?php
$query = 'SELECT * FROM efed_list_alignment';
$result = mysql_query ( $query );
while ( $alignment_row = mysql_fetch_assoc ( $result ) )
{
print "<option value=\"".$alignment_row['id']."\" ";
if($alignment_row['id'] == $row['alignment_id']) {
print " SELECTED";
}
print ">".$alignment_row['name']."</option>\r";
}
?>
</select></td>
</tr>
<tr>
<td width=120 class=rowheading>Manager:</td><td class=row3>
<select name=managerid class=dropdown>
<option value=0>- Select -</option>
<?php
$query = 'SELECT charactername,id FROM `efed_bio` WHERE `style_id`= 3';
$result = mysql_query ( $query );
while ( $manager_row = mysql_fetch_assoc ( $result ) )
{
print "<option value=\"".$manager_row['id']."\" ";
if($manager_row['id'] == $row['manager_id']) {
print " SELECTED";
}
print ">".$manager_row['charactername']."</option>\r";
}
?>
</select></td>
</tr>
<tr>
<td width=120 class=rowheading>Finisher Move:</td><td class=row3>
<input type=text name=finisher_name class=fieldtext490 value="<?php echo $row['finisher']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Setup Move:</td><td class=row3>
<input type=text name=setup_name class=fieldtext490 value="<?php echo $row['setup']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Entrance Music:</td><td class=row3>
<input type=text name=entrancemusic class=fieldtext490 value="<?php echo $row['music']; ?>"></td>
</tr>
</table><br />
<input type=submit value="Update Bio" class=button></form><br />
<?php
returnmain();
$query = "SELECT s.hometown as hometown, s.height as height, s.weight as weight,
h.kowtitles as kowtitles, h.kowawards as kowawards,
w.nicknames as nicknames, w.finisher as finisher, w.setup as setup, w.music as music
FROM `efed_bio_singles` AS s,
`efed_bio_history` AS h,
`efed_bio_wrestling` AS w
WHERE s.bio_id = '{$defaultcharacterid}',
h.bio_id = '{$defaultcharacterid}',
w.bio_id = '{$defaultcharacterid}'";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
{
$fieldarray=array('hometown','height','weight','kowtitles','kowawards','nicknames','finisher','setup','arena','music');
foreach ($fieldarray as $fieldlabel)
{
if (isset($row[$fieldlabel]))
{
$$fieldlabel=$row[$fieldlabel];
$$fieldlabel=cleanquerydata($$fieldlabel);
}
}
}
?>
<h1 class=backstage>Character Management</h1><br />
<h2 class=backstage><?php echo $defaultcharactername; ?> - Personal</h2><br />
<form name="editcharacter" method="post">
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Hometown:</td><td class=row3>
<input type=text name=hometown class=fieldtext490 value="<?php echo $row['hometown']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Height:</td><td class=row3>
<input type=text name=height class=fieldtext40 value="<?php echo $row['height']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Weight:</td><td class=row3>
<input type=text name=weight class=fieldtext80 value="<?php echo $row['weight']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>KOW Related</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>KOW Titles:</td><td class=row3>
<input type=text name=kowtitles class=fieldtext490 value="<?php echo $row['kowtitles']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>KOW Awards:</td><td class=row3>
<input type=text name=kowawards class=fieldtext490 value="<?php echo $row['kowawards']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>Wrestling</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Nicknames:</td><td class=row3>
<input type=text name=nicknames class=fieldtext490 value="<?php echo $row['nicknames']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Alignment:</td><td class=row3>
<select name=alignmentid class=dropdown>
<option value=1>-Select-</option>
<?php
$query = 'SELECT * FROM efed_list_alignment';
$result = mysql_query ( $query );
while ( $alignment_row = mysql_fetch_assoc ( $result ) )
{
print "<option value=\"".$alignment_row['id']."\" ";
if($alignment_row['id'] == $row['alignment_id']) {
print " SELECTED";
}
print ">".$alignment_row['name']."</option>\r";
}
?>
</select></td>
</tr>
<tr>
<td width=120 class=rowheading>Manager:</td><td class=row3>
<select name=managerid class=dropdown>
<option value=0>- Select -</option>
<?php
$query = 'SELECT charactername,id FROM `efed_bio` WHERE `style_id`= 3';
$result = mysql_query ( $query );
while ( $manager_row = mysql_fetch_assoc ( $result ) )
{
print "<option value=\"".$manager_row['id']."\" ";
if($manager_row['id'] == $row['manager_id']) {
print " SELECTED";
}
print ">".$manager_row['charactername']."</option>\r";
}
?>
</select></td>
</tr>
<tr>
<td width=120 class=rowheading>Finisher Move:</td><td class=row3>
<input type=text name=finisher_name class=fieldtext490 value="<?php echo $row['finisher']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Setup Move:</td><td class=row3>
<input type=text name=setup_name class=fieldtext490 value="<?php echo $row['setup']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Entrance Music:</td><td class=row3>
<input type=text name=entrancemusic class=fieldtext490 value="<?php echo $row['music']; ?>"></td>
</tr>
</table><br />
<input type=submit value="Update Bio" class=button></form><br />
<?php
returnmain();
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result
$query = "SELECT s.hometown, s.height, s.weight,
h.kowtitles, h.kowawards,
w.nicknames, w.finisher, w.setup, w.music
FROM `efed_bio_singles` AS s,
`efed_bio_history` AS h,
`efed_bio_wrestling` AS w
WHERE s.bio_id = '$defaultcharacterid',
h.bio_id = '$defaultcharacterid',
w.bio_id = '$defaultcharacterid'";
$result = mysql_query($query);
echo $query;
?>
<h1 class=backstage>Character Management</h1><br />
<h2 class=backstage><?php echo $defaultcharactername; ?> - Personal</h2><br />
<form name="editcharacter" method="post">
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Hometown:</td><td class=row3>
<input type=text name=hometown class=fieldtext490 value="<?php echo $row['hometown']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Height:</td><td class=row3>
<input type=text name=height class=fieldtext40 value="<?php echo $row['height']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Weight:</td><td class=row3>
<input type=text name=weight class=fieldtext80 value="<?php echo $row['weight']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>KOW Related</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>KOW Titles:</td><td class=row3>
<input type=text name=kowtitles class=fieldtext490 value="<?php echo $row['kowtitles']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>KOW Awards:</td><td class=row3>
<input type=text name=kowawards class=fieldtext490 value="<?php echo $row['kowawards']; ?>"></td>
</tr>
</table><br />
<h2 class=backstage>Wrestling</h2><br />
<table width="100%" class="table2">
<tr>
<td width=120 class=rowheading>Nicknames:</td><td class=row3>
<input type=text name=nicknames class=fieldtext490 value="<?php echo $row['nicknames']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Manager:</td><td class=row3>
<select name=managerid class=dropdown>
<option value=0>- Select -</option>
<?php
$query = 'SELECT charactername,id FROM `efed_bio` WHERE `style_id`= 3';
$result = mysql_query ( $query );
while ( $manager_row = mysql_fetch_assoc ( $result ) )
{
print "<option value=\"".$manager_row['id']."\" ";
if($manager_row['id'] == $row['manager_id']) {
print " SELECTED";
}
print ">".$manager_row['charactername']."</option>\r";
}
?>
</select></td>
</tr>
<tr>
<td width=120 class=rowheading>Finisher Move:</td><td class=row3>
<input type=text name=finisher class=fieldtext490 value="<?php echo $row['finisher']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Setup Move:</td><td class=row3>
<input type=text name=setup class=fieldtext490 value="<?php echo $row['setup']; ?>"></td>
</tr>
<tr>
<td width=120 class=rowheading>Entrance Music:</td><td class=row3>
<input type=text name=music class=fieldtext490 value="<?php echo $row['music']; ?>"></td>
</tr>
</table><br />
<input type="hidden" name="editted2" value="true">
<input type=submit value="Update Bio" class=button></form><br />
<form name="editcharacter" method="post" action="myfile.php">
[edited by: Matthew1980 at 10:00 pm (utc) on Mar 14, 2010]