A Digital Age Deserves A Digital Leader

Help with SQL error

Help with SQL error

Postby T-Man1984 » Thu Dec 20, 2007 2:32 pm

I am trying to install a forum on my website. I had phpBB2, but it became corrupt. I am trying to install vBulletin.

I created a new DB, and deleted the old phpBB2.

Here is the error.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/J/s/p/Jspafford84/html/upload/includes/config.php on line 2

Parse error: parse error, unexpected T_STRING in /home/content/J/s/p/Jspafford84/html/upload/includes/config.php on line 2

Where is line 2? Line 2 is text that was already there when I opened the config file.

Here is my coding.

Can someone help... Thanks as always!

[code]
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.5
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Postby jbullard » Thu Dec 20, 2007 2:59 pm

Edited your post to remove some security stuff.

As for the error it is right here:

[code]
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.5
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Postby T-Man1984 » Thu Dec 20, 2007 3:16 pm

I took out what you mentioned and I still get the same exact error. So I took that whole part out and now have only:

<?php
// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where

And I still get the error?

Thanks!
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Postby jbullard » Thu Dec 20, 2007 5:55 pm

Two quick things that come to mind.

1. Do you have any whitespace before <?php in your file?
2. Did you make sure you uploaded the file in Binary Mode and not in ASCII Mode?

Those two are the biggest errors that can cause these errors.
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 11 guests