...

View Full Version : Another pair of eyes...



lmayer
08-31-2006, 10:45 PM
Can someone take a quick look? I'm getting the lovely message: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /usr/local/apache/htdocs-dev-secure/Res_Life/Submit_Application.php on line 23

I've been looking and I can't seem to find it....



//set variables
Line 20 is here $Application_Date = $_POST['Application_Date'];
$Sem_ApplyFor = $_POST['Sem_ApplyFor'];
$Position_Requested = $_POST['Position_Requested'];
$1st_Pref = $_POST['1st_Pref'];
$2nd_Pref = $_POST['2nd_Pref'];
$3rd_Pref = $_POST['3rd_Pref'];
$4th_Pref = $_POST['4th_Pref'];
$5th_Pref = $_POST['5th_Pref'];
$SIRP_Pref = $_POST['SIRP_Pref'];
$Resume = $_POST['Resume'];
$Quest1 = $_POST['Quest1'];
$Quest2 = $_POST['Quest2'];
$Quest3 = $_POST['Quest3'];
$Quest4 = $_POST['Quest4'];
$Quest5 = $_POST['Quest5'];
$Quest6 = $_POST['Quest6'];
$Quest7 = $_POST['Quest7'];
$Dietary_Needs = $_POST['Dietary_Needs'];
$TShirt_Size = $_POST['TShirt_Size'];

//set up the query
$query = "INSERT INTO ApplicationTbl(CampusID,Application_Date,Sem_ApplyFor,Position_Requested,1st_Pref,2nd_Pref,3rd_Pref, 4th_Pref,5th_Pref,SIRP_Pref,Resume,Quest1,Quest2,Quest3,Quest4,Quest5,Quest6,Quest7,Dietary_Needs,TS hirt_Size)VALUES('" .$_SESSION['Campus_ID'] . "','" . $Application_Date . "','" . $Sem_ApplyFor . "','" . $Position_Requested . "','" . $1st_Pref . "','" . $2nd_Pref . "','" .$3rd_Pref . "','" . $4th_Pref . "','" . $5th_Pref . "','" . $SIRP_Pref . "','" . $Resume . "','" . $Quest1 . "','" . $Quest2 . "','" . $Quest3 . "','" . $Quest4 . "','" . $Quest5 . "','" . $Quest6 . "','" . $Quest7 . "','" . $Dietary_Needs . "','" . $TShirt_Size . "')";
//do the query
$result=mysql_query($query) or die ("Query failed: " . mysql_error() . " Actual query: " . $query);



Thanks for any help.

Laura

Brandoe85
08-31-2006, 10:47 PM
Hi,

variables can't start with numbers :)

http://us3.php.net/language.variables

lmayer
08-31-2006, 10:49 PM
Dang. :o Thanks for that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum