my code:
<?php
include("configuration.php");
$id = $_COOKIE['logedinuser'];
$pwrd = $_COOKIE['logedinpwrd'];
$temp = mysql_query("SELECT * FROM pilotinfo WHERE id = '$id' AND pwrd = '$pwrd'",$conn)
or die("didnt work");
$row = mysql_fetch_array($temp)or die("error point 1");
$temp3 = $row['hour'];
if ($temp3 < 1998)
{
$usrlvl = "001";
}
elseif ($temp3 < 15000)
{
$usrlvl = "002";
}
elseif ($temp3 < 31998)
{
$usrlvl = "003";
}
elseif ($temp3 < 63960)
{
$usrlvl = "004";
}
elseif ($temp3 < 440886)
{
$usrlvl = "005";
}
elseif ($temp1 = 001)
{
$usrlvl = "006";
}
print("<br><b><br>Please be aware we are having temporary difficulties with the rank image they will be updated ASAP</b>
<table border=1 cellpadding=2 cellspacing=0><tr><th width=48>ID</th><th>Name</th><th>Image</th><th>Download?</th></tr>");
$result = mysql_query("SELECT * FROM $tablec WHERE level = '$usrlvl',$conn)
or die(mysql_error());
while($row = mysql_fetch_array($result)) {
$data[] = $row;
}
// Begin printing data
for($i=0;$i<count($data);$i++) {
$dlid = $data[$i]['id'];
$dlname = $data[$i]['name'];
$dlimage = $data[$i]['image'];
$dllink = $data[$i]['link'];
print("<tr><td>$dlid</td><td>$dlname</td><td>$dlimage</td><td>$dllink</td></b></td></tr>");
}
print("</table>");
?>
and the error:
Parse error: parse error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/homer090/public_html/global-european/GE DEV 2006/downloads.php on line 43
i dont understand what the problem is because ive used this same peice of code on about 3 different pages with no problems?