All pastes #458392 Raw Edit

Unnamed

public text v1 · immutable
#458392 ·published 2007-04-25 21:21 UTC
rendered paste body
$result = $chronos->DB->Query("SELECT * FROM action_paths ap LEFT JOIN actions a ON a.action_id = ap.action_id WHERE ap.action_path = '%1$s'", $action);
			
$fields = $result->fetch_fields();
		
if($ro = $result->fetch_array()){
	$row = array();
	foreach($ro as $r){
		$row[$fields[$r]->table . '_' . $fields[$r]->name] = $r;
	}
	
	$chronos->Action($row['action'], $row);
}