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 + 1 ;
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>" ;
?>
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());
?>
Würde mich sehr über Hilfe freuen!
Und noch allen ein schönes neues Jahr!!!
MfG Maniac1996






