find the parse error

Thread Solved

Join Date: Mar 2007
Posts: 55
Reputation: hunkychop is an unknown quantity at this point 
Solved Threads: 4
hunkychop's Avatar
hunkychop hunkychop is offline Offline
Junior Poster in Training

find the parse error

 
0
  #1
Mar 23rd, 2007
ive got a Parse error: syntax error, unexpected T_VARIABLE


on this line:
  1. $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);";
any idea of whats wrong with it?
Last edited by hunkychop; Mar 23rd, 2007 at 11:20 pm. Reason: more info
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 55
Reputation: hunkychop is an unknown quantity at this point 
Solved Threads: 4
hunkychop's Avatar
hunkychop hunkychop is offline Offline
Junior Poster in Training

Re: find the parse error

 
0
  #2
Mar 23rd, 2007
(sory for not editing, it wouldent let me)

i changed the script to this, and i stil have problems:
  1. $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);";
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 2
Reputation: jgutierrez@mail is an unknown quantity at this point 
Solved Threads: 1
jgutierrez@mail jgutierrez@mail is offline Offline
Newbie Poster

Re: find the parse error

 
0
  #3
Mar 24th, 2007
I tested your last version:

I did not get any errors. If you still get the error,maybe in the statement previous to this one, the ";" is missing.
i have done this kind of errors several times .
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: find the parse error

 
0
  #4
Mar 24th, 2007
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!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC