Jump to content

Php Help


lukedouglas8

Recommended Posts

Please Help me i get the following error

Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/a9453679/public_html/imgpro/register.php on line 17

 

here is the code for all the included docs and itself - all help appreciated . If you prefer to help in other ways:

email: lukedouglas8@me.com

teamviewer: username: 750 995 998

                    password: sg2t96

<----  Register.php ---->

<?php

include 'init.php';

include 'template/header.php';

?>

 

 

<h3>Register</h3>

 

<?php

if (isset($_POST['register_email'], $_POST['register_name'], $_POST['register_password '])) {

$register_email = $_POST['register_email'];

$register_name = $_POST['register_name'];

$register_password = $_POST['register_password'];

 

$errors = array();

 

if (empty(register_email) || empty(register_name) || empty(register_password) {

$errors[] =  'Some fields are blank, please fill them in';

} else {

 

echo 'Ok.';

 

}

 

print_r($errors);

 

}

?>

 

<form action="" method="post">

<p>Email: <br><input type="email" name="register_email" size="35" maxlength="255"</p>

<p>Full Name: <br><input type="text" name="register_name" maxlength="35"</p>

<p>Password: <br><input type="password" name="register_password" maxlength="35"</p>

<p><input type="submit" value="Signup"</p>

</form>

 

<?php

include 'template/footer.php';

?>

 

<----- init.php ----->

<?php

ob_start();

session_start();

 

mysql_connect('mysql7.000webhost.com', 'a9453679_users', 'lukedouglas98');

mysql_select_db('a9453679_users');

include 'func/user.func.php';

include 'func/album.func.php';

include 'func/image.func.php';

 

?>

 

 

<-------  index.php -------->

<?php

include 'init.php';

include 'template/header.php';

 

echo '<img src="images/landing.png" alt="Register a free account today" />';

 

include 'template/footer.php';

?>

 

 

<----- template/header.php --------->

<!DOCTYPE HTML>

<head>

      <title>VisualUpload</title>

      <link href="css/style.css" rel="stylesheet" type="text/css">

</head>

<body>

     

      <div id="menu">

          <?php include 'widgets/menu.php'; ?>

      </div>

      <div id="container">

          <a href="index.php"><img src="images/logo.png" alt="VisualUpload" /></a>

          <span class="right">

                <?php include 'widgets/login.php'; ?>

          </span>

 

          <div id="main">

 

 

 

<------ template/footer.php -------->

          </div>

 

      </div>

      <div id="footer">

          © ImgPro 2012. All rights reserved.

          <span class="right">Front graphic courtesy of Luke Douglas</span>

      </div>

 

</body>

</html>

 

 

 

 

Thanks, Luke

Link to comment
Share on other sites

In the future, please put your code in

 tags

 

The problem is that you didn't use a $ on your variable names, on this line: if (empty(register_email) || empty(register_name) || empty(register_password) {

 

EDIT:

Since you've just posted your database credentials in a public forum on the internet, you should go change your username and password right now.

 

You should snip them from his post, before the wrong eyes sees them.

Link to comment
Share on other sites

I'm not deleting the post, nor am I removing the credentials. The post has undoubtedly been indexed by search engines already, and therefore they will still be available in a cached version. Deleting them now would only instill a false sense of security where ethere should be none.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.