
Bon moi j´ai un problème tout bête mais qui est vraiment génant !
Il faut se connecter à son serveur en entrent ce code :
<?
mysql_connect("localhost", "leshetland", "mdp");
mysql_select_db("leshetland");
?>
PS/ J´ai mis mdp à la place de mon vrai mot de passe.
Et donc voila
Je voudrais savoir ou je met ce code à quel endroit précisément, entre les balises <body> ? <head> ? <html> ?
J´ai une deuxième question quand je veux metre ce fichier dans ma base de donnés ça me met une erreur. JE ne comprend pas quoi, merci de me le dire
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Flameous</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<input>
<meta
content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
</head>
<body>
<center>
<table
style="text-align: left; width: 366px; height: 270px;"
bgcolor="#f3ffff" border="1" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td nowrap="nowrap">
<center>
<form action="confirmmmorpg.php"
method="post">
<p><small><span
style="color: rgb(102, 0, 0);">Veuillez
taper votre pseudo :</span><br>
<input name="pseudo"
type="text"> </small></p>
<p><small><span
style="color: rgb(102, 0, 0);">Veuillez
taper votre mot de passe :</span><br>
<input name="pass"
type="password"> </small></p>
<p><small><span
style="color: rgb(102, 0, 0);">Veuillez
retaper votre mot de passe :</span><br>
<input name="confirm"
type="password"> </small></p>
<p><small
style="color: rgb(102, 0, 0);">Veuillez
taper votre e-mail :</small><br>
<input name="mail" type="text">
</p>
<p><small><span
style="color: rgb(102, 0, 0);">Vous
devez accepter les conditions suiavntes :</span><br>
<input name="acceptation"
type="checkbox"> <span
style="color: rgb(255, 0, 0);">J´accepte
les conditions et m´engage à les respecter.</span></small></p>
<p><input
value=" Suite >>> &n
bsp;" type="submit"></p>
</form>
</center>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
Merci d´avance