Databases and File Storage Discuss database applications like mySQL and Postgres or other methods of storing data on the server.

Reply
 
Thread Tools

  #1  
Old 04-05-2012, 01:37 PM
engineer1964's Avatar
engineer1964 engineer1964 is offline
hoc foro magna est
 
Real Name: Gerry
Join Date: Feb 2012
Admin Experience: Advanced
Location: Colchester, Essex, UK
Posts: 767
engineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to all
Default Database Error??
I'm working on a new project and i'm, puzzled by this

Code:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home2/forumtop/public_html/jobs/_config/config.envs.php on line 62
so i look at my config file and find line 62 which is

PHP Code:
    define('DB_USER'$__instance['******_******']); 
i've starred out the database user name for security reasons, but basically i think that error is telling me that i have a "]" bracket???

Can anyone see whats wrong and any help to sort this would be welcomed, PM me if you need to know more
Reply With Quote
  #2  
Old 04-05-2012, 03:11 PM
engineer1964's Avatar
engineer1964 engineer1964 is offline
hoc foro magna est
 
Real Name: Gerry
Join Date: Feb 2012
Admin Experience: Advanced
Location: Colchester, Essex, UK
Posts: 767
engineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to allengineer1964 is a name known to all
Default
Ok i found the problem

PHP Code:
define('DB_PORT'$__instance['3306]); 
Notice the missing apostrophe, after the 6

Such a nightmare, now i fixed that one, another 6 have come to light, Oh well its gonna be a long Night
Reply With Quote
  #3  
Old 04-05-2012, 08:32 PM
legalize legalize is offline
Tazmanian
 
Join Date: Sep 2004
Admin Experience: Intermediate
Location: Brooklyn, NY
Age: 26
Posts: 359
legalize is a jewel in the rough
Default
That's a PHP error not a database error anyway. Usually those syntax errors throw the wrong line at you anyway, however the mistake is usually in the near vicinity haha
__________________
Computer Forum
Reply With Quote
  #4  
Old 04-09-2012, 07:17 PM
webdev123 webdev123 is offline
TAZ Regular
 
Real Name: Sonny
Join Date: Mar 2012
Admin Experience: Advanced
Location: Florida
Posts: 59
webdev123 is on a distinguished road
Default
You only need apostrophes when using letters, number can be set by themselves.
Reply With Quote
Reply

  Admin Zone Forums > The Development Zone > Databases and File Storage





Currently Active Users Viewing this Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database error please help warzone vBulletin 11 01-17-2010 07:34 PM
Database error? 5ATM5 vBulletin 2 09-16-2009 01:57 PM
Database Error - How Do I Fix This? djdex93 SMF 6 09-26-2008 03:33 PM
Database Error CuRSe phpBB 4 05-17-2007 09:23 PM
I keep getting this database error MissMoke vBulletin 6 07-17-2006 09:38 PM


 

All times are GMT -4. The time now is 03:26 AM.


Powered by: vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Page generated in 0.05113792 seconds with 15 queries
The Admin Zone copyright 2003-2014 All Rights Reserved. Content published on The Admin Zone requires permission for reprint.