Forum Moderators: coopster

Message Too Old, No Replies

Parse error: syntax error, unexpected T STRING

         

gmom

1:42 pm on May 2, 2008 (gmt 0)

10+ Year Member



I am new to php and can't get this to work. Any help will be greatly appreciated. The following is the error.

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/user/public_html/www/catalog/includes/functions/database.php on line 13

And here is database.php to line 13. I blocked out passwords, etc but didn't delete anything else.

<?php
/*
$Id: database.php,v 1.21 2003/06/09 21:21:59 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
[oscommerce.com...]

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

function tep_db_connect($server = localhost, $username = #*$!#*$!, $password = #*$!#*$!x, $database = #*$!#*$!, $link = 'db_link') {
global $$link;

d40sithui

3:43 pm on May 2, 2008 (gmt 0)

10+ Year Member



values for $server, $username, $password, and $database should be in quotes - just like $link

gmom

4:28 pm on May 2, 2008 (gmt 0)

10+ Year Member



Thank you, thank you, thank you!

d40sithui

6:50 pm on May 2, 2008 (gmt 0)

10+ Year Member



yep, thats why they pay me the big bucks...oh wait, no they dont.