[Website] Realm Status Error menu

User Tag List

Results 1 to 2 of 2
  1. #1
    singoe's Avatar Active Member
    Reputation
    23
    Join Date
    May 2008
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Website] Realm Status Error

    Alright. Im having some trouble with the realm status for my Website. here are the errors it shows.
    Code:
    Northern Lights Fun Realm
    
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\includes\status.php on line 12
    ONLINE: /2000
    Here is my status.php
    Code:
    <!--// Written and coded by Gilles De Mey
    // Copyrighted by the GNU GENERAL PUBLIC LICENSE (c)-->
    <?php include('../includes/config.php'); ?>
    <div class="side-content-realm"><b><?php echo $realm1; ?></b></div>
    		  <?php
              if (test_serv() == "true")
                  {
    			  $con = mysql_connect($sqlip, $sqluser, $sqlpass);	  
                  $db = mysql_select_db($arc_character);
                  $query ="SELECT * from characters where online='1' "; 
                  $result = mysql_query($query);
                  $num = mysql_num_rows($result);
                  echo "<div id='player_bar_online'>ONLINE: " . $num . "/".$maxplayers."</div>";
    			  mysql_close($con);
                  } else
                  {
                  echo "<div id='player_bar_offline'><font color='#FFFFFF'>SERVER OFFLINE</font></div>";
    			  mysql_close($con);
                  }
                  
              function test_serv(){
                  $errno = 6;
                  $s = @fsockopen('xx.xxx.xxx.xx', 8093, $errno, $errstr, 2);
                  if($s){
                      fclose($s);
                      return true;
                      } else 
                      return false;
              }
              ?>
            </div>
    I noticed that whenever I refresh the page something shows up on my logonserver. It says "Server connection from 10.0.1.1:43368 DENIED, not an allowed IP." I'm guessing that has to do with the problem. Also when i try creating an account on the website i get "Mysql Error : Field 'banned' doesn't have a default value" how do i make it so the default value of 'banned' is 0.

    [Website] Realm Status Error
  2. #2
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create a account specifically for the website, and allow it from all hosts, (Do this in something like navicat or a managing program like that), then set the details to that.

    You will have to edit the account creation script's SQL import, if you know basic SQL that should be easy.




Similar Threads

  1. Realm status question
    By *Alexz* in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 08-10-2009, 05:29 AM
  2. realm loop error
    By blademaster10 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 05-11-2009, 04:25 AM
  3. Realm Status Php Script?
    By luc1f3rspalm in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-30-2008, 10:21 PM
  4. Realm Status
    By volitle in forum Programming
    Replies: 13
    Last Post: 09-23-2008, 08:29 PM
  5. CMPS Realm Status Module
    By romulux in forum Community Chat
    Replies: 0
    Last Post: 02-23-2008, 04:04 PM
All times are GMT -5. The time now is 01:28 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search