9
well here is the function that it is referanceing
function do_skills( $data ) {
#first delete the stale data
$name = $this->escape( $data['CharName'] );
$server = $this->escape( $data['Server'] );
$querystr = sprintf("DELETE FROM $skill_table WHERE `char` = '%s' " .
"and server ='%s'",
$name, $server);
mysql_query($querystr) or die(mysql_error());
foreach( array_keys( $data['Skills'] ) as $skill_type ) {
$sub_skill = $data['Skills'][$skill_type];
$order = $sub_skill['Order'];
foreach( array_keys( $sub_skill ) as $skill_name ) {
if( $skill_name != 'Order' ) {
$this->reset_values();
$this->add_value('char', $data['CharName'] );
$this->add_value('server', $data['Server'] );
$this->add_value('type', $skill_type );
$this->add_value('name', $skill_name );
$this->add_value('order', $order );
$this->add_value('level', $sub_skill[$skill_name] );
$querystr = "INSERT INTO $skill_table SET " . $this->assignstr;
print " n";
mysql_query($querystr) or die(mysql_error());
}
}
}
}
It does populate the database but not sure if it is populating everything