Skip to content

Commit

Permalink
Switch mysql to mysqli
Browse files Browse the repository at this point in the history
  • Loading branch information
tooblue committed Jul 14, 2014
1 parent 44a9294 commit b74d5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradeform.php
Expand Up @@ -28,7 +28,7 @@
else if ( $hiatustrading == 1 ) { $result = $database->query("SELECT `id`,`name` FROM `tcgs` WHERE `status`='active' OR `status`='hiatus' ORDER BY `name`"); }
else if ( $inactivetrading == 1 ) { $result = $database->query("SELECT `id`,`name` FROM `tcgs` WHERE `status`='active' OR `status`='inactive' ORDER BY `name`"); }

while ( $row = mysql_fetch_assoc($result) ) {
while ( $row = mysqli_fetch_assoc($result) ) {
echo '<option value="'.$row['id'].'">'.$row['name'].'</option>';
} ?>
</select></td>
Expand All @@ -49,4 +49,4 @@
<td colspan="2" align="right"><input type="submit" name="tradesubmit" id="tradesubmit" value="Submit"></td>
</tr>
</table>
</form>
</form>

0 comments on commit b74d5f0

Please sign in to comment.