Loading...
Обучение/Помощь новичкам | Помогите решить проблему
Parse error: syntax error, unexpected 'class' (T_CLASS)[q][/q]есть ошибка:


Parse error: syntax error, unexpected 'class' (T_CLASS)



кусок пхп от которого идёт ошибка

empty($_POST['username']) && !


помогите решить такую вот проблему
Sacrifice justice , у тебя так? if(empty($_POST['username']) && !)
Челябинский , if(isset($_POST["register"])){ if(!empty($_POST['full_name']) && !empty($_POST['email']) && !empty($_POST['username']) && !empty($_POST['password']))
Кто поможет с меня +
дай весь код
Saw , <?php require_once("includes/connection.php"); ?>
<?php include("includes/header.php"); ?>


<?php if(isset($_POST["register"])){ if(!empty($_POST['full_name']) && !empty($_POST['email']) && !empty($_POST['username']) && !empty($_POST['password'])) { $full_name= htmlspecialchars($_POST['full_name']); $email=htmlspecialchars($_POST['email']); $username=htmlspecialchars($_POST['username']); $password=htmlspecialchars($_POST['password']); $query=mysql_query("SELECT * FROM usertbl WHEREusername='".$username."'"); $numrows=mysql_num_rows($query); if($numrows==0) { $sql="INSERT INTO usertbl (full_name, email, username,password) VALUES('$full_name','$email', '$username', '$password')"; $result=mysql_query($sql); if($result){ $message = "Account Successfully Created"; } else { $message = "Failed to insert data information!"; } } else { $message = "That username already exists! Please try another one!"; } } else { $message = "All fields are required!"; } } ?> <?php if (!empty($message)) {echo "

?>

<?php if (!empty($message)) {echo "<p class=\"error\">" . "MESSAGE: ". $message . "</p>";} ?>

<div class="container mregister">
<div id="login">
<h1>REGISTER</h1>
<form name="registerform" id="registerform" action="register.php" method="post">
<p>
<label for="user_login">Full Name<br />
<input type="text" name="full_name" id="full_name" class="input" size="32" value="" /></label>
</p>


<p>
<label for="user_pass">Email<br />
<input type="email" name="email" id="email" class="input" value="" size="32" /></label>
</p>

<p>
<label for="user_pass">Username<br />
<input type="text" name="username" id="username" class="input" value="" size="20" /></label>
</p>

<p>
<label for="user_pass">Password<br />
<input type="password" name="password" id="password" class="input" value="" size="32" /></label>
</p>


<p class="submit">
<input type="submit" name="register" id="register" class="button" value="Register" />
</p>

<p class="regtext">Already have an account? <a href="login.php" >Login Here</a>!</p>
</form>

</div>
</div>



<?php include("includes/footer.php"); ?>
У тебя ошибка указана в описании. Да и пора забывать уже php 5.2)
?>

<?php if (!empty($message)) {echo "<p class=\"error\">" . "MESSAGE: ". $message . "</p>";} ?>
:-)
} ?> <?php if (!empty($message)) {echo "

?>
Какой дурачок код писал
Онлайн: 2
Время:
Gen. 0.1155
(c) Bym.Guru 2010-2026