Register for your free account! | Forgot your password?

You last visited: Today at 00:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Rang + Regi

Discussion on Rang + Regi within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 389
Received Thanks: 53
Rang + Regi

Hey <3


Habe es schon geschaft das der Status richtig angezeigt wird. (Bzw. das wir ihn auf der HP sehen)

Wenn ich dann auf Rangliste gehe kommt:

Code:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\ranking.php:45) in C:\xampp\htdocs\rank.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\ranking.php:45) in C:\xampp\htdocs\rank.php on line 3
Platz 	Name 	Exp 	Level

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'localehost' (11004) in C:\xampp\htdocs\config_player.php on line 17
Es konnte keine Verbindung zur Datenbank hergestellt werden.
Fehlermeldung: Unknown MySQL server host 'localehost' (11004)


Config Player sieht so aus:

Code:
   <?php 
	/*
	|-------------------------------------------------------------------
	| Datenbank Connection Details
	|-------------------------------------------------------------------
	*/
		$mysql_host 	= "localehost";
		$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()); ?>


Rank.php so:

Code:
<?php
	     	
   session_start (); //Session starten//
		include ("rank.html");	


            
include ("config_player.php");


$sql = "SELECT  
    *
    FROM 
  player 
  ORDER BY level DESC";
      $i = "0" ;
   $ergebnis = mysql_query($sql);
 $ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
   {
   $i = $i + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width=\"80\"><font color=red>$i</font></th>
    <th width=\"200\"><font color=black>$row->name</font></th>
    <th width=\"200\"><font color=green>$row->exp</font></th>
    <th width=\"200\"><font color=red>$row->level</font></th>
  </tr>
</table></center>";  
   }
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>

Und so sieht Ranking.php aus:
Code:
<html>
<title>Spenden</title>
<style type="text/css">
#header {
position:absolute;
background-image: url(images/header.gif);
width:1000px;
height:160px;
left:160px;
right:160px;
top:100px;
z-index:1;
}
#navi {
position:absolute;
background-image: url(images/navi_bg.gif);
width:1002px;
height:30px;
left:159px;
right:159px;
top:260px;
}
#text_bg {
position:absolute;
background-image: url(images/text_bg.gif);
width:1000px;
left:160px;
right:160px;
top:290px;
z-index:1;;
}
#footer {
position:absolute;
background-image: url(images/navi_bg.gif);
width:1000px;
height:35px;
left:0px;
z-index:1;
}
</style>
<body bgcolor="#330c00"><body>
</body>
<div id="header"></div>
<div id="navi"> <center><b><a href="index.php"><font color="#c0ff00">News</font></a> | <a href="reg.html"><font color="#c0ff00">Account</font></a> | <a href="ranking.php"><font color="#c0ff00">Ranking</font></a> | <a href="pw.php"><font color="#c0ff00">PWÄndern</font></a> | <a href="spenden.php"><font color="#c0ff00">Spenden</font></a> | <a href="down.html"><font color="#c0ff00">DownLoad</font></a> | <a href="http://board.funzocker.net"><font color="#c0ff00">Forum</font></a><b></center> </div>
<div id="text_bg"><div id="spenden"><center><?php include('rank.php')?></center></div>
<div id="footer"><div id="footer_text"><center><b><font color="#c0ff00">(c)Metin Of Future | Beta-Phase </font><b></center></div>
</html>

Was ist Falsch ?
[GA]TricK is offline  
Old 01/05/2010, 17:58   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 389
Received Thanks: 53
keiner weiß es ?
[GA]TricK is offline  
Old 01/05/2010, 17:59   #3
 
eXidal's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,525
Received Thanks: 383
-.-
Frag mich doch einfach...
eXidal is offline  
Old 01/05/2010, 18:15   #4
 
allexpietz's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 255
Received Thanks: 26
localhost nicht localehost

Wenn hamachiServer dann hamachiip .100
allexpietz is offline  
Old 01/05/2010, 18:17   #5
 
fireneji's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 915
Received Thanks: 144
Ist dein pw auch wirklich 12345
fireneji is offline  
Reply

« Ingame | P SERVER »

Similar Threads Similar Threads
[DNS] Regi und Rang auf der HP mit DNS ?? Wie ??
04/03/2010 - Metin2 Private Server - 3 Replies
Hai Com Wir haben jetzt eine HP die wir gut finden nur wir haben keine ahnung wie wir die Regi page, Und die rangliste draufbekommen sollen weil wir ja DynDNS haben :D Jetzt meine Frage wen jemand da Ahnung hätte könnte er mir ein Link zu einem tut geben oder mir das schnell erklären oder über Teamviewer machen (zeigen) Were echt super :D Mfg Sponqqi ^^
PvP Rang 10
08/27/2005 - World of Warcraft - 16 Replies
Hi, bestimmt haben einige von euch PvP Rang 10 oder mehr. Würde gerne mal wissen wie lange ihr gebraucht habt und wieviel stunden ihr am Tag spielen musstet. MfG Shithead



All times are GMT +2. The time now is 00:15.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.