From ce6690a38b8c704d19cb10538bdac3e11b02bb16 Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 24 Oct 2016 18:03:51 +0000 Subject: [PATCH] nearly correct replacements -.- --- ag/clan/add.php | 4 ++-- ag/clan/clan_info.php | 4 ++-- ag/clan/spende.php | 2 +- ag/gm/include/attacken.inc.php | 2 +- ag/gm/include/item.inc.php | 2 +- ag/gm/include/npc.inc.php | 2 +- ag/gm/include/rassen.inc.php | 2 +- ag/inclu/user-controll.php | 10 +++++----- ag/include/arena.inc.php | 2 +- ag/include/auktion_functions.inc.php | 6 +++--- ag/include/bann.inc.php | 8 ++++---- ag/include/clan_chat.inc.php | 2 +- ag/include/config.inc.php | 2 +- ag/include/config/db_example.inc.php | 2 +- ag/include/pollfunctions.inc.php | 2 +- ag/index.php | 2 +- ag/info/attacken.php | 2 +- ag/info/items.php | 2 +- ag/kampf_list.php | 4 ++-- ag/markt.php | 4 ++-- ag/nachricht.php | 4 ++-- ag/ranglist.php | 2 +- ag/turnier.php | 4 ++-- ag/turnier2.php | 2 +- 24 files changed, 39 insertions(+), 39 deletions(-) diff --git a/ag/clan/add.php b/ag/clan/add.php index 225a772..0e3f6e5 100644 --- a/ag/clan/add.php +++ b/ag/clan/add.php @@ -110,7 +110,7 @@ if ($action == 'accept') { $sql = 'SELECT c.clanz_pre, c.clanz_suff, c.clanname, c.geld, c.info, c.id, c.leader FROM clan c ORDER BY '.$poll1.' '.$poll2.' LIMIT '.($pagenum*20).',20'; $clan = db_query($sql); while ($row = mysqli_fetch_array($clan)) { - $mitglieder = mysqli_stmt_num_rows(db_query('SELECT id FROM user WHERE clan='.$row['id'])); + $mitglieder = mysqli_num_rows(db_query('SELECT id FROM user WHERE clan='.$row['id'])); $z_v = array($row['clan_pre'], $row['clan_suff']); ?> @@ -133,7 +133,7 @@ if ($action == 'accept') { ###LABEL###'; ?> diff --git a/ag/clan/clan_info.php b/ag/clan/clan_info.php index 16b986d..136c0f9 100644 --- a/ag/clan/clan_info.php +++ b/ag/clan/clan_info.php @@ -72,7 +72,7 @@ if((isset($_GET['value1']) || isset($_GET['value2']) || isset($_GET['edited'])) function displayClanProfileReadOnly($clan, $ownclan, $userid){ $member_qry = db_query('Select id from user where clan = '.$clan['id']); - $count = mysqli_stmt_num_rows($member_qry); + $count = mysqli_num_rows($member_qry); $member = array(); while($row = mysqli_fetch_assoc($member_qry)){ $tmp = generateUserLinkByID($row['id']); @@ -258,7 +258,7 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){ function displayClanProfileEditable($clan, $userid){ $member_qry = db_query('Select id from user where clan = '.$clan['id']); $member = array(); - $count = mysqli_stmt_num_rows($member_qry); + $count = mysqli_num_rows($member_qry); while($row = mysqli_fetch_assoc($member_qry)){ $tmp = generateUserLinkByID($row['id']); $kickable = true; diff --git a/ag/clan/spende.php b/ag/clan/spende.php index 884fff5..aaab231 100644 --- a/ag/clan/spende.php +++ b/ag/clan/spende.php @@ -159,7 +159,7 @@ while($row = mysqli_fetch_assoc($qry)){ //print_r($user_raum); $clans_spend = db_query('SELECT spende, nickname, user.id as userid FROM user left join user_clan on user.id = user_clan.userid and user.clan = user_clan.clanid WHERE user.clan = '.$user_ida['clan'].' ORDER BY spende DESC'); -$member = mysqli_stmt_num_rows($clans_spend); +$member = mysqli_num_rows($clans_spend); $sql = 'select besitzer, round(sum(1/(1+exp(3-level/12)) * nutzung)) as nutzkosten from user inner join chars on chars.besitzer = user.id inner join clan_ware on chars.clan_train = clan_ware.id inner join clan_item on clan_ware.item_id = clan_item.id where user.clan = clan_ware.clan and user.clan = '.$user_ida['clan'].' group by besitzer order by besitzer'; //echo $sql.'
'; diff --git a/ag/gm/include/attacken.inc.php b/ag/gm/include/attacken.inc.php index 2ff66b9..1cdd1ae 100644 --- a/ag/gm/include/attacken.inc.php +++ b/ag/gm/include/attacken.inc.php @@ -524,7 +524,7 @@ function displayAttackenTypenOverview($page) { echo "\t".''."\n"; } - $total = mysqli_stmt_num_rows(db_query('SELECT '.join($d_array,',').' FROM attackentyp')); + $total = mysqli_num_rows(db_query('SELECT '.join($d_array,',').' FROM attackentyp')); $url = '###LABEL###'; echo "\t".'
'."\n"; echo "\t".''.displayPagelinksNew(20, $total, $page, $url).''."\n"; diff --git a/ag/gm/include/item.inc.php b/ag/gm/include/item.inc.php index 5b0c766..158fd52 100644 --- a/ag/gm/include/item.inc.php +++ b/ag/gm/include/item.inc.php @@ -39,7 +39,7 @@ function displayItems($action, $task, $itemid, $itemtable, $searchstring, $s_ite } $qry = db_query($sql.' LIMIT '.($page*20).', 20'); // echo $sql.' LIMIT '.($page*30).', 30'; - $anzahlSeiten = ceil(mysqli_stmt_num_rows(db_query($sql))/20); + $anzahlSeiten = ceil(mysqli_num_rows(db_query($sql))/20); $colspan = 3; echo "\t\t\t".'

Bearbeiten

'."\n";; $o_array = array('-Alle-', 'Markt Items', 'Schatzsuche Items', 'Auktionsitems'); diff --git a/ag/gm/include/npc.inc.php b/ag/gm/include/npc.inc.php index 4a7061f..5f1e72e 100644 --- a/ag/gm/include/npc.inc.php +++ b/ag/gm/include/npc.inc.php @@ -417,7 +417,7 @@ function displayNPCOverview($page) { echo "\t".''."\n"; } - $total = mysqli_stmt_num_rows(db_query('SELECT '.join($d_array,',').' from chars where rasse IN ('.implode(',', $include_race_ids).')')); + $total = mysqli_num_rows(db_query('SELECT '.join($d_array,',').' from chars where rasse IN ('.implode(',', $include_race_ids).')')); $url = '###LABEL###'; echo "\t".'
'."\n"; echo "\t".''.displayPagelinksNew(20, $total, $page, $url).''."\n"; diff --git a/ag/gm/include/rassen.inc.php b/ag/gm/include/rassen.inc.php index 0db474d..044a923 100644 --- a/ag/gm/include/rassen.inc.php +++ b/ag/gm/include/rassen.inc.php @@ -240,7 +240,7 @@ function displayRassen($request) { Aktion setup rassen database'; } else { diff --git a/ag/inclu/user-controll.php b/ag/inclu/user-controll.php index f110dc5..6229e01 100644 --- a/ag/inclu/user-controll.php +++ b/ag/inclu/user-controll.php @@ -11,18 +11,18 @@ include_once(ROOT_PATH.'//include/designfunctions.inc.php'); include_once (ROOT_PATH . '/include/clan.inc.php'); include_once (ROOT_PATH . '/include/clan_chat.inc.php'); -$itemsx1 = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]'")); +$itemsx1 = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]'")); $itemsz1 = mysqli_fetch_array(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]' LIMIT 1")); -$itemsx2 = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]'")); +$itemsx2 = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]'")); $itemsz2 = mysqli_fetch_array(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]' LIMIT 1")); -$anmeldungen = mysqli_stmt_num_rows(db_query("SELECT id FROM user")); -$db_info = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE user='$user_ida[id]' AND item='11'")); +$anmeldungen = mysqli_num_rows(db_query("SELECT id FROM user")); +$db_info = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE user='$user_ida[id]' AND item='11'")); $user_info_test = mysqli_fetch_array(db_query("SELECT geld FROM user WHERE nickname='$name' LIMIT 1")); -//$nnn_nn = mysqli_stmt_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'")); +//$nnn_nn = mysqli_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'")); //echo $nnn_nn; $zeit = date("H:i:s"); $date = date("d.m.y"); diff --git a/ag/include/arena.inc.php b/ag/include/arena.inc.php index 9805fc2..30c1c22 100644 --- a/ag/include/arena.inc.php +++ b/ag/include/arena.inc.php @@ -59,7 +59,7 @@ function calculateRenovierungsKosten($arena){ function getArena($user_id) { $sql_select = 'SELECT * FROM arena where besitzer = \''.$user_id.'\''; $qry = db_query($sql_select); - if(mysqli_stmt_num_rows($qry) == 0) { + if(mysqli_num_rows($qry) == 0) { $sql = 'INSERT arena(besitzer, exp) values (\''.$user_id.'\', \'0,'.calculateRequiredExpArena(1).'\')'; db_query($sql); $qry = db_query($sql_select); diff --git a/ag/include/auktion_functions.inc.php b/ag/include/auktion_functions.inc.php index 32360e2..b8d8de4 100644 --- a/ag/include/auktion_functions.inc.php +++ b/ag/include/auktion_functions.inc.php @@ -28,7 +28,7 @@ include_once(ROOT_PATH.'/include/semaphore.inc.php'); // @Return Integer function aktuellesMindestgebot($auktionsid){ $qry = db_query('SELECT aktuellesgebot, startgebot FROM auktion WHERE auktionsid = '.$auktionsid); - if(mysqli_stmt_num_rows($qry) != 1){ // Auktion nicht vorhanden?? + if(mysqli_num_rows($qry) != 1){ // Auktion nicht vorhanden?? return -1; } $result = mysqli_fetch_assoc($qry); // Hole dir den einen Datensatz @@ -268,7 +268,7 @@ function getAuktionTotalCount($kategorie,$itemnamepart,$maxPrice){ } $test = 'SELECT count(auktionsid) as anzahl FROM auktion WHERE 1 '.$kategorieDelimitier.$stringDelimiter.$priceDelimiter.' AND TIMESTAMPDIFF(Minute,now(),deadline) >= 0'; $qry = db_query($test); - if(mysqli_stmt_num_rows($qry) == 0){ + if(mysqli_num_rows($qry) == 0){ return 0; } $result = mysqli_fetch_assoc($qry); @@ -305,7 +305,7 @@ function getAuktionEntries($kategorie,$itemnamepart,$entriesPerSite,$pageNumber, function getEntryInformation($auktionsid){ if(!is_numeric($auktionsid)){return;} $qry = db_query('SELECT u.nickname AS anbietername, u2.nickname AS bietername, a.auktionsid,a.anbieter,a.bieter,a.itemid,a.itemname,a.tablename,a.anzahl,a.startgebot,a.aktuellesgebot,a.deadline,a.startdate,a.cheatingverdacht, TIMESTAMPDIFF(Minute,now(),deadline) AS zeitdifferenz FROM auktion AS a INNER JOIN user as u ON a.anbieter = u.id LEFT JOIN user as u2 ON a.bieter = u2.id WHERE auktionsid = '.$auktionsid); - if(mysqli_stmt_num_rows($qry) == 0){ return NULL; } + if(mysqli_num_rows($qry) == 0){ return NULL; } return mysqli_fetch_assoc($qry); } diff --git a/ag/include/bann.inc.php b/ag/include/bann.inc.php index d1c7a70..b998724 100644 --- a/ag/include/bann.inc.php +++ b/ag/include/bann.inc.php @@ -17,11 +17,11 @@ function isSpammer($id){ function becomeSpammer($id,$nick,$text){ // Es gibt 2 indikatoren ein Spammer zu sein // Man schreibt min 10 posts innerhalb von 20 Sekunden - $result1 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 20')); + $result1 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 20')); // Man schreibt min 30 Posts innerhalb einer Minute - $result2 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 60')); + $result2 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 60')); // Innerhalb einer halben Minute 4 mal den selben Post!! - $result3 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' AND TIMESTAMPDIFF(Second,zeit,now()) <= 30 AND nachricht = \''.$text.'\'')); + $result3 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' AND TIMESTAMPDIFF(Second,zeit,now()) <= 30 AND nachricht = \''.$text.'\'')); // Und nun noch ein paar Aergernisse @@ -40,7 +40,7 @@ function becomeSpammer($id,$nick,$text){ } function setSpamblock($id){ - $anzahl = mysqli_stmt_num_rows(db_query('SELECT * FROM spammer WHERE userid='.$id.' AND TIMESTAMPDIFF(Day,bann_until,now()) <=14')); + $anzahl = mysqli_num_rows(db_query('SELECT * FROM spammer WHERE userid='.$id.' AND TIMESTAMPDIFF(Day,bann_until,now()) <=14')); $zeit = pow(5,($anzahl+1)); db_query('INSERT INTO spammer(userid, bann_until) values('.$id.',TIMESTAMPADD(Minute,'.$zeit.',now()))'); } diff --git a/ag/include/clan_chat.inc.php b/ag/include/clan_chat.inc.php index c64f578..c4e7597 100644 --- a/ag/include/clan_chat.inc.php +++ b/ag/include/clan_chat.inc.php @@ -48,7 +48,7 @@ function checkAccessRights($user_id, $clan_chat_id) { if(!$qry) { return false; } - return mysqli_stmt_num_rows($qry); + return mysqli_num_rows($qry); } function sendClanChatMessage($user_id, $clan_chat_id, $message) { diff --git a/ag/include/config.inc.php b/ag/include/config.inc.php index 7018786..63884cc 100644 --- a/ag/include/config.inc.php +++ b/ag/include/config.inc.php @@ -58,7 +58,7 @@ if(!checkCookiePassword($name, $passwort)){ } } -$banned_accs = mysqli_stmt_num_rows(db_query("SELECT id FROM user WHERE ip!='' AND ip='$user_ida[ip]' AND id!='$user_ida[id]' LIMIT 2")); +$banned_accs = mysqli_num_rows(db_query("SELECT id FROM user WHERE ip!='' AND ip='$user_ida[ip]' AND id!='$user_ida[id]' LIMIT 2")); if ($user_ida['id'] != null) { $as = 'profil'; diff --git a/ag/include/config/db_example.inc.php b/ag/include/config/db_example.inc.php index 91d556f..7c6895e 100644 --- a/ag/include/config/db_example.inc.php +++ b/ag/include/config/db_example.inc.php @@ -19,7 +19,7 @@ $main_db_name = "otherdatabasename"; $GLOBALS['mumble_db_name'] = "anotheradatabasename"; if(!isset($conn)){ - $conn = mysql_connect($db_host, $db_user, $db_passwort); + $conn = mysqli_connect($db_host, $db_user, $db_passwort); $db = mysql_select_db($db_name, $conn); } ?> \ No newline at end of file diff --git a/ag/include/pollfunctions.inc.php b/ag/include/pollfunctions.inc.php index cbcccd1..5688fef 100644 --- a/ag/include/pollfunctions.inc.php +++ b/ag/include/pollfunctions.inc.php @@ -18,7 +18,7 @@ include_once "parse.inc.php"; function stimme($pollid, $polloptionid, $userid, $kommentar){ - if(mysqli_stmt_num_rows(db_query('SELECT * FROM poll_votes WHERE pollid = '.$pollid.' and userid = '.$userid)) == 0){ + if(mysqli_num_rows(db_query('SELECT * FROM poll_votes WHERE pollid = '.$pollid.' and userid = '.$userid)) == 0){ // NEU einfuegen! $sql = 'INSERT INTO poll_votes(pollid, polloptionid, userid, comment) values ('.$pollid.','.$polloptionid.','.$userid.',\''.$kommentar.'\')'; db_query($sql); diff --git a/ag/index.php b/ag/index.php index 996ea40..6c0d358 100644 --- a/ag/index.php +++ b/ag/index.php @@ -21,7 +21,7 @@ include_once(ROOT_PATH.'/include/messagefunctions.inc.php'); // Fuer den Transit von register_globals auf normal $name = $user_ida['nickname']; $passwort = $user_ida['passwort']; -$nnn_nn = mysqli_stmt_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'")); +$nnn_nn = mysqli_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'")); $as = $_REQUEST['as']; $agb = $_REQUEST['agb']; diff --git a/ag/info/attacken.php b/ag/info/attacken.php index 87dc626..d004733 100644 --- a/ag/info/attacken.php +++ b/ag/info/attacken.php @@ -451,7 +451,7 @@ if (!empty($type) AND empty($fruchttyp)) { $link = "pagenum=$pagenum&order_art=$order_art&last_klick1=$last_klick1"; if ($p) { if ($_GET['search']) { - $anzahl_atks = mysqli_stmt_num_rows(db_query("SELECT id FROM attacken WHERE name LIKE '%".trim($search)."%'")); + $anzahl_atks = mysqli_num_rows(db_query("SELECT id FROM attacken WHERE name LIKE '%".trim($search)."%'")); if ($anzahl_atks == 1) { $at_z = mysqli_fetch_array(db_query("SELECT id FROM attacken WHERE name='".trim($search)."' LIMIT 1")); if (empty($at_z)) { diff --git a/ag/info/items.php b/ag/info/items.php index ab99a61..bb2f850 100644 --- a/ag/info/items.php +++ b/ag/info/items.php @@ -130,7 +130,7 @@ while($row = mysqli_fetch_array($item)) { } - $Total = mysqli_stmt_num_rows(db_query("SELECT id FROM item")); + $Total = mysqli_num_rows(db_query("SELECT id FROM item")); $pages = ceil($Total/10); $z = 1; diff --git a/ag/kampf_list.php b/ag/kampf_list.php index 0ba9a8f..885d0f8 100644 --- a/ag/kampf_list.php +++ b/ag/kampf_list.php @@ -76,7 +76,7 @@ function starteFight($chara_1, $chara_2, $kampf_info){ function erstelleEinenFight($charid, &$user, $kampf_name, $kampf_pw, $kampf_zeit, $lvl){ // Ermittle ob der User eine Funktionierende Arena besitzt! $qry = db_query('Select * from arena where besitzer = '.$user['id']); - if(mysqli_stmt_num_rows($qry) == 0){ + if(mysqli_num_rows($qry) == 0){ db_query('INSERT arena(besitzer, exp) values (\''.$user_ida['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')'); $arena = db_query('Select * from arena where besitzer = '.$user['id']); } @@ -447,7 +447,7 @@ function displayKampfErstellen($user, $portal, $pagenum){ // Ermittle ob der User eine Funktionierende Arena besitzt! $qry = db_query('Select * from arena where besitzer = '.$user['id']); $arena = mysqli_fetch_assoc($qry); - if(mysqli_stmt_num_rows($qry) == 0){ + if(mysqli_num_rows($qry) == 0){ db_query('INSERT arena(besitzer, exp) values (\''.$user_ida['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')'); $arena = mysqli_fetch_assoc(db_query('Select * from arena where besitzer = '.$user['id'])); } diff --git a/ag/markt.php b/ag/markt.php index d03ca90..eed78fa 100644 --- a/ag/markt.php +++ b/ag/markt.php @@ -235,14 +235,14 @@ exit; while($row2 = mysqli_fetch_array($user_item)) { - $user_items = mysqli_stmt_num_rows(db_query("SELECT id FROM ware WHERE item_id='$row2[id]' AND user='$user_ida[id]' LIMIT 100")); + $user_items = mysqli_num_rows(db_query("SELECT id FROM ware WHERE item_id='$row2[id]' AND user='$user_ida[id]' LIMIT 100")); if($user_items) { $STORE_ITEMS .= "".$row2['name']." x ".$user_items."
"; } } - $Total = mysqli_stmt_num_rows(db_query("SELECT id FROM item WHERE preis>0 and $filter AND s_type='$ords'")); + $Total = mysqli_num_rows(db_query("SELECT id FROM item WHERE preis>0 and $filter AND s_type='$ords'")); $pages = ceil($Total/10); $z = 1; diff --git a/ag/nachricht.php b/ag/nachricht.php index ae8ea8f..2a3c4f0 100644 --- a/ag/nachricht.php +++ b/ag/nachricht.php @@ -40,7 +40,7 @@ function deleteFromIgnorelist($userid, $ignoredUserId){ //charm 7 } function insertInIgnorelist($userid, $ignorename){ /// if($charm == 6) { $ignore_user = mysqli_fetch_array(db_query('SELECT id FROM user WHERE nickname=\''.$ignorename.'\'')); - $bereits_ignoriert = mysqli_stmt_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$userid.' AND user='.$ignore_user['id'])); + $bereits_ignoriert = mysqli_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$userid.' AND user='.$ignore_user['id'])); $fehler_m = ''; $weiter_an = 'weiter...'; if($bereits_ignoriert) { @@ -147,7 +147,7 @@ function sendMessageForumlar($userid,$username,$besitzer,$betreff,$text){// if($ $weiter_an = 'weiter...'; if(isset($besitzer) && isset($text)) { $user_erf = mysqli_fetch_assoc(db_query('SELECT id FROM user WHERE nickname=\''.$besitzer.'\'')); - $igno_user = mysqli_stmt_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$user_erf['id'].' AND user='.$userid)); + $igno_user = mysqli_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$user_erf['id'].' AND user='.$userid)); if($igno_user) { displayErrorMessage(NULL,'Fehler, der Nutzer '.$besitzer.' hat dich auf seiner Ignorierliste',$weiter_an); diff --git a/ag/ranglist.php b/ag/ranglist.php index b7273c8..eeb5405 100644 --- a/ag/ranglist.php +++ b/ag/ranglist.php @@ -18,7 +18,7 @@ include_once(ROOT_PATH.'/include/char.inc.php'); $wahl = validateStringCritical($_GET['wahl']); $char_name = validateName($_GET['char_name']); -$char_vorhanden = mysqli_stmt_num_rows(db_query('SELECT id FROM chars WHERE name like \''.$char_name.'%\' LIMIT 1')); +$char_vorhanden = mysqli_num_rows(db_query('SELECT id FROM chars WHERE name like \''.$char_name.'%\' LIMIT 1')); function displayHighscore($wahl, $char_name, $user, $char_vorhanden){ diff --git a/ag/turnier.php b/ag/turnier.php index 595839d..5d78462 100644 --- a/ag/turnier.php +++ b/ag/turnier.php @@ -69,13 +69,13 @@ function anmelden($user, $charid, $art){ $anzahl = 64; } // sehr speziell und deswegen nicht getChar(); - $PRUEF = mysqli_stmt_num_rows(db_query('SELECT id FROM chars WHERE id=\''.$charid.'\' '.$special_clue.' AND besitzer=\''.$user['id'].'\' LIMIT 1')); + $PRUEF = mysqli_num_rows(db_query('SELECT id FROM chars WHERE id=\''.$charid.'\' '.$special_clue.' AND besitzer=\''.$user['id'].'\' LIMIT 1')); if(!$PRUEF) { displayErrorMessage(NULL,'Charakter erfüllt die Bestimungen nicht!','weiter...'); return; } - $sear_a = mysqli_stmt_num_rows(db_query('SELECT id FROM turnier1 WHERE art=\''.$art.'\'')); + $sear_a = mysqli_num_rows(db_query('SELECT id FROM turnier1 WHERE art=\''.$art.'\'')); if($sear_a >= $anzahl) { displayErrorMessage(NULL,'Turnier voll! Es künnen maximal nur '.$anzahl.' Chars am Turnier teilnehmen','weiter...'); return; diff --git a/ag/turnier2.php b/ag/turnier2.php index 41c91a6..82ef730 100644 --- a/ag/turnier2.php +++ b/ag/turnier2.php @@ -41,7 +41,7 @@ if(!$turnier['id']) { displayErrorMessage(NULL,'Turnier fand noch nicht statt!',$back); } else if($charm == 1) { -$max_turnier = mysqli_stmt_num_rows(db_query('SELECT id FROM turnier_kampf WHERE art=\''.$art.'\'')); +$max_turnier = mysqli_num_rows(db_query('SELECT id FROM turnier_kampf WHERE art=\''.$art.'\'')); echo ''; $turnier_date = date('d.m.Y');