lukedouglas8 Posted August 13, 2012 Share Posted August 13, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/ Share on other sites More sharing options...
Pikachu2000 Posted August 13, 2012 Share Posted August 13, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369029 Share on other sites More sharing options...
scootstah Posted August 13, 2012 Share Posted August 13, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369031 Share on other sites More sharing options...
lukedouglas8 Posted August 13, 2012 Author Share Posted August 13, 2012 Can u delete my post please Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369032 Share on other sites More sharing options...
Jessica Posted August 13, 2012 Share Posted August 13, 2012 You still need to change your password, it's too late. Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369035 Share on other sites More sharing options...
vinsux Posted August 13, 2012 Share Posted August 13, 2012 wwaaa...... change your pass change your pass change your pass change your pass Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369041 Share on other sites More sharing options...
lukedouglas8 Posted August 13, 2012 Author Share Posted August 13, 2012 safe now! changed my pass! Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369042 Share on other sites More sharing options...
Pikachu2000 Posted August 13, 2012 Share Posted August 13, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369045 Share on other sites More sharing options...
xyph Posted August 13, 2012 Share Posted August 13, 2012 WARNING: Before you post, read the rules! We will NOT delete content! Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369049 Share on other sites More sharing options...
Barand Posted August 13, 2012 Share Posted August 13, 2012 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) { Another problem is the missing ")" at the end of that if( Quote Link to comment https://forums.phpfreaks.com/topic/267026-php-help/#findComment-1369096 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.