Added mysqli support

This commit is contained in:
laf
2015-08-08 19:27:18 +00:00
parent 904a2099b5
commit 4b49c148b6
14 changed files with 1167 additions and 583 deletions

View File

@@ -20,9 +20,6 @@ foreach ($stack_poll_array as $port_id_high => $entry_high) {
else {
dbUpdate(array('ifStackStatus' => $ifStackStatus), 'ports_stack', 'device_id=? AND port_id_high=? AND `port_id_low`=?', array($device['device_id'], $port_id_high, $port_id_low));
echo 'U';
if ($debug) {
echo mysql_error();
}
}
unset($stack_db_array[$port_id_high][$port_id_low]);
@@ -30,9 +27,6 @@ foreach ($stack_poll_array as $port_id_high => $entry_high) {
else {
dbInsert(array('device_id' => $device['device_id'], 'port_id_high' => $port_id_high, 'port_id_low' => $port_id_low, 'ifStackStatus' => $ifStackStatus), 'ports_stack');
echo '+';
if ($debug) {
echo mysql_error();
}
}
}//end foreach
}//end foreach