Commit | Line | Data |
---|---|---|
bc13d5d6 H |
1 | <? |
2 | ||
3 | ini_set("include_path","./inc:./boxiky/:./config:../inc:../boxiky/:../config"); | |
4 | include_once("kyberia.inc"); | |
5 | $database=new CLASS_KYBERIA(); | |
6 | ||
7 | //toto je povodne stanovenie dK podla charizmy | |
8 | $q="select count(*) as pocet,friend_id from friends group by friend_id "; | |
9 | ||
10 | $set=$database->query($q); | |
11 | ||
12 | //najprv sa stanovi dkarma podla charizmy | |
13 | while($set->next()) { | |
14 | $q0="update user set charisma='".$set->getString('pocet')."' where id='".$set->getString('friend_id')."'"; | |
15 | $database->query($q0); | |
16 | } | |
17 | echo "<br><br>"; | |
18 | ?> | |
19 |