biapar Beginner
Joined: 06 Feb 2004 Posts: 6
|
Posted: Fri Feb 06, 2004 12:00 pm Post subject: Patch: Insert index_value with '. File snmp_cache_view.php |
|
|
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 |
|