

php registrace
dobry den, delam registraci v php (jsem zacatecnik)
newim proc ale hazi mi to chybu
mohl by to nekdo zkontrolovat?
.
.
:
<?php
mysql_pconnect('fdb3.runhosting.com', '831659_users', 'temeraf');
?>
<html>
<head>
<title>PHP Tutorials</title>
</head>
<body>
<?php
if ( !$_POST['submit'] ) {
?>
<form action="index.php" method="post">
<table border="1">
<tr>
<td>
Username:
</td>
<td>
<input type="text" name="username">
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type="password" name="password">
</td>
</tr>
<tr>
<td>
Password (Confrim):
</td>
<td>
<input type="password" name="passwordconf">
</td>
</tr>
<tr>
<td>
Email:
</td>
<td>
<input type="text" name="email">
</td>
</tr>
<tr>
<td colspan="2" aling="center">
<input type="submit" value="Create User" name=submit">
</td>
</tr>
</table>
</form>
<?php
} else {
$username = $_POST ['username'];
$password = $_POST ['password'];
$paswordconf = $_POST['passwordconf'];
$email = $_POST['email'];
$errors = array ();
if ( !$username ) {
$errors[1] = "You dud not enter a username.";
}
if ( !$pasword ) {
$errors[2] = "You did not enter a password.";
}
if ( !$paswordcofn ) {
$errors[3] = "You did not enter a password confirmation.";
}
if ( !$email ) {
$errors[4] = "You did not enter email.";
}
if ( !$password != $passwordconf ) {
$errors[5] = "The passwords you entered did not match.";
}
if ( count($errors) > 0 ) {
foreach ( $errors as $error ) {
echo "$error<br>";
}
} else {
mysql_query("INSERT INTO `users`.`user_info`
(`username`, `password`, `email`, `user_admin_level`)
VALUES ('".$username."', '".md5($password)."', '".$email."', '1')';');
}
}
?>
</body>
</html>
Pokračuj tam, kde jsi začal.
http://pc.poradna.net/q/view/698635-php-parse-erro r-syntax-error-unexpected (host)