~ubuntu-branches/ubuntu/hardy/phpmyadmin/hardy

« back to all changes in this revision

Viewing changes to tbl_replace.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Thijs Kinkhorst, Translations
  • Date: 2007-06-17 17:52:03 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070617175203-6oa2mpmgazkhp8tl
Tags: 4:2.10.2-1

[ Thijs Kinkhorst ]
* New upstream release.
* Welcome Michal Čihař as new co-maintainer.

[ Translations ]
* Vietnamese by Clytie Siddall (Closes: #427177).

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * usally called as form action from tbl_change.php to insert or update table rows
7
7
 *
8
 
 * @version $Id: tbl_replace.php 10305 2007-04-19 17:45:22Z lem9 $
 
8
 * @version $Id: tbl_replace.php 10355 2007-05-08 18:16:08Z cybot_tm $
9
9
 *
10
10
 * @todo 'edit_next' tends to not work as expected if used ... at least there is no order by
11
11
 *       it needs the original query and the row number and than replace the LIMIT clause
309
309
    } else {
310
310
        $result = PMA_DBI_query($single_query);
311
311
    }
312
 
    if (isset($GLOBALS['warning'])) {
313
 
        $warning_message .= $GLOBALS['warning'] . '[br]';
314
 
    }
 
312
    
315
313
    if (! $result) {
316
314
        $message .= PMA_DBI_getError();
317
315
    } else {
331
329
        }
332
330
        PMA_DBI_free_result($result);
333
331
    } // end if
 
332
 
 
333
    foreach (PMA_DBI_get_warnings() as $warning) {
 
334
        $warning_message .= $warning['Level'] . ': #' . $warning['Code'] 
 
335
            . ' ' . $warning['Message'] . '[br]';
 
336
    }
 
337
    
334
338
    unset($result);
335
339
}
336
340
unset($single_query, $query);