Use PMA_DBI_fetch_row and drop PHP 3 compatibility code.
This commit is contained in:
@@ -17,6 +17,8 @@ $Source$
|
|||||||
libraries/export/*: Support for enclosing SQL export in transaction (RFE
|
libraries/export/*: Support for enclosing SQL export in transaction (RFE
|
||||||
#930827).
|
#930827).
|
||||||
* libraries/export/csv.php: Do not strip export too much (bug #913988).
|
* libraries/export/csv.php: Do not strip export too much (bug #913988).
|
||||||
|
* libraries/export/xml.php: Use PMA_DBI_fetch_row and drop PHP 3
|
||||||
|
compatibility code.
|
||||||
|
|
||||||
2004-04-13 Marc Delisle <lem9@users.sourceforge.net>
|
2004-04-13 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/relation.lib.php: bug 930445 when PMA_table_info not defined,
|
* libraries/relation.lib.php: bug 930445 when PMA_table_info not defined,
|
||||||
|
@@ -135,12 +135,11 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
|
|||||||
$buffer = ' <!-- ' . $GLOBALS['strTable'] . ' ' . $table . ' -->' . $crlf;
|
$buffer = ' <!-- ' . $GLOBALS['strTable'] . ' ' . $table . ' -->' . $crlf;
|
||||||
if (!PMA_exportOutputHandler($buffer)) return FALSE;
|
if (!PMA_exportOutputHandler($buffer)) return FALSE;
|
||||||
|
|
||||||
while ($record = PMA_DBI_fetch_assoc($result)) {
|
while ($record = PMA_DBI_fetch_row($result)) {
|
||||||
$buffer = ' <' . $table . '>' . $crlf;
|
$buffer = ' <' . $table . '>' . $crlf;
|
||||||
for ($i = 0; $i < $columns_cnt; $i++) {
|
for ($i = 0; $i < $columns_cnt; $i++) {
|
||||||
// There is no way to dectect a "NULL" value with PHP3
|
if ( isset($record[$i]) && !is_null($record[$i])) {
|
||||||
if ( isset($record[$columns[$i]]) && (!function_exists('is_null') || !is_null($record[$columns[$i]]))) {
|
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars($record[$i])
|
||||||
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars(stripslashes($record[$columns[$i]]))
|
|
||||||
. '</' . $columns[$i] . '>' . $crlf;
|
. '</' . $columns[$i] . '>' . $crlf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user