Thanks for your response, but I'm afraid I'm still at a loss.
I'm attaching the code from the previous page to see if you can
help me find where the error is occurring.
Thanks!
<?php require_once('../Connections/Registration.php');
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_Registration, $Registration);
$query_rsDirectors = "SELECT CONCAT(Directory.Firstname,'
',Directory.Lastname) AS Director, Directory.ID, Directory.MENC_ID
FROM Directory ORDER BY Directory.Lastname, Directory.Firstname";
$rsDirectors = mysql_query($query_rsDirectors, $Registration)
or die(mysql_error());
$row_rsDirectors = mysql_fetch_assoc($rsDirectors);
$totalRows_rsDirectors = mysql_num_rows($rsDirectors);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Prepare Registration Verification</title>
</head>
<body>
<form id="form1" name="form1" method="post"
action="Print_Registration.php">
<p> <label for="varDirector">Select your
name:</label>
<select name="varDirector" size="1" id="varDirector">
<?php
do {
?>
<option value="<?php echo
$row_rsDirectors['ID']?>"><?php echo
$row_rsDirectors['Director']?></option>
<?php
} while ($row_rsDirectors = mysql_fetch_assoc($rsDirectors));
$rows = mysql_num_rows($rsDirectors);
if($rows > 0) {
mysql_data_seek($rsDirectors, 0);
$row_rsDirectors = mysql_fetch_assoc($rsDirectors);
}
?>
</select>
</p>
<p>
<input type="submit" name="button" id="button" />
</p>
</form>
</body>
</html>
<?php
mysql_free_result($rsDirectors);
?>