Jelenlet alapfunkcio OK. Edzes torles OK.

This commit is contained in:
Ricsi
2016-11-20 22:55:27 +01:00
parent e4806322fd
commit f9e6e1ecbb
19 changed files with 289 additions and 44 deletions

View File

@@ -86,6 +86,26 @@ class user_parent {
}
}
public static function create_parent($_parent_name, $_email, $_facebook, $_phone) {
global $sql;
//beilleszti AB-ba
//visszaadja az ID-t
return $sql->insert_into('user_parent',
array(
'up_name' => $_parent_name,
'up_email' => $_email,
'up_facebook' => $_facebook,
'up_phone' => $_phone
)
);
}
public static function update_parent($_parent_value_array, $_up_id) {
global $sql;
$sql->update_table('user_parent', $_parent_value_array, array('up_id' => $_up_id));
}
}