In my code for 1.5 I have the below. As this is an insert, the $timestamp fields should not be using $first_timestamp. It looks OK to me and does seem to work. Can you check below against your actual model code (as it may have changed for 1.5) ?
[code]$sql = "INSERT INTO sys_hw_processor ( system_id, processor_count, processor_cores, processor_logical, processor_description, processor_speed, processor_manufacturer, processor_architecture, timestamp, first_timestamp ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )"; $sql = $this->clean_sql($sql); $data = array("$details->system_id", "$input->processor_count", "$input->processor_cores", "$input->processor_logical", "$input->processor_description", "$input->processor_speed", "$input->processor_manufacturer", "$input->processor_architecture", "$details->timestamp", "$details->timestamp"); $query = $this->db->query($sql, $data);[/code]
_________________ Support and Development hours available from [url=https://opmantek.com]Opmantek[/url]. Please consider a purchase to help make Open-AudIT better for everyone.
|