Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.41 and 1.42

version 1.41, 2002/12/22 20:37:14 version 1.42, 2002/12/24 16:47:36
Line 19 
Line 19 
  * http://www.platon.sk/projects/phpMyEdit/   * http://www.platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.40 2002/12/18 18:40:42 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.41 2002/12/22 20:37:14 nepto Exp $ */
   
 /*      phpMyEdit intro {{{ */  /*      phpMyEdit intro {{{ */
 /*  /*
Line 1694  function form_control(theForm)
Line 1694  function form_control(theForm)
                  * mysql_field_len() function. We will also fetch the first row to get                   * mysql_field_len() function. We will also fetch the first row to get
                  * the field names.                   * the field names.
                  */                   */
                 $res = $this->myquery($this->query_make($qparts), __LINE__);                  $query = $this->query_make($qparts);
                   $res   = $this->myquery($query, __LINE__);
                   if ($res == false) {
                           $this->error('invalid SQL query', $query);
                           return false;
                   }
                 $row = @mysql_fetch_array($res, MYSQL_ASSOC);                  $row = @mysql_fetch_array($res, MYSQL_ASSOC);
   
                 /*                  /*
Line 1704  function form_control(theForm)
Line 1709  function form_control(theForm)
                  * in the array parameter keyword 'filter'. Prepare the SQL WHERE clause.                   * in the array parameter keyword 'filter'. Prepare the SQL WHERE clause.
                  */                   */
   
                 if ($row !== false && $this->fl) {                  if ($row != false && $this->fl) {
                         echo '<tr>';                          echo '<tr>';
                         echo '<td colspan='.$sys_cols.' align="center">';                          echo '<td colspan='.$sys_cols.' align="center">';
                         echo '<input type="submit" name="filter" value="'                          echo '<input type="submit" name="filter" value="'
Line 1913  function form_control(theForm)
Line 1918  function form_control(theForm)
                 $first    = true;                  $first    = true;
                 $rowCount = 0;                  $rowCount = 0;
   
                 while ((!$fetched && ($row = @mysql_fetch_array($res, MYSQL_ASSOC)) !== false)                  while ((!$fetched && ($row = @mysql_fetch_array($res, MYSQL_ASSOC)) != false)
                                 || ($fetched && $row !== false)) {                                  || ($fetched && $row != false)) {
                         $fetched = false;                          $fetched = false;
   
                         echo '<tr class="'.(($rowCount++%2)?'pme_tr_o':'pme_tr_e')."\">\n";                          echo '<tr class="'.(($rowCount++%2)?'pme_tr_o':'pme_tr_e')."\">\n";
Line 2640  function form_control(theForm)
Line 2645  function form_control(theForm)
         /*          /*
          * Error handling function           * Error handling function
          */           */
         function error($message) /* {{{ */          function error($message, $additional_info = '') /* {{{ */
         {          {
                 echo '<h1>phpMyEdit error: '.htmlspecialchars($message).'</h1>'."\n";                  echo '<h1>phpMyEdit error: '.htmlspecialchars($message).'</h1>'."\n";
                   if ($additional_info != '') {
                           echo '<hr>'.htmlspecialchars($additional_info);
                   }
                 return false;                  return false;
         } /* }}} */          } /* }}} */
   

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top