$write = new db(); $write->col1 = $ip; $write->col2 = $brws; $write->col3 = $ref; $write->col4 = $os; $write->add("dronix6_counter");
if ($table == 'dronix6_counter') { $insert = mysql_query("INSERT INTO `dronix6_counter` VALUES ('', '$this->col1', '$this->col2', '$this->col3', '$this->col4', NOW());"); } // end if