this did't work

main
hecht 13 years ago
parent 4962e21948
commit c75644e729

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

Loading…
Cancel
Save