Bonsoir à tous,
Voici le problème sur mes lignes de codes:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\WIPinterface\Login2.php on line 15
Et voici le code...
D'avance merci et bonne soirée
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Add a Player</title> </head> <body> <br> <?php $host="localhost"; $user="root"; $pwd=""; mysqli_connect($host,$user,$pwd) or die("echec1"); mysqli_select_db("wip") or die ("echec2"); $LN=$_POST['loginName']; $sql="SELECT login FROM players WHERE login='".$_POST['loginName']."'"; $result=mysqli_query($sql) or die ("echec3"); $num=mysqli_num_rows($result); if ($num>0) { header("Location=page1.1.php"); } else {" $pd=md5('$_POST['password']'); $enreg="INSERT INTO players ('Login','Password','Real_Name','E-mail') VALUES ('$LN','$pd','$_POST[`firstName`]','$_POST[`email`]')"; $rst=mysqli_query($pd,$enreg)or die ("echec4"); }; header("Location=Nouveau_membre.php"); ?> </body> </html>
Partager