I've been trying to use mysqli instead of mysql.
I have a file from another site which will fit nicely to this site im doing now, but i havent a clue what i need to do to convert it to mysqli.
This is the file
<?php
include 'connect.php';
//populate form dropdown box
$op = '';
$r = mysql_query("SELECT cat_id, category FROM categories ORDER BY cat_id");
if (mysql_num_rows($r)){
while ($d = mysql_fetch_assoc($r)){
$op .= "\n\t<option value='{$d['cat_id']}'>{$d['category']}</option>";
}
}
?>
Any help would be appreciated.......