CoolAsCarlito
08-05-2008, 02:24 PM
<?php
}
else
{
?>
<center><table><tr><td>Title:</td><td>
<?php
echo '<select onchange="showTitle(this.value)">';
$data = mysql_query("SELECT titlename FROM titles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['titlename'].'">'.$row['titlename'].'</option>';
}
echo '</select>';
?></td></tr></table></center>
<?php
$q=$_GET["q"];
$con = mysql_connect('?", "?", "?"');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("?", $con);
$sql="SELECT * FROM titles WHERE id = '".$q."'";
$result = mysql_query($sql);
echo "<table border='1'>
<tr>
<th>Title Name:</th>
<th>Type:</th>
<th>Status:</th>
<th>Champion:</th>
<th>Contender 1:</th>
<th>Contender 2:</th>
<th>Contender 3:</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<input type="text" name="titlename" maxlength="60" value=" . $row['type'] . ">";
echo "<select name="type" value=" . $row['type'] . ">"
<option>Singles</option><option>Tag Team</option><option>Stable</option></select>;
echo "<select name="status" value=" . $row['status'] . ">"
<option>Active</option><option>Inactive</option></select>;
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
}
echo "</table>";
mysql_close($con);
?>
<?php
}
?>
}
else
{
?>
<center><table><tr><td>Title:</td><td>
<?php
echo '<select onchange="showTitle(this.value)">';
$data = mysql_query("SELECT titlename FROM titles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['titlename'].'">'.$row['titlename'].'</option>';
}
echo '</select>';
?></td></tr></table></center>
<?php
$q=$_GET["q"];
$con = mysql_connect('?", "?", "?"');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("?", $con);
$sql="SELECT * FROM titles WHERE id = '".$q."'";
$result = mysql_query($sql);
echo "<table border='1'>
<tr>
<th>Title Name:</th>
<th>Type:</th>
<th>Status:</th>
<th>Champion:</th>
<th>Contender 1:</th>
<th>Contender 2:</th>
<th>Contender 3:</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<input type="text" name="titlename" maxlength="60" value=" . $row['type'] . ">";
echo "<select name="type" value=" . $row['type'] . ">"
<option>Singles</option><option>Tag Team</option><option>Stable</option></select>;
echo "<select name="status" value=" . $row['status'] . ">"
<option>Active</option><option>Inactive</option></select>;
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
echo '<select value=" . $row['champion'] . ">';
$data = mysql_query("SELECT wrestlingname FROM singles");
while($row = mysql_fetch_assoc($data)) {
echo '<option value="'.$row['wrestlingname'].'">'.$row['wrestlingname'].'</option>';
echo '</select>';
}
echo "</table>";
mysql_close($con);
?>
<?php
}
?>