|
You last visited: Today at 14:46
Advertisement
[PHP]Register Site
Discussion on [PHP]Register Site within the Flyff Private Server forum part of the Flyff category.
08/02/2010, 01:02
|
#1
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
[PHP]Register Site
Das Alter kann nicht ausgelesen werden, hoffe ihr könnt mir helfen.
Ich habe die Problemstelle Rot makiert.
Bitte nicht von Gear Typ und weiteres verwirren lassen.
<----register.php---->
Code:
<?php require("config.php") ?>
<center><form action="?page=register" method="post">
<table border="0">
<tr><td><strong><font color="#FF0000">Charaktername :</font></strong></td><td><label>
<input name="user" type="tinytext" class="liteoption" id="user" size="15" maxlength="15" /></label>
</td></tr>
<tr><td><strong><font color="#FF0000">Gear Typ :</font></strong></td><td><label>
<input name="geartyp" type="tinytext" class="liteoption" id="gt" size="15" maxlength="1" /></label>
</td></tr>
<tr><td><strong><font color="#FF0000">Level :</font></strong></td><td><label>
<input name="level" type="tinytext" class="liteoption" id="lvl" size="15" maxlength="3" /></label>
</td></tr>
<tr><td><strong><font color="#FF0000">Vorname :</font></strong></td><td><label>
<input name="firstname" type="tinytext" class="liteoption" id="firstname" size="15" maxlength="15" /></label>
</td></tr>
<tr><td><strong><font color="#FF0000">Geschlecht :</font></strong></td><td><label>
<input name="gender" type="tinytext" class="liteoption" id="gender" size="15" maxlength="1" /></label>
</td></tr>
[COLOR="Red"]<tr><td><strong><font color="#FF0000">Alter :</font></strong></td><td><label>
<input name="old" type="tinytext" class="liteoption" id="old" size="15" maxlength="2" /></label>
</td></tr>[/COLOR]
<tr><td><input name="submit" type="submit" class="liteoption" value="Mitglied werden" /></td><td></td></tr></form><br /><br /></table>
<br /><br />
<?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['geartyp'] || !$_POST['level'] || !$_POST['firstname'] || !$_POST['gender'] |[COLOR="Red"]| !$_POST['old'][/COLOR]) {
die('<strong>Sie müsst alle Felder ausfüllen.<br /></strong>');
}
else {
$char = $_POST['user'];
$gt = $_POST['geartyp'];
$lvl = $_POST['level'];
$fn = $_POST['firstname'];
$gend = $_POST['gender'];
[COLOR="Red"]$old = $_POST['old'];[/COLOR]
}
$nww = register($char, $gt, $lvl, $fn, $gend, [COLOR="Red"]$old[/COLOR]);
if ($nww){
echo("<strong>Bewerbung abgeschickt !</strong>");
}else {
echo("<strong>Registration fehlerhaft !<br /><br />Bitte Kontaktieren Sie den LastFighters Website Administrator DBSakura sollte das Probelm weiterhin vorkommen !</strong>");
}}
?>
<br /><br /></center>
<----config.php---->
Code:
<?php
// Connecting...
$host = "localhost";
$name = "*******";
$pw = "******";
$db = "x";
mysql_connect($host,$name,$pw) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
function register($char, $gt, $lvl, $fn, $gend, [COLOR="Red"]$old[/COLOR]){
$registerfinished = mysql_query("INSERT INTO join(charname, gear, lvl, name, gen, [COLOR="Red"]age[/COLOR]) VALUES( '$char', '$gt', '$lvl', '$fn', '$gend', [COLOR="Red"]'$old'[/COLOR])")or die(mysql_error());
return $registerfinished;
}
?>
|
|
|
08/02/2010, 01:08
|
#2
|
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
|
//EDID:
Um welches Game handelt es sich?
Weil das ist KEIN Flyff!
mfg
|
|
|
08/02/2010, 12:07
|
#3
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
Es ist für die Homepage einer Flugbrigade ( Gilde ) in Air Rivals gedacht, eine art Bewerbungs Formular.
Ich habe alles in meiner Machtstehende getan um den Fehler zu fixen,
doch es geschieht nichts.
Ich hoffe man kann mir hier helfen...
Die Registersite war damals für FlyFF gedacht aber es ist schon lange her.
Diese Site habe ich umgeschrieben damit das ausgefüllt wird was ich auch brauche
von Daher -> nicht meins, wurde nur umgescriptet.
aber das ist unwichtig, so wie das umgeschrieben habe kann ich glaub schon sagen das es meins ist
edit* weiß denn keiner die lösung ? p_q
|
|
|
08/02/2010, 21:18
|
#4
|
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
|
Wird denn eine Fehlermeldung ausgegeben?
mfg
|
|
|
08/03/2010, 02:24
|
#5
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
Quote:
Originally Posted by ©ross
Wird denn eine Fehlermeldung ausgegeben?
mfg
|
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join(charname, gear, lvl, name, gen, age) VALUES( 'DBSakura', 'I', '44', 'x', 'M' at line 1
betroffene Stelle--->
Code:
function register($char, $gt, $lvl, $fn, $gend, $old){
[COLOR="Red"]$registerfinished = mysql_query("INSERT INTO join(charname, gear, lvl, name, gen, age) VALUES( '$char', '$gt', '$lvl', '$fn', '$gend', '$old')")or die(mysql_error());[/COLOR]
return $registerfinished;
}
Danke für die bemühungen 
Du bist meine letzte und einzige Hoffnung es zum laufen zu bringen
|
|
|
08/03/2010, 11:05
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 319
Received Thanks: 42
|
Schreib nächstes mal bitte nichts in die Flyff-Section was da nicht hingehört
|
|
|
08/03/2010, 17:59
|
#7
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
Quote:
Originally Posted by flyffer2222
Schreib nächstes mal bitte nichts in die Flyff-Section was da nicht hingehört
|
sorry aber ich habe keine php section gefunden...
und da diese register site damals für einen flyff pserver war dachte ich mir das ich hier auch hilfe bekommen würde
|
|
|
08/04/2010, 02:22
|
#8
|
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
|
Quote:
Originally Posted by DBShinigami
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join(charname, gear, lvl, name, gen, age) VALUES( 'DBSakura', 'I', '44', 'x', 'M' at line 1
betroffene Stelle--->
Code:
function register($char, $gt, $lvl, $fn, $gend, $old){
[COLOR="Red"]$registerfinished = mysql_query("INSERT INTO join(charname, gear, lvl, name, gen, age) VALUES( '$char', '$gt', '$lvl', '$fn', '$gend', '$old')")or die(mysql_error());[/COLOR]
return $registerfinished;
}
Danke für die bemühungen 
Du bist meine letzte und einzige Hoffnung es zum laufen zu bringen 
|
Bin zwar jetzt nicht der Mysql/Php profi aber:
Code:
syntax to use near 'join(charname, gear, lvl, name, gen, [COLOR="Red"]age[/COLOR]) VALUES( 'DBSakura', 'I', '44', 'x', '[COLOR="Red"]M[/COLOR]' at line 1
Er will für "Age" einen Buchstaben einfügen?
evtl liegt da der fehler?
mfg
|
|
|
08/04/2010, 03:54
|
#9
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
Quote:
Originally Posted by ©ross
Bin zwar jetzt nicht der Mysql/Php profi aber:
Code:
syntax to use near 'join(charname, gear, lvl, name, gen, [COLOR="Red"]age[/COLOR]) VALUES( 'DBSakura', 'I', '44', 'x', '[COLOR="Red"]M[/COLOR]' at line 1
Er will für "Age" einen Buchstaben einfügen?
evtl liegt da der fehler?
mfg
|
wenn du genauer hinsiehst bemerkst du das da noch 1 fehlt
und genau das ist das problem
der input existiert und es ist alles richtig angegeben
|
|
|
08/07/2010, 15:36
|
#10
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
~push
|
|
|
09/05/2010, 01:42
|
#11
|
elite*gold: 0
Join Date: May 2010
Posts: 39
Received Thanks: 4
|
problem gelöst~
es lag am webhost >.<
#close
|
|
|
 |
Similar Threads
|
VISIT AND REGISTER THIS SITE
12/04/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 5 Replies
:)HI EVERYONE IM PNG"GMOD"Gobling FROM C O M
PLEASE VISIT AND REGISTER THIS SITE "REPEAT".C O M
DUN KU NLNG IRERELEASE UNG WALLHACK NA MAY AIMBOT...
AIMBOT
WIREFRAME
CROSSERE
|
How to set up a site where people can register?
10/28/2009 - Zero - 7 Replies
Well, I finally got the server working, but now how to get the register working, I downloaded the register files from the sticky thread but no idea how to get it set up right.
I don't exactly know all the info it's asking for in the register.php and the config.php
If someone could tell me or put it into more detail of what goes where then I could get past this problem.
Config.php
<?php
// Configurations
|
[HELP]How to get register on site >.<
09/23/2009 - CO2 Private Server - 7 Replies
#Request Close
|
help pls register site
03/27/2009 - CO2 Private Server - 9 Replies
why i can join on register site and another people can't?pls help my server is on hamachi....
|
help register site
03/23/2009 - Conquer Online 2 - 0 Replies
why i can join on register site and another people can't?pls help my server is on hamachi...
|
All times are GMT +1. The time now is 14:47.
|
|