I'm trying to get it but its still not working. What am I doing wrong?
Thanks!
<%
include "functions.php";
//checkSession();
%>
<html>
<head>
<title>Best Database</title>
<meta name="keywords" content="mitch">
<LINK href="cssstyle.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
background-image: url(images/sm3.gif);
}
</head>
<body bgcolor="#000000" topmargin="0">
<div align="left" style="margin:10px 0 10px 0;">
<div style="width:675px;text-align:center;background-color:#EFEFEF;">
<div style="padding:10px;text-align:left;">
<div align="left"> </div>
<div class="case">
<div align="left">
<table width="660" align="center" cellpadding="2" cellspacing="0" bgcolor="#66CCFF">
<tr>
<td><table border="0" cellpadding="0" bgcolor="#ffffff" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="100%">
<tr>
<td colspan="3" class="goldline"><img src="/toastmasters/images/blank.gif" width="1" height="1"></td>
</tr>
<tr class="right">
</tr>
<tr class="right">
</tr>
<tr class="right">
<td colspan="3" class="case"><img src="images/blank.gif" width="1" height="1"></td>
</tr>
<tr class="ro">
<td width="1%" align="center" class="listdata style2 style12" <%=$bgcolor%>> </td>
<td width="99%" class="listdata" <%=$bgcolor%>><%
$passed_vars = array_merge($_POST,$_GET);
$sql = "SELECT * FROM BEST WHERE ID = '$passed_vars[sel_record]'";
$sql_result = mysql_query($sql) or die (mysql_error());
if (!$sql_result) {
echo "Something has gone wrong!";
} else {
while ($record = mysql_fetch_array($sql_result)) {
$$xsel_record = $record['ID'];
$Name = stripslashes($record['Name']);
$Def = stripslashes($record['Def']);
$Condition = stripslashes($record['Condition']);
$Standards = stripslashes($record['Standards']);
$Best = stripslashes($record['Best']);
$Num = stripslashes($record['Num']);
$Keyr = stripslashes($record['Keyr']);
$Level = stripslashes($record['Level']);
$Ksa = stripslashes($record['Ksa']);
$Bloom = stripslashes($record['Bloom']);
$Info = $record['Info'];
$Ass1 = stripslashes($record['Ass1']);
$Ass2 = stripslashes($record['Ass2']);
$Ass3 = stripslashes($record['Ass3']);
$Ass4 = stripslashes($record['Ass4']);
$Ass5 = stripslashes($record['Ass5']);
$Ass6 = stripslashes($record['Ass6']);
$Ass7 = stripslashes($record['Ass7']);
$Ass8 = stripslashes($record['Ass8']);
$Sim1 = stripslashes($record['Sim1']);
$Sim2 = stripslashes($record['Sim2']);
$Sim3 = stripslashes($record['Sim3']);
$Sim4 = stripslashes($record['Sim4']);
$Sim5 = stripslashes($record['Sim5']);
$Sim6 = stripslashes($record['Sim6']);
$Sim7 = stripslashes($record['Sim7']);
$Sim8 = stripslashes($record['Sim8']);
}
$ID = "$xsel_record";
echo "
<FORM method=\"POST\" action=\"best_domodrecordpost.php\">
<INPUT TYPE=\"hidden\" name=\"ID\" value=\"$xsel_record\">
<P><strong>Name: $Name </a><br>
<P><strong>Definition: $Def<br>
<P><strong>Condition: $Condition<br>
<P><strong>Standards: $Standards<br>
<P><strong>Best Practices: $Best<br>
<P><strong>Primary: $Num<br>
<P><strong>Secondary: $Ass1 $Ass2 $Ass3 $Ass4 $Ass5 $Ass6 $Ass7 $Ass8<br>
<P><strong>Similar: $Sim1 $Sim2 $Sim3 $Sim4 $Sim5 $Sim6 $Sim7 $Sim8<br>
<P><strong>Key Resp. Area: $Keyr<br>
<P><strong>Career Level: $Level<br>
<P><strong>Knowledge, Skill, or Ability: $Ksa <br>
<P><strong>Bloom's Level: $Bloom <br>
<P><strong>File Location: $Info <br>
";
}
%>
</td>
</tr>
<tr>
<%
$passed_vars = array_merge($POST,$GET);
$sql = "SELECT AS prev FROM BEST WHERE ID < '$passed_vars[sel_record]' ORDER BY ID DESC LIMIT 1";
$result = execSQL($sql);
while (list($xsel_record) = mysql_fetch_array($result)) {
$ID = "$xsel_record";
%>
<a href="best_calc.php?sel_record=<%=$xsel_record%>">goto record</a>
<%
}
%>[/b]
<td height="19" colspan="3" class="baseline"><div align="center" class="ro"><a href="default.php">Home</a><P><FORM>
<INPUT TYPE=BUTTON NAME="print" VALUE="Print Me" ONCLICK="javascript:window.print()"></P>
</FORM>
</P></div></td>
</tr>
</table></td>
</tr>
</table>
</div>
</div>
<div style="margin-bottom:10px;"></div>
</div>
</div>
<div align="center"> </div>
</div>
</body>
</html>