eww7633
05-15-2008, 03:28 PM
I get the following error when I try to run this page:
Parse error: syntax error, unexpected T_VARIABLE in /home/the8c53c/public_html/v2/awardedit.php on line 12
Here is the actual PHP code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>17th Airborne Duty Roster Edit</title></head>
<body bgcolor="#000000" text="#FFFFFF" BODY LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF">
<?php
// Connect to the database
$dbh=mysql_connect ("localhost", "xxxxxxxx_xxxxxx", "xxxxxxxxxx") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("xxxxxxxx_xxxxxx")
// Select the Users
$temp = mysql_query("SELECT COUNT(*) FROM nuke_users");
$temp = mysql_fetch_row("nuke_users");
$numusers = $temp[0];
// Set the values passed into variables
$pagestep = $_POST['pagestep'];
$usernum = $_POST['usernum'];
$submitpage = $_POST['submitbutton'];
// Award Variables
$moh = $_POST['moh'];
$dsc = $_POST['dsc'];
$ddsm = $_POST['ddsm'];
$ss = $_POST['ss'];
$dssm = $_POST['dssm'];
$lom = $_POST['lom'];
$solmed = $_POST['solmed'];
$bs = $_POST['bs'];
$ph = $_POST['ph'];
$dmsm = $_POST['dmsm'];
$msm = $_POST['msm'];
$jscm = $_POST['jscm'];
$acm = $_POST['acm'];
$jsam = $_POST['jsam'];
$aam = $_POST['aam'];
$agcm = $_POST['agcm'];
$adm = $_POST['adm'];
$afem = $_POST['afem'];
$gwotex = $_POST['gwotex'];
$gwotser = $_POST['gwotser'];
$afsm = $_POST['afsm'];
$tfhcm = $_POST['tfhcm'];
$hsm = $_POST['hsm'];
$ovsm = $_POST['ovsm'];
$ncopdr = $_POST['ncopdr'];
$asr = $_POST['asr'];
There is obviously more to the code, but it's very long. Line 12 is:
$temp = mysql_query("SELECT COUNT(*) FROM nuke_users");
I just can't figure out what is causing my error, and I would appreciate any help.
Parse error: syntax error, unexpected T_VARIABLE in /home/the8c53c/public_html/v2/awardedit.php on line 12
Here is the actual PHP code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>17th Airborne Duty Roster Edit</title></head>
<body bgcolor="#000000" text="#FFFFFF" BODY LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF">
<?php
// Connect to the database
$dbh=mysql_connect ("localhost", "xxxxxxxx_xxxxxx", "xxxxxxxxxx") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("xxxxxxxx_xxxxxx")
// Select the Users
$temp = mysql_query("SELECT COUNT(*) FROM nuke_users");
$temp = mysql_fetch_row("nuke_users");
$numusers = $temp[0];
// Set the values passed into variables
$pagestep = $_POST['pagestep'];
$usernum = $_POST['usernum'];
$submitpage = $_POST['submitbutton'];
// Award Variables
$moh = $_POST['moh'];
$dsc = $_POST['dsc'];
$ddsm = $_POST['ddsm'];
$ss = $_POST['ss'];
$dssm = $_POST['dssm'];
$lom = $_POST['lom'];
$solmed = $_POST['solmed'];
$bs = $_POST['bs'];
$ph = $_POST['ph'];
$dmsm = $_POST['dmsm'];
$msm = $_POST['msm'];
$jscm = $_POST['jscm'];
$acm = $_POST['acm'];
$jsam = $_POST['jsam'];
$aam = $_POST['aam'];
$agcm = $_POST['agcm'];
$adm = $_POST['adm'];
$afem = $_POST['afem'];
$gwotex = $_POST['gwotex'];
$gwotser = $_POST['gwotser'];
$afsm = $_POST['afsm'];
$tfhcm = $_POST['tfhcm'];
$hsm = $_POST['hsm'];
$ovsm = $_POST['ovsm'];
$ncopdr = $_POST['ncopdr'];
$asr = $_POST['asr'];
There is obviously more to the code, but it's very long. Line 12 is:
$temp = mysql_query("SELECT COUNT(*) FROM nuke_users");
I just can't figure out what is causing my error, and I would appreciate any help.