Se connecter avec
S'enregistrer | Connectez-vous

Espace membre > Quelques problèmes < Merci de m'aider

Dernière réponse : dans Programmation

Salut à tous, j'ai un petit problème avec mon espace membre, alors voilà.

Voici les fichiers qui se trouvent sur mon FTP :

- index.php
- login.php
- verif.php
- config.php
- inscription.php (c'est ici le problème)
- form_inscript.php
- confirm.php

mon ftp

J'ai créer une base de données et j'ai donc aussi créer une table nommée "membre". j'ai mis 6 champ dans cette table :

- id
- nom
- prenom
- email
- pseudo
- mot de passe

Voici le code SQL :

  1. CREATE TABLE `membre` (
  2. `id` SMALLINT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  3. `nom` TEXT NOT NULL,
  4. `prenom` TEXT NOT NULL,
  5. `email` TEXT NOT NULL,
  6. `pseudo` TEXT NOT NULL,
  7. `mot de passe` TEXT NOT NULL
  8. ) TYPE = MYISAM;


Voici ma BDD (Base de données)

>> Par contre, je ne sais pas quoi mettre dans les champ "fonction" et "valeur"

C'est ici << cliquer <<

Quand je vais sur mon site web, je vais dans la page inscription et là un message d'erreur apparaît :

  1. Parse error: parse error in /data/members/free/multimania/fr/p/s/p/pspsettings/htdocs/inscription.php on line 12


Voici l'adresse de mon site web : Cliquer ici

Et voici le code source de ma page "inscription.php"

  1. <HTML>
  2. <HEAD>
  3. <?php
  4. // On include le fichier config.php
  5. include("config.php");
  6.  
  7. // On vérifie si tout les champs du formulaire on bien été rempli !
  8. if($send =="ADD")
  9. {
  10. if(empty($pseudo) or (empty($passe))
  11. // Si un champ est vide, on envoi un message d'erreur
  12. echo("Un champ est vide");
  13. }
  14. else // Sinon on passe
  15. {
  16. // Maintenant, on vas vérifier si un membre a déjà ce pseudo
  17. $requete = mysql_query("select pseudo from membres where pseudo=\"$pseudo\"");
  18.  
  19. // Nombre d'enregistrements
  20. $nb = mysql_numrows($requete);
  21.  
  22. // si il y a plus de 0 enregistrement avec le meme pseudo, on affiche un message d'erreur
  23. if($nb>0)
  24. {
  25. echo("Désolé ce pseudo est déja utilisé par un autre membre");
  26. }
  27. else // sinon on passe
  28. {
  29. // maintenant on vas inserer les informations dans la table "membres"
  30. mysql_query("insert into membre values(\"\",\"$pseudo\",\"$passe\")");
  31.  
  32. // Puis, on affiche le message de confirmation
  33. echo("Inscription ok");
  34. }
  35. }
  36. }
  37. // On ferme la connection à la base de donnée
  38. mysql_close();
  39. ?>
  40. <style type="text/css">
  41. <!--
  42. .Style6 {color: #FF0000}
  43. .Style7 {color: #FF8040}
  44. .Style8 {color: #0080FF}
  45. .Style9 {color: #8000FF}
  46. .Style10 {color: #35E31C; }
  47. .Style13 {
  48. font-weight: bold;
  49. color: #0080FF;
  50. font-style: italic;
  51. }
  52. -->
  53. </style>
  54. <BODY BACKGROUND="<a href="http://pix.nofrag.com/44/4b/45b0be9271ea21d1ecf1bac91674.jpg" target="_blank">http://pix.nofrag.com/44/4b/45b0be9271ea21d1ecf1bac9167...</a>">
  55. <TITLE>PspSettings - Inscription -</TITLE>
  56. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  57. <meta name="design" content="kitgratos.net">
  58. <style type="text/css">
  59. <!--
  60. .Style1 {color: #0080FF}
  61. .Style2 {color: #FF0000}
  62. .Style3 {
  63. color: #FF8040;
  64. font-weight: bold;
  65. }
  66. .Style4 {
  67. color: #80FF00;
  68. font-weight: bold;
  69. }
  70. .Style5 {
  71. color: #0000FF;
  72. font-weight: bold;
  73. }
  74. .Style6 {
  75. color: #8000FF;
  76. font-weight: bold;
  77. }
  78. -->
  79. </style>
  80. </HEAD>
  81. <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
  82. <p align="center"><!-- ImageReady Slices (kit.psd) --><TABLE WIDTH=777 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
  83. <TR>
  84. <TD ROWSPAN=3>
  85. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_01.jpg" WIDTH=250 HEIGHT=104 ALT=""></TD>
  86. <TD ROWSPAN=3>
  87. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_02.jpg" WIDTH=37 HEIGHT=104 ALT=""></TD>
  88. <TD>
  89. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_03.jpg" WIDTH=468 HEIGHT=33 ALT=""></TD>
  90. <TD ROWSPAN=3>
  91. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_04.jpg" WIDTH=22 HEIGHT=104 ALT=""></TD>
  92. </TR>
  93. <TR>
  94. <TD height="60" bgcolor="#A1A5AE"> 
  95. </TD>
  96. </TR>
  97. <TR>
  98. <TD>
  99. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_06.jpg" WIDTH=468 HEIGHT=11 ALT=""></TD>
  100. </TR>
  101. <TR>
  102. <TD COLSPAN=4>
  103. <IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_07.jpg" WIDTH=777 HEIGHT=32 ALT=""></TD>
  104. </TR>
  105. <TR>
  106. <TD COLSPAN=4 height="37" background="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_08.jpg">
  107. <table align="center" cellpadding="0" cellspacing="0">
  108. <tr>
  109. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  110. <p align="center"><a href="<a href="http://pspsettings.ifrance.com/index.php" target="_blank">http://pspsettings.ifrance.com/index.php</a>">Accueil</a></p>
  111. </td>
  112. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  113. <p align="center">Forum</p>
  114. </td>
  115. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  116. <p align="center">Chat</p>
  117. </td>
  118. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  119. <p align="center">Livre d'or </p>
  120. </td>
  121. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:none;">
  122. <p align="center"><a href="mailto:pspsettings@ifrance.com">Contact</a></p>
  123. </td>
  124. </tr>
  125. </table>
  126. </TD>
  127. </TR>
  128. <TR>
  129. <TD COLSPAN=4>
  130. <font color="#56596D"><IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_09.jpg" WIDTH=777 HEIGHT=8 ALT=""></font></TD>
  131. </TR>
  132. <TR>
  133. <TD COLSPAN=4>
  134. <table cellpadding="0" cellspacing="0" width="774" align="center">
  135. <tr>
  136. <td width="183" style="border-right-width:1; border-right-color:rgb(130,134,146); border-right-style:dashed;">
  137. <table align="center" cellpadding="0" cellspacing="0">
  138. <tr>
  139. <td width="172" height="255" style="border-bottom-width:1; border-bottom-color:rgb(130,134,146); border-bottom-style:dashed;">
  140.  
  141. <p><span class="Style2 Style6">Espace PSP</span> <img src="<a href="http://pix.nofrag.com/98/3d/729ab038d7cad3e441114f30ff6b.jpg" target="_blank">http://pix.nofrag.com/98/3d/729ab038d7cad3e441114f30ff6...</a>">
  142. <a href="<a href="http://pspsettings.ifrance.com/index.php" target="_blank">http://pspsettings.ifrance.com/index.php</a>"><img src="<a href="http://img197.imageshack.us/img197/3848/boutonpspnews6qc.jpg" target="_blank">http://img197.imageshack.us/img197/3848/boutonpspnews6q...</a>"></a>
  143. <img src="<a href="http://img197.imageshack.us/img197/8598/boutonpspdossiers3tc.jpg" target="_blank">http://img197.imageshack.us/img197/8598/boutonpspdossie...</a>">
  144. <img src="<a href="http://img503.imageshack.us/img503/9372/boutonpsptlchargements5vu.jpg" target="_blank">http://img503.imageshack.us/img503/9372/boutonpsptlchar...</a>"> <img src="<a href="http://img303.imageshack.us/img303/5924/boutonpsptestspreviews6cb.jpg" target="_blank">http://img303.imageshack.us/img303/5924/boutonpsptestsp...</a>"></p> </td>
  145. </tr>
  146. <tr>
  147. <td width="172"> <p align="left"><span style="font-size:9pt;"><font face="Tahoma"><span class="Style2 Style6">Espace PS3</span></font><font face="Tahoma" color="#56596D"><font face="Tahoma" color="#56596D"><font face="Tahoma" color="#56596D"><font face="Tahoma" color="#56596D"><font face="Tahoma" color="#56596D"><font face="Tahoma" color="#56596D"><img src="<a href="http://img403.imageshack.us/img403/879/ps37cl.gif" target="_blank">http://img403.imageshack.us/img403/879/ps37cl.gif</a>"></font></font></font></font></font><img src="<a href="http://img422.imageshack.us/img422/6475/boutonps3news3xn.jpg" target="_blank">http://img422.imageshack.us/img422/6475/boutonps3news3x...</a>">
  148. <img src="<a href="http://img505.imageshack.us/img505/6281/boutonps3dossiers9ev.jpg" target="_blank">http://img505.imageshack.us/img505/6281/boutonps3dossie...</a>"> <img src="<a href="http://img505.imageshack.us/img505/228/boutonps3tlchargements4dp.jpg" target="_blank">http://img505.imageshack.us/img505/228/boutonps3tlcharg...</a>"><br>
  149. <br>
  150. </font></span></p> </td>
  151. </tr>
  152. <tr>
  153. <td width="172">
  154. <p><font color="#56596D"> </font></p> </td>
  155. </tr>
  156. </table> </td>
  157. <td width="14">
  158. <p><font color="#56596D"> </font></p> </td>
  159. <td width="576"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  160. </head>
  161. <body>
  162. <tt><span class="Style13"><img src="<a href="http://www.yatoula.com/gif/webmaster/webmaster_246.gif" target="_blank">http://www.yatoula.com/gif/webmaster/webmaster_246.gif</a>">Si vous n'avez pas de comptes c'est ici que vous le creer, Merci et Bon Surf ! </span></tt>
  163. <div align="center">
  164. <style type="text/css">
  165. <!--
  166. body,td,th {
  167. font-family: Arial, Helvetica, sans-serif;
  168. font-size: 12px;
  169. color: #000000;
  170. font-weight: bold;
  171. }
  172. body {
  173. background-color: #FFFFFF;
  174. }
  175. a {
  176. font-size: 12px;
  177. color: #333333;
  178. font-weight: bold;
  179. font-style: italic;
  180. }
  181. a:link {
  182. text-decoration: underline;
  183. }
  184. a:visited {
  185. text-decoration: underline;
  186. color: #333333;
  187. }
  188. a:hover {
  189. text-decoration: none;
  190. color: #333333;
  191. }
  192. a:active {
  193. text-decoration: underline;
  194. color: #333333;
  195. }
  196. -->
  197. </style>
  198. </div>
  199. <p align="center"> </p>
  200. <p align="center"> </p>
  201. <form name="inscription" method="post" action="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/form_inscript.php">
  202. <div align="center">
  203. <table width="200" border="0" align="center">
  204. <tr>
  205. <td><div align="center" class="Style2 Style1 Style6"> - Inscription - </div></td>
  206. </tr>
  207. </table>
  208. <table width="400" border="0" align="center">
  209. <tr>
  210. <td><div align="center" class="Style2 Style6"><strong>Nom : </strong></div></td>
  211. <td align="right"><input name="nom" type="text" id="nom"></td>
  212. </tr>
  213. <tr>
  214. <td><div align="center" class="Style3 Style7">Prénom : </div></td>
  215. <td align="right"><input name="prenom" type="text" id="prenom"></td>
  216. </tr>
  217. <tr>
  218. <td><div align="center" class="Style4 Style8">Email : </div></td>
  219. <td align="right"><input name="email" type="text" id="email"></td>
  220. </tr>
  221. <tr>
  222. <td><div align="center" class="Style5 Style9">Pseudo : </div></td>
  223. <td align="right"><input name="pseudo" type="text" id="pseudo"></td>
  224. </tr>
  225. <tr>
  226. <td><div align="center" class="Style10">Mot de passe : </div></td>
  227. <td align="right"><input name="pass" type="password" id="pass"></td>
  228. </tr>
  229. </table>
  230. <table width="300" border="0" align="center">
  231. <tr>
  232. <td>
  233. <div align="center">
  234. <input type="reset" name="Submit2" value="Effacer">
  235. <a href="confirm.php"><input type="submit" name="Submit" value="Envoyer"></a>
  236. </div></td>
  237. </tr>
  238. </table>
  239. </div>
  240. </form></td>
  241. </tr>
  242. </table>
  243. </TD>
  244. </TR>
  245. <TR>
  246. <TD COLSPAN=4>
  247. <font color="#56596D"><IMG SRC="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_11.jpg" WIDTH=777 HEIGHT=8 ALT=""></font></TD>
  248. </TR>
  249. <TR>
  250. <TD COLSPAN=4 height="37" background="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_12.jpg">
  251. <table align="center" cellpadding="0" cellspacing="0">
  252. <tr>
  253. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  254. <p align="center"><a href="mailto:pspsettings@ifrance.com">Contact</a></p> </td>
  255. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  256. <p align="center">Forum</p> </td>
  257. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  258. <p align="center">Chat</p> </td>
  259. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;">
  260. <p align="center">Livre d'or </p> </td>
  261. <td width="87" style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:none;">
  262. <p align="center">L'équipe</p> </td>
  263. </tr>
  264. <tr>
  265. <td style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;"> </td>
  266. <td style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;"> </td>
  267. <td style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;"> </td>
  268. <td style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:solid;"> </td>
  269. <td style="border-right-width:1; border-right-color:rgb(254,252,237); border-right-style:none;"> </td>
  270. </tr>
  271. </table>
  272. </TD>
  273. </TR>
  274. <TR>
  275. <TD COLSPAN=4 height="26" background="file:///C|/Documents and Settings/liuzzo/Bureau/kit31/images/index_13.jpg">
  276. <p align="center"><FONT face="Tahoma,Helvetica" color="white"><span style="font-size:8pt;">Copyright © 2006 Pspsettings Tous droits Réservés</span></FONT></p>
  277. </TD>
  278. </TR>
  279. </TABLE>
  280. <!-- End ImageReady Slices -->
  281. </BODY>
  282. </HTML>


l'image du code source

Je remercis d'avance celui qui résoudra mon problème !

Salutations
Lassé par la pub ? Créez un compte
Expert Programmation

Ne met rien dans "fonction", c'est utilisé pour des systèmes particuliers (champs de type enum par exemple).
"valeur" est ce que tu veux mettre dans le champ.

Concernant ton erreur php, je pense qu'il te manque un "{" à la fin de la ligne if(empty($pseudo) or (empty($passe))

Non l'erreur n'est pas corrigé.

Voici le message d'erreur :

  1. Parse error: parse error in /data/members/free/multimania/fr/p/s/p/pspsettings/htdocs/inscription.php on line 11


Voici mon code source :

Cliquer ici

Je ne vois pas où est mon erreur.

Merci de m'aider

Merci de m'avoir aider mais j'ai un autre problème quaud j'essaie de m'inscrire (je remplis le formulaire) puis j'appuis sur inscription voici le message d'erreur:

  1. erreur :Unknown column 'confirm' in 'field list'


Merci beaucoup !
Lassé par la pub ? Créez un compte
Tom's guide dans le monde