Page 1 of 1

unexpected T_STRING on line 9

Posted: Sun Jun 18, 2006 7:31 am
by jdimino
Hi

I'm getting an, unexpected T_STRING on line 9, can someone tell me what is wrong with this code.
Thanks

Code: Select all

<?PHP
mysql_connect("localhost", "xxxx_xxxx", "xxxx") or die(mysql_error());
mysql_select_db("xxxx_xxx") or die(mysql_error());
$sql = "SELECT * FROM `ihsreg` ORDER BY `Bloom_Name` ASC";
if (!(@ $result = mysql_query($sql))) {
	print "There was an error running your query:<p>\n". $sql . "<p>\n";
}	
print '<select name="Pod_Name, Pollen_Name"
onchange="window.location='SEindex1.php?search.value=this.options[this.selectedIndex].text;"><br>\n';
print '<option value="#">  Choose One   ';
while ($row = mysql_fetch_row($result)) {
	$id   = $row[0];
	$Pod_Name = $row[4];
	$Pollen_Name = $row[5];
    $x= x ;
	$cross = "$Pod_Name $x $Pollen_Name"  ;
	print "<option value=\"$id\"";
	if ($_REQUEST["Pod_Name,Pollen_Name"] == $id) { print " selected"; }

	print "> $cross <br>\n";
}
print '</select>';
 
?>

Posted: Sun Jun 18, 2006 7:57 am
by feyd
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.