Current location:Hot Scripts Forums
» Programming Languages
» PHP
»
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or }
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or }
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or }
Hello guys.
I see there is a few threads on this subject but i have this problem the code looks ok to me but i'm not really up to scratch with functions or classes. this is the error...
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/site/public_html/pfp/magazine/db.php on line 6
:queasy::queasy:
here is the code.
config.php
PHP Code:
<?php
// ADMIN SETTINGS // define ("ADMIN_PASSWORD", "PASS"); // Admin Password define ("WEBSITE_NAME", "Flash Page Flip"); // Your Website Name
// MySQL SETTINGS // define ("HOST","localhost"); // database host define ("USR", "user"); // database username define ("PSW", "pass"); // database password define ("DB", "cms"); // database to use
// E-MAIL SETTINGS // define ("MAIL_FROM_NAME","website admin"); // Sender Name define ("MAIL_SENDER_EMAIL","sender@example.com"); // Sender E-mail define ("MAIL_SENDER_USERNAME","sender@example.com"); // Sender E-mail Username define ("MAIL_SENDER_PASSWORD","youremailpassword"); // Sender E-mail Password define ("MAIL_SERVER","mail.example.com"); // Sender Mail Server define ("CHAR_SET","8859-1"); // Mail Character Set Code define ("STF_SUBJECT","Check This Out"); // Tell a Friend Mail Subject define ("STF_LINK","www.example.com"); // Your Publication Link For Tell a Friend define ("LOST_PASSWORD_SUBJECT","Your Login Information"); // Lost Password Mail Subject
?>
db.php
PHP Code:
<?php require_once("config.php");
class db_layer { private $conn; function __construct() { }