[Phpmyadmin-devel] PHPMyAdmin errors

Dmitry Kashlev kashlevd at voyager.bxscience.edu
Thu Aug 9 20:17:49 CEST 2001


I have a phpMyAdmin installed on the web server.
When I try to delete any row (entry) in the database, I click on delete link
to the right of the entry. Then I click on yes. The following string
appears:

Warning: Cannot add header information - headers already sent by (output
started at config.inc.php3:118) in /usr/local/web/data/sql/sql.php3 on line
94

Here's part of sql.php3:
if (!$result)
{
$error = mysql_error();
include("header.inc.php3");
mysql_die($error);
}
$num_rows = @mysql_num_rows($result);

if ($num_rows < 1)
{
// PATCH ADDITION BEGINS
// if (file_exists($goto))
if(file_exists("./$goto"))
// PATCH ADDITION ENDS
{
include("header.inc.php3");
if (isset($zero_rows) && !empty($zero_rows))
$message = $zero_rows;
else
$message = $strEmptyResultSet;
// PATCH ADDITION BEGINS
// include($goto);
include(preg_replace('/\.\.*/', '.', $goto));
// PATCH ADDITION ENDS
}
else
{
$message = $zero_rows;
Header("Location: $goto");
}
exit;
}
else
{
include("header.inc.php3");
display_table($result);
if (!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query))
echo "<p><a href=\"tbl_change.php3?server=$server&db=$db&table=$tab
le&goto=sql.php3?".urlencode($GLOBALS['QUERY_STRING'])."\">
$strInsertNewRow</a>
</p>";
}
}
require ("footer.inc.php3");
?>

What does this mean, and how to prevent that error from ocurring?

__________________
Dmitry Kashlev
Webmaster
Bronx Science Computing





More information about the Developers mailing list