![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARISorry everyone for bringing this to the fore again . I have Googled it to death and also tried many of the suggestions supplied in this forum . Been trying to fix this for 3 entire days with no luck . I am using Dreamweaver with Mysql to try and make a very simple form for a DVD movie database . Dreamweaver produces all the code . Here is the error I get on clicking the submit button :
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /hsphere/local/home/lgmarina/losgigantesapartments.net/results10.php on line 13 and the first 20 lines of code : PHP Code:
I am very new to this so if it is a blaringly obvious mistake I apologise in advance . Thank you |
|||
|
#2
|
||||
|
||||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIWhat is the semi-colon after the '{' behind "westerns" ??
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIQuote:
Thank you for the reply . If this is an error in the code removing it has made no difference as the error message persists : Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /hsphere/local/home/lgmarina/losgigantesapartments.net/results10.php on line 13 |
|
#4
|
||||
|
||||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIThat was just the first thing that seemed odd, but the error is still complains about line 13, which is the same line, so...
Taking a clue from the error (the or '$' part), on the same line, should "westerns" have the '$' (checking the form variable)? __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIQuote:
Same as before , sorry . If this code is so far out , do you happen to know if Dreamweaver is responsible for generating these mistakes ? |
|
#6
|
||||
|
||||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIIf you comment-out that entire if check, does the error still appear?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#7
|
|||
|
|||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARINo . But it then throws up this instead :
Fatal error: Call to undefined function: variable() in /hsphere/local/home/lgmarina/losgigantesapartments.net/results10.php on line 16 |
|
#8
|
||||
|
||||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARIThis might be silly to ask, but for your *_Recordset1 variables, the western one is set to "0", and the others to a number (one has 0, the other 10), what is the difference? (thinking about the unexpected t_string)
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#9
|
|||
|
|||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARISorry Turbo . I can see the certain disparity there but I don't know for sure what the significance of means . This is day 4 of staring at this monitor and my brain is turning to slush now .
|
|
#10
|
||||
|
||||
Re: Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARII told you my question was silly, for I see now how those are used.
I have found information implying that form values cannot be retrieved directly, rather the $_GET, $_POST, $_REQUEST must be used. (also there is a setting required in the php.ini file) see if the last comment this bug entry (about retrieving data from forms): http://bugs.php.net/bug.php?id=22615&edit=1 __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The