i was able to convert the menu from mysql to mysqli
it now looks like this
$query = "SELECT s.team_id, s.teams AS teams1, ss.team_id, ss.teams AS teams2, a.id, a.team1, a.team2, b.auction, b.bidder, b.tagged, b.willwin, b.willlose FROM " . $DBPrefix . "auctions a
LEFT JOIN " . $DBPrefix . "bids b ON (b.auction = a.id)
LEFT JOIN " . $DBPrefix . "sports s ON (s.team_id = a.team1)
LEFT JOIN " . $DBPrefix . "sports ss ON (ss.team_id = a.team2)
WHERE a.id = :auc_id and a.id = a.id group by a.id";
$params = array();
$params[] = array(':auc_id', $id, 'int');
$db->query($query, $params);
?>
<form name="bid">
<label for="category">Select Winner</label>
<select name="willwin" id="menu">
<?php
if ($db->numrows() > 0){
while ($row = $db->fetch()) { ?>
<option value=''></option>
<option value="<?php echo $row["team1"]; ?>"><?php echo $row["teams1"]; ?></option>
<option value="<?php echo $row["team2"]; ?>"><?php echo $row["teams2"]; ?></option>
<?php
}
}
?>
But the submenu isnt budging i had to return it to it original state to be able to connect to it but it isnt perfect
</select>
<br/><br/><br/>
<label>Tag Bettor</label>
<select name="sub_cat" id="sub_cat"></select>
<?php
$menu = $_GET['menu'];
$query = mysql_query("SELECT a.id, a.team1, a.title, a.team2, s.team_id, s.teams, u.nick, b.id, b.willwin, b.willlose, b.bidder FROM vs_bids b
LEFT JOIN " . $DBPrefix . "vs_users u ON (u.id = b.bidder)
LEFT JOIN " . $DBPrefix . "vs_auctions a ON (a.id = b.auction)
LEFT JOIN " . $DBPrefix . "vs_sports s ON (s.team_id = b.willwin)
WHERE b.willlose = {$menu} and a.id = b.auction and b.bidder NOT IN ('b.tagged') and b.tagged IN ('b.bidder')");
while($row = mysql_fetch_array($query)) {
echo "<option value=''></option>";
echo "<option value='$row[team_id]'>$row[nick]...$row[teams]</option>";
}
?>
</form>
i have changed
while($row = mysql_fetch_array($query))
to
while ($row = $db->fetch())
changed
$query = mysql_query
to
$query =
added
$params = array();
$params[] = array(':auc_id', $id, 'int');
$db->query($query, $params);
yet noting