pingeyeg
asked on
Code gone bad
Is there something wrong with this code because when I use it the page just keeps loading and loading and loading... I have to close out the browser to do anything.
<?php
} elseif ($_GET['review'] == "review") {
$SQLstr = mysql_query("SELECT DISTINCT strCompanyname FROM tblReviews ORDER BY strCompanyName")
or die("SQL statement is not working");
$i = 0;
while ($i < 3) {
$i = $i+1;
if ($i == 1) {
echo("<tr>");
}
echo("<td>");
?>
<a href="/admin/edit_reviews. php?Compan y=<?= $strCompanyname ?>" >
<?= $strCompanyname ?>
</a>
<?php
echo("</td>");
if ($i == 3) {
echo("</tr>");
$i = 0;
}
}
}
?>
<?php
} elseif ($_GET['review'] == "review") {
$SQLstr = mysql_query("SELECT DISTINCT strCompanyname FROM tblReviews ORDER BY strCompanyName")
or die("SQL statement is not working");
$i = 0;
while ($i < 3) {
$i = $i+1;
if ($i == 1) {
echo("<tr>");
}
echo("<td>");
?>
<a href="/admin/edit_reviews.
<?= $strCompanyname ?>
</a>
<?php
echo("</td>");
if ($i == 3) {
echo("</tr>");
$i = 0;
}
}
}
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>angelIII, you sound angry??
nope. just put exclamation marks to show that that "detail" was important (should have jumped into your eyes :-) )
nope. just put exclamation marks to show that that "detail" was important (should have jumped into your eyes :-) )
ASKER