table_coords

This commit is contained in:
Marc Delisle
2002-05-23 17:01:19 +00:00
parent c86e72902b
commit 01ad473048
5 changed files with 76 additions and 28 deletions

View File

@@ -361,7 +361,7 @@ class PMA_RT_Table
function PMA_RT_Table($table_name, $ff)
{
global $pdf;
global $pdf, $pdf_page_number;
$this->table_name = $table_name;
$sql = 'DESCRIBE ' . PMA_backquote($table_name);
@@ -380,8 +380,9 @@ class PMA_RT_Table
//x and y
$sql = 'SELECT x, y FROM '
. PMA_backquote($GLOBALS['cfg']['Server']['table_info'])
. ' WHERE table_name = \'' . PMA_sqlAddslashes($table_name) . '\'';
. PMA_backquote($GLOBALS['cfg']['Server']['table_coords'])
. ' WHERE table_name = \'' . PMA_sqlAddslashes($table_name) . '\''
. ' AND pdf_page_number = ' . $pdf_page_number;
$result = mysql_query($sql);
if (!$result || !mysql_num_rows($result)) {
$pdf->PMA_PDF_die(sprintf($GLOBALS['strConfigureTableCoord'], $table_name));