My host recently changed me from Windows 2000 to Windows 2003. Now, I'm trying to figure out why I get a undefine variable error message. How do I get this work correctly in windows 2003? Do I have to define the variable? If so, how? Any help would be welcomed.
The lines with undefined variables are bolded below
<form method=post action="editItem.php">
<input type='submit' name='submitButton' value='Edit Item'>
<br><br>
<?php
echo "<h3>Products for $sort</h3>"
?>
<table border=1>
<tr>
<th>Edit</th><th>Item</th><th>Name</th><th>File Name</th><th>Sort Code</th>
</tr>
<?
$myDB = odbc_connect("bovine","","");
$query = "SELECT * FROM products WHERE category='$sort' ORDER BY sortCode";
$result = odbc_exec($myDB, $query);
while(odbc_fetch_row($result)) {
$a = odbc_result($result, 1);
echo "<tr>";
echo "<td align='center'><input type=radio name='itemToEdit' value=$a></td><td>";
echo odbc_result($result, 7);
echo "</td><td>";
echo odbc_result($result, 2);
echo "</td><td>";