biapar
06-02-2004 07:00:10
If index_value has a ' into value, we have a db error. Then
before insert data into db, we must insert
$index_value = $r_snmp[$index_type];
//COMMAND patch
$index_value = str_replace("'", "", $index_value);
// create the subdevice
db_update("INSERT INTO sub_devices SET dev_id='$dev_id', type=2, name='$index_value'");
Bye
D