Navicat zeigt nicht alle Player an?!? Bitte Helfen

01/01/2010 10:38 Maniac1996#1
Hallo,
ich habe ein problem also wenn ich mit Navicat die DB von meinem Server (MetinJunky) öffne und dann auf player und dort auf die Tabelle player dort werden nur die hälfte aller Charackter angezeigt! Ich habe auch schon probiert einige seiten weiter zu blättern aber da ist nichts! =(

Und noch eine Frage:
- Was ist an diesem php script falsch?
PHP Code:
<?php
   session_start 
(); //Session starten//
         
include ("/rank.html");  
include (
"/config.php");

      
$i "0" ;
    require_once(
"config.php");
    
mysql_select_db("player");
    
$sql="select * from player where Name='$name'";
                
$exec=mysql_query($sql);
                
$exec=mysql_query($sql);
    while(
$row=mysql_fetch_object($exec))
   {
   
$i $i ;
   echo 
"
   <center><table border=0>
  <tr>
    <th width=\"80\"><font color=red>
$i</font></th>
    <th width=\"200\"><font color=pink>
$row->name</font></th>
    <th width=\"200\"><font color=green>
$row->exp</font></th>
    <th width=\"200\"><font color=red>
$row->level</font></th>
    <th width=\"200\"><font color=yellow>
$row->reich</font></th>
  </tr>
</table></center>"
;  
   }
echo 
"</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" 
;
?>
Dies soll die Rangliste sein... Aber bei Name wird nichts engezeigt und bei lvl immer 7 ich weiß nicht wieso und komischer weise nur ein Spieler

Das ist die config.php:

PHP Code:
<?php 
    
/*
    |-------------------------------------------------------------------
    | Datenbank Connection Details
    |-------------------------------------------------------------------
    */
        
$mysql_host     "5.22.16.100";
        
$mysql_user     "root";
        
$mysql_pass     "123456";
        
$mysql_db    "player";
    
/*
    |-------------------------------------------------------------------
    | Datenbank Verbindung herstellen
    |-------------------------------------------------------------------
    */    
        
mysql_connect($mysql_host$mysql_user$mysql_pass) OR
        die(
"Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error());    
        
        
mysql_select_db($mysql_db) OR
        die(
"Die Datenbank konnte nicht benutzt werden.<br /> Fehlermeldung: ".mysql_error());
?>
Ich komme einfach nicht mehr weiter...

Würde mich sehr über Hilfe freuen!
Und noch allen ein schönes neues Jahr!!!

MfG Maniac1996