Siple for programmer error unexpected T_STRING

nicolemcgrgr50

Beta member
Messages
1
Can someone please spot my error here Ive compared it to my other stuff just like it and Im not seeing the problem. Line 14 is
Code:

$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];

Big thanks in advance

Parse error: syntax error, unexpected T_STRING in /public_html/php/Freq_Table_dml.php on line 14

Code:

{
$Channel = $HTTP_POST_VARS["Channel"];
$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];
$MHZ Range = $HTTP_POST_VARS["MHZ Range"];
$Type = $HTTP_POST_VARS["Type"];
$Color = $HTTP_POST_VARS["Color"];
$License = $HTTP_POST_VARS["License"];
$Comment = $HTTP_POST_VARS["Comment"];
}
 
Some additional information would be helpful.
1.) What version of php
2.) What is MHz

On lines 14 and 15 it appears as though your variable declarations are incorrect.

I do not understand the necessity of MHz.
You can try this:
Code:
$Frequency = $HTTP_POST_VARS["Frequency MHz"];
$Range = $HTTP_POST_VARS["MHZ Range"];
If you are trying to instantiate a class (that you created), then the proper declaration in php looks like this:
Code:
$objectName = new nameOfClass(arg1,arg2,etc...);
I can help you further if you can give me a little bit more background on what you're trying to accomplish. Hope this helps.
 
Back
Top Bottom