|
|
@ -57,12 +57,12 @@ function calculateRenovierungsKosten($arena){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getArena($user_id) {
|
|
|
|
function getArena($user_id) {
|
|
|
|
$sql = 'SELECT * FROM arena where besitzer = \''.$user_id.'\'';
|
|
|
|
$sql_select = 'SELECT * FROM arena where besitzer = \''.$user_id.'\'';
|
|
|
|
$qry = mysql_query($sql);
|
|
|
|
$qry = mysql_query($sql_select);
|
|
|
|
if(mysql_num_rows($qry) == 0) {
|
|
|
|
if(mysql_num_rows($qry) == 0) {
|
|
|
|
$sql = 'INSERT arena(besitzer, exp) values (\''.$user_id.'\', \'0,'.calculateRequiredExpArena(1).'\')';
|
|
|
|
$sql = 'INSERT arena(besitzer, exp) values (\''.$user_id.'\', \'0,'.calculateRequiredExpArena(1).'\')';
|
|
|
|
mysql_query($sql);
|
|
|
|
mysql_query($sql);
|
|
|
|
$qry = mysql_query($sql);
|
|
|
|
$qry = mysql_query($sql_select);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$arena = mysql_fetch_assoc($qry);
|
|
|
|
$arena = mysql_fetch_assoc($qry);
|
|
|
|
return $arena;
|
|
|
|
return $arena;
|
|
|
|