Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  ALL FIELDS NOT UPDATING

phpMyEdit General     ALL FIELDS NOT UPDATING
Post new topic   Reply to topic    
 
plettpc     Joined: 16 Jan 2009   Posts: 3  
Post Posted: 2009-01-17 12:26
Back to top  Reply with quote     

Firstly, Thanks for the great App.

I have a simple table: ie names, ident #, address, etc

On edit I can only change certain fields, other flatly refuse to change,

On mysql logging> the query generated does not include the changes, only for those certain Feilds,
> 27 Query UPDATE `OU_AREA` SET >`ERF`='2',`surname`='JONES',`names`='MONTY',`ID`='2',`address`='2 >ELANDSDRIF',`postal`='2 ELANDSDRIF',`Home tel`='',`

On trying to change ie: Home tel the query remains blank.

PLs assist for my lack of understanding, I have checked the code and all looks OK. Field structures seem similar.

TAI
Wayne

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2009-01-17 13:37
Back to top  Reply with quote     

Please post the code from your form.

 
plettpc     Joined: 16 Jan 2009   Posts: 3  
Post Posted: 2009-01-17 13:40
Back to top  Reply with quote     

doug wrote:
Please post the code from your form.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>OU_AREA</title>
<style type="text/css">
   hr.pme-hr           { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
   table.pme-main         { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
   table.pme-navigation { border: #004d9c 0px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
   td.pme-navigation-0, td.pme-navigation-1 { white-space: nowrap; }
   th.pme-header        { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
   td.pme-key-0, td.pme-value-0, td.pme-help-0, td.pme-navigation-0, td.pme-cell-0,
   td.pme-key-1, td.pme-value-1, td.pme-help-0, td.pme-navigation-1, td.pme-cell-1,
   td.pme-sortinfo, td.pme-filter { border: #004d9c 1px solid; padding: 3px; }
   td.pme-buttons { text-align: left;   }
   td.pme-message { text-align: center; }
   td.pme-stats   { text-align: right;  }
</style>
</head>
<body>
<h3>OU_AREA</h3>
<?php

/*
* IMPORTANT NOTE: This generated file contains only a subset of huge amount
* of options that can be used with phpMyEdit. To get information about all
* features offered by phpMyEdit, check official documentation. It is available
* online and also for download on phpMyEdit project management page:
*
* http://platon.sk/projects/main_page.php?project_id=5
*
* This file was generated by:
*
*                    phpMyEdit version: unknown
*       phpMyEdit.class.php core class: unknown
*            phpMyEditSetup.php script: 1.50
*              generating setup script: 1.50
*/

// MySQL host name, user name, password, database, and table
$opts['hn'] = 'localhost';
$opts['un'] = 'wayne';
$opts['pw'] = 'ch00thig';
$opts['db'] = 'krans';
$opts['tb'] = 'OU_AREA';

// Name of field which is the unique key
$opts['key'] = 'ERF';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'int';

// Sorting field(s)
$opts['sort_field'] = array('ERF');

// Number of records to display on the screen
// Value of -1 lists all records in a table
$opts['inc'] = 15;

// Options you wish to give the users
// A - add,  C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
$opts['options'] = 'ACVF';

// Number of lines to display on multiple selection filters
$opts['multiple'] = '4';

// Navigation style: B - buttons (default), T - text links, G - graphic links
// Buttons position: U - up, D - down (default)
$opts['navigation'] = 'UG';

// Display special page elements
$opts['display'] = array(
   'form'  => true,
   'query' => true,
   'sort'  => true,
   'time'  => true,
   'tabs'  => true
);

// Set default prefixes for variables
$opts['js']['prefix']               = 'PME_js_';
$opts['dhtml']['prefix']            = 'PME_dhtml_';
$opts['cgi']['prefix']['operation'] = 'PME_op_';
$opts['cgi']['prefix']['sys']       = 'PME_sys_';
$opts['cgi']['prefix']['data']      = 'PME_data_';

/* Get the user's default language and use it if possible or you can
   specify particular one you want to use. Refer to official documentation
   for list of available languages. */
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8';

/* Table-level filter capability. If set, it is included in the WHERE clause
   of any generated SELECT statement in SQL query. This gives you ability to
   work only with subset of data from table.

$opts['filters'] = "column1 like '%11%' AND column2<17";
$opts['filters'] = "section_id = 9";
$opts['filters'] = "PMEtable0.sessions_count > 200";
*/

/* Field definitions
   
Fields will be displayed left to right on the screen in the order in which they
appear in generated list. Here are some most used field options documented.

['name'] is the title used for column headings, etc.;
['maxlen'] maximum length to display add/edit/search input boxes
['trimlen'] maximum length of string content to display in row listing
['width'] is an optional display width specification for the column
          e.g.  ['width'] = '100px';
['mask'] a string that is used by sprintf() to format field output
['sort'] true or false; means the users may sort the display on this column
['strip_tags'] true or false; whether to strip tags from content
['nowrap'] true or false; whether this field should get a NOWRAP
['select'] T - text, N - numeric, D - drop-down, M - multiple selection
['options'] optional parameter to control whether a field is displayed
  L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
            Another flags are:
            R - indicates that a field is read only
            W - indicates that a field is a password field
            H - indicates that a field is to be hidden and marked as hidden
['URL'] is used to make a field 'clickable' in the display
        e.g.: 'mailto:$value', 'http://$value' or '$page?stuff';
['URLtarget']  HTML target link specification (for example: _blank)
['textarea']['rows'] and/or ['textarea']['cols']
  specifies a textarea is to be used to give multi-line input
  e.g. ['textarea']['rows'] = 5; ['textarea']['cols'] = 10
['values'] restricts user input to the specified constants,
           e.g. ['values'] = array('A','B','C') or ['values'] = range(1,99)
['values']['table'] and ['values']['column'] restricts user input
  to the values found in the specified column of another table
['values']['description'] = 'desc_column'
  The optional ['values']['description'] field allows the value(s) displayed
  to the user to be different to those in the ['values']['column'] field.
  This is useful for giving more meaning to column values. Multiple
  descriptions fields are also possible. Check documentation for this.
*/

$opts['fdd']['ERF'] = array(
  'name'     => 'ERF',
  'select'   => 'T',
  'maxlen'   => 4,
  'sort'     => true
);
$opts['fdd']['surname'] = array(
  'name'     => 'Surname',
  'select'   => 'T',
  'maxlen'   => 10,
  'sort'     => true
);
$opts['fdd']['names'] = array(
  'name'     => 'Names',
  'select'   => 'T',
  'maxlen'   => 15,
  'sort'     => true
);
$opts['fdd']['ID'] = array(
  'name'     => 'ID',
  'select'   => 'T',
  'maxlen'   => 13,
  'sort'     => true
);
$opts['fdd']['address'] = array(
  'name'     => 'Address',
  'select'   => 'T',
  'maxlen'   => 25,
  'sort'     => true
);
$opts['fdd']['postal'] = array(
  'name'     => 'Postal',
  'select'   => 'T',
  'maxlen'   => 25,
  'sort'     => true
);
$opts['fdd']['Home tel'] = array(
  'name'     => 'Home tel',
  'select'   => 'T',
  'maxlen'   => 10,
  'sort'     => true
);
$opts['fdd']['Cell no'] = array(
  'name'     => 'Cell no',
  'select'   => 'N',
  'maxlen'   => 10,
  'sort'     => true
);
$opts['fdd']['status'] = array(
  'name'     => 'Status',
  'select'   => 'T',
  'maxlen'   => 6,
  'sort'     => true
);
$opts['fdd']['NOTES'] = array(
  'name'     => 'NOTES',
  'select'   => 'T',
  'maxlen'   => 80,
  'sort'     => true
);
$opts['fdd']['SPOUSE ID'] = array(
  'name'     => 'SPOUSE ID',
  'select'   => 'T',
  'maxlen'   => 13,
  'sort'     => true
);
$opts['fdd']['No of DEP.'] = array(
  'name'     => 'No of DEP ',
  'select'   => 'T',
  'maxlen'   => 2,
  'sort'     => true
);
$opts['fdd']['Com INCOME'] = array(
  'name'     => 'Com INCOME',
  'select'   => 'T',
  'maxlen'   => 6,
  'sort'     => true
);
$opts['fdd']['SPOUSE NAME'] = array(
  'name'     => 'SPOUSE NAME',
  'select'   => 'T',
  'maxlen'   => 20,
  'sort'     => true
);

// Now important call to phpMyEdit
require_once 'phpMyEdit.class.php';
new phpMyEdit($opts);

?>


</body>
</html>



 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2009-01-17 14:15
Back to top  Reply with quote     

Let me guess ... spaces exist in the names of the fields where the values cannot be changed.

IMHO, names of everything in MySQL (database, table, or field) should be in lower case letters and comprised of a-z and/or 0-9 and the underscore character (no space characters). Hyphens should never be used even though they are technically legal, and names cannot begin with a numeric digit.

Further opinions: http://www.hockinson.com/index.php?s=36

 
plettpc     Joined: 16 Jan 2009   Posts: 3  
Post Posted: 2009-01-17 16:08
Back to top  Reply with quote     

doug wrote:
Let me guess ... spaces exist in the names of the fields where the values cannot be changed.

/index.php?s=36[/url]


FIXED:: That was exactly the problem, FOR Reference the following also does not work>> A_B_C << only A_B.

Thank-you very much for your instant reply, could this not become a sticky,, Admins????

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy