and did you see a "DOWNLOAD SOURCE CODE" on the top of the page? 🙂
just a few suggestion:
localhost is a string, use "" signs around it
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
while you don't know its working do not use @ to hide the error reporting, and always use
or die("Cant run:" . mysql_error() . " : $query");
$query = 'SELECT * FROM Class_Alias_Cla WHERE Cla_Cl_PK = `Cla_Cl_PK` LIMIT 0, 100 ';
forget the ` sign in your SQL query while you don't know the right usage. Anyway, if you use apostrofe in your string, and you cover it with apostrofes you have to use \' escaped version.
$query = 'SELECT * FROM Class_Alias_Cla WHERE Cla_Cl_PK = \'Cla_Cl_PK\' LIMIT 0, 100 ';
$result = mysql_query($query);
or die+mysql error...
echo "<option>".$row["Cla_Cl_PK"]."</option>\n";
thats nice, but there is not value added into the dropdown.
echo "<option value=\"".$row["ID_FIELD_NAME"]."\">".$row["Cla_Cl_PK"]."</option>\n";