Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 16:42

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

Advertisement



Problem beim anfangs States

Discussion on Problem beim anfangs States within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 91
Received Thanks: 24
Talking Problem beim anfangs States

Ich möchte das man am Anfang EXP ring etc oben links hat also habe ich folgendes in meiner Regipage eingefügt:
Code:
<?php
include('config.php');
if(isset($_POST['submit']) && $_POST['submit'] == 'Register') {
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$rl_name = mysql_real_escape_string($_POST['rl_name']);
$email = mysql_real_escape_string($_POST['email']);

[COLOR="Red"]$sql = "INSERT INTO account SET login = '".$username."', password = PASSWORD('".$password."'),fish_mind_expire = '2010-08-31 21:51:03' ,marriage_fast_expire = '2010-08-31 21:51:03' ,safebox_expire = '2010-08-31 21:51:03' ,money_drop_rate_expire = '2010-08-31 21:51:03' ,autoloot_expire = '2010-08-31 21:51:03' ,gold_expire = '2010-08-31 21:51:03' ,silver_expire = '2010-08-31 21:51:03' , real_name = '".$rl_name."', email = '".$email."', social_id = '".$code."', coins = '0'", real_name = '".$rl_name."';[/COLOR][i]Das hab ich geändert[/i]
$result = mysql_query($sql);
if($result) { echo 'Account erfolgreich erstellt.'; } else { echo 'Fehler beim erstellen des Accounts'; }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Registration</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Registration" />
<meta name="keywords" content="some, keywords, comes, later" />
<meta name="language" content="en" />
<meta name="robots" content="index,follow" />
<meta name="author" content="S3cr3t" />
<meta name="revisit-After" content="5 days" />
<meta name="distribution" content="local" />
<style type="text/css">
<!--
body { background:#000; color:#FF0; font:bold 8pt Verdana,Arial,Helvetica,sans-serif; }
#container { margin:40px auto; width:750px; overflow:hidden; }
#text { padding:5px; }
#text ul { padding:0px; margin-left:15px; }
#text li { display:block; }
#left { float:left; }
#right { float:right; margin-right:15px; }
!-->
</style>
<script type="text/javascript">
if (top.frames.length != 0)
top.location=self.location;
</script>
</head>
<body>
<div id="container">
<div id="text">
<form action="index.php" method="post">
<ul>
<li>Username:</li>
<li><input type="text" name="username" size="60" /></li>
<li>&nbsp;</li>
<li>Password:</li>
<li><input type="password" name="password" size="60" /></li>
<li>&nbsp;</li>
<li>Real Name:</li>
<li><input type="text" name="rl_name" size="60" /></li>
<li>&nbsp;</li>
<li>E-Mail:</li>
<li><input type="text" name="email" size="60" /></li>
<li>&nbsp;</li>
<li><input type="submit" name="submit" value="Register" /></li>
</ul>
</form>
</div>
</div>
2010 - 2012 by zensiert @ Fzensiert
</body>
</html>
Wenn ich jz auf die Regipage gehe kommt folgendes:
Code:
Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\index.php  on line 9
Was ist an meinem Code falsch?
danke für antworten
lg
mentalfight is offline  
Old 07/15/2010, 20:09   #2



 
CHXMVN's Avatar
 
elite*gold: 20
The Black Market: 354/0/0
Join Date: Mar 2009
Posts: 4,526
Received Thanks: 4,618
Machs einfach per Datenbank o.O ist auch viel einfacher.
CHXMVN is offline  
Old 07/15/2010, 20:27   #3
 
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
Jo aber der Fehler sagt doch schon alles dir fehlt i-wo im Code ein ,!
'Haseo is offline  
Old 07/15/2010, 21:09   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 91
Received Thanks: 24
Question

Quote:
Originally Posted by .Best View Post
Jo aber der Fehler sagt doch schon alles dir fehlt i-wo im Code ein ,!
du hattest recht es gab hier:
Code:
,social_id = '".$code."' ,coins = '0'" ,real_name = '".$rl_name."';
undzwar
Code:
,social_id = '".$code."' ,coins = '0'"->[COLOR="Red"]'[/COLOR]<- ,real_name = '".$rl_name."';
jz gibs anderen fehler:
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\index.php on line 9
danke für die hilfe bis jz =)
@.CHMarvin
verrückt ? xD alles inner db für jeden user ne danke...
lg
mentalfight is offline  
Reply


Similar Threads Similar Threads
werden die states mit lvl 60 zurückgesetzt
05/19/2010 - Flyff - 5 Replies
hallo wollte mal fragen ob beim 2.Jobwechsel die states zurückgesetzt werden
[NEED HELP] Problem beim Einloggen beim Hamachi-Server
02/27/2010 - Metin2 Private Server - 11 Replies
Hi Leute, ein Freund und ich haben uns mal gedacht, dass man sich so aus Spaß einen eigenen kleinen Pserver machen könnte. So nur für uns beide über Hamachi. So, dann ahben wir nach 3h den Server endlich online gekriegt, sodass alles funktionierte mit GM-Rechten etc. Die MC.txt haben wir auch alles gemacht alles funktioniert. Ich konnte mich sogar einloggen und ich komme auch zur Charakterauswahl. Dort angekommen, wähle ich dann den Char aus & kriege dann aber einen Kick. Das ist jedes Mal das...
[How To]States in Flyff Staken
12/14/2009 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 69 Replies
States Staken (Flyff) 1. Man fügt die DataSub2.res in seinen Flyff Ordner ein. (Download von der dataSub2.res made by me) 2. Startet mit Sunkist Methode. 3. Man awaken sein Wooden Sword das hoffentlich nur mit Minus erweckt ist auf F1 oder F2 oder F3.(Mehr zu Awaken kommt unten :) ) 4. Man Reloggt nachdem das Wooden Sword auf F1 oder so liegt.
Playing RFph in the states
06/12/2009 - RF Online - 8 Replies
Hi, I was wondering how can I play RFph in the states? I can't even open up the patcher. Someone already said chanding the IP address to a Philippine IP address. How would I change it to a Philippine IP address? Im using a router for my internet. Can anyone help? bump bump



All times are GMT +2. The time now is 16:42.


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.