From: [EMAIL PROTECTED]
Operating system: Windows ME
PHP version: 4.2.3
PHP Bug Type: Unknown/Other Function
Bug description: Posting posting results in a blank page.
Whenever I submit the search on the previous page, it goes to this page (as
it should), but the code will not execute and I just end up with a blank
page.
=====================================================
<?
// perform search only if a string was entered.
{
mysql_connect() or die ("Problem connecting to Database");
$query = "select * from pet WHERE pet_species like '$search'";
$result = mysql_db_query("mydb", $query);
if ($result)
{
echo "<table border=1 width=75%>\n";
echo "<tr><td align=center><b>Pet Name</b></td><td align=center><b>Owner
Name</b></td><td align=center><b>Pet Type</b></td><td
align=center><b>Sex</b></td><td align=center><b>Birth
Date</b></td></tr>\n";
do {
printf("<tr><td>%s</td><td>%s %s</td><td>%s</td><td
align=center>%s</td><td>%s</td></tr>\n", $myrow[pet_name],
$myrow[owner_first],
$myrow[owner_last],$myrow[pet_species],$myrow[sex],$myrow[pet_birth]);
}
while ($myrow = mysql_fetch_array($result));
echo "</table>\n";
}
else {
echo "Sorry, no records were found!";
}
?>
--
Edit bug report at http://bugs.php.net/?id=20128&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20128&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20128&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20128&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20128&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20128&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20128&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20128&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20128&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20128&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20128&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20128&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20128&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20128&r=isapi