<code>
<?php
echo $blockopen;
echo $siteID." Dept.";
echo $blockbody;
print "<form name=\"jump\">";
print "<select name=\"menu\" onChange=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" value=\"GO\">";
print "<option value=\"Select a Department\">Select a Department</option>";
while ($a_row = mysql_fetch_array( $category ) ) {
$field=$a_row['category_label'];
$sid2=$a_row['category_blog_id'];
$blogid2=$a_row['category_id'];
print "<option value=".FS_WEB_NAME."home.php?sid=$sid2&blogid=$blogid2>$field</option>";
}
print "</form>";
echo $blockend;
while ($a_row = mysql_fetch_array( $divapp ) ) {
$app_url=$a_row['url'];
$app_image=$a_row['image_location'];
$app_alt=$a_row['description'];
if (isset($app_url)) {
echo $blockopen;
print "Apps";
echo $blockbody;
print "<a href=\"$app_url\"><img src=\"$app_image\" alt=\"$app_alt\" border=\"0\"></a><br> ";";
echo $blockend;
}
}
?>
</code>
Why would I be getting the following error on this page?
Parse error: parse error in /var/ on line 29
If I remove the isset its fine but doing an isset gives me this. I thought this would be a good solution to the MySQL and PHP delima from earlier.
Digatle
<?php
echo $blockopen;
echo $siteID." Dept.";
echo $blockbody;
print "<form name=\"jump\">";
print "<select name=\"menu\" onChange=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" value=\"GO\">";
print "<option value=\"Select a Department\">Select a Department</option>";
while ($a_row = mysql_fetch_array( $category ) ) {
$field=$a_row['category_label'];
$sid2=$a_row['category_blog_id'];
$blogid2=$a_row['category_id'];
print "<option value=".FS_WEB_NAME."home.php?sid=$sid2&blogid=$blogid2>$field</option>";
}
print "</form>";
echo $blockend;
while ($a_row = mysql_fetch_array( $divapp ) ) {
$app_url=$a_row['url'];
$app_image=$a_row['image_location'];
$app_alt=$a_row['description'];
if (isset($app_url)) {
echo $blockopen;
print "Apps";
echo $blockbody;
print "<a href=\"$app_url\"><img src=\"$app_image\" alt=\"$app_alt\" border=\"0\"></a><br> ";";
echo $blockend;
}
}
?>
</code>
Why would I be getting the following error on this page?
Parse error: parse error in /var/ on line 29
If I remove the isset its fine but doing an isset gives me this. I thought this would be a good solution to the MySQL and PHP delima from earlier.
Digatle