| | |
find the parse error
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
ive got a Parse error: syntax error, unexpected T_VARIABLE
on this line:
any idea of whats wrong with it?
on this line:
PHP Syntax (Toggle Plain Text)
$dboutput = "//database vars \n" "$dbtype = '".$dbtype."'; \n" "$dbhost = '".$dbhost."'; \n""$dbtype = '".$dbtype."'; \n""$dbname = '".$dbname."'; \n""$dbport = '".$dbport."'; \n""\n" "$database = array($dbtype, $dbhost, $dbname, $dbpass, $dbport);";
Last edited by hunkychop; Mar 23rd, 2007 at 11:20 pm. Reason: more info
(sory for not editing, it wouldent let me)
i changed the script to this, and i stil have problems:
i changed the script to this, and i stil have problems:
PHP Syntax (Toggle Plain Text)
$dboutput = "//database vars \n"."$dbtype = '".$dbtype."'; \n". "$dbhost = '".$dbhost."'; \n"."$dbtype = '".$dbtype."'; \n"."$dbname = '".$dbname."'; \n"."$dbport = '".$dbport."'; \n"."\n". "$database = array($dbtype, $dbhost, $dbname, $dbpass, $dbport);";
Parse errors usually do not show the correct line number in the error msg. Usually its the line just before the one given, like jgutierrez@mail pointed out...
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- Help. Parse error in PHP code (PHP)
- cannot find server or DNS error (Web Browsers)
- Parse error: parse error, unexpected T_STRING on line 12 (PHP)
- Parse error please help (PHP)
- parse error difficulties (PHP)
- Cannot find server or DNS error (Viruses, Spyware and other Nasties)
- I need help with a parse error! (PHP)
- Parse error, syntax error, Forbids declaration (C++)
Other Threads in the PHP Forum
- Previous Thread: Help
- Next Thread: undefined variable error
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend






