Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  phpMyedit is displaying double of every record

phpMyEdit Configuration     phpMyedit is displaying double of every record
Post new topic   Reply to topic    
 
Giba     Joined: 23 May 2012   Posts: 1  
Post Posted: 2012-05-23 19:28
Back to top  Reply with quote     

Hi,

I am having a problem with phpMyedit displaying duplicate rows for each and every record in the database.

I have had it working fine for a couple months, but just the other day it started to display each record in the database twice, as a duplicate. I have checked the database and there are only unique records in the db, but when phpMyedit displays them, it displays each records twice.

Any idea? Has anyone come across this before?

Help appreciated.
Jason

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2012-05-25 15:20
Back to top  Reply with quote     

I forget what causes this but most likely there is something wrong with your phpMyEdit script. You might want to post the code in the forum. Or comment out various options one at a time until the problem goes away.

 
nmtservice     Joined: 24 Aug 2012   Posts: 1  
Post Posted: 2012-08-24 16:21
Back to top  Reply with quote     

Sorry for bump back this old topic, but I'm facing same problem. I think my script code is wrong
Code:


$oc = "";

switch ($_SESSION['rol']) {
    //operario
    case 'OPERADOR':
        $estado = array(1,3,7,8);
        $filtro = "id IN (1,3,7,8)";
        break;
    //supervisor
    case 'SUPERVISOR':
        $estado = array(1 => 'CREADO',
            2 => 'APROBADO',
            3 => 'RECHAZADO',
            4 => 'CANCELADO',
            5 => 'EN ESPERA',
            7 => 'RECIBIDO PARCIAL',
            8 => 'TERMINADO');
        $filtro = "id IN (1,2,3,4,5,7,8)";
        break;
    //compras
    case 'ADMINISTRATIVO':
        $estado = array(1 => 'CREADO',
            3 => 'RECHAZADO',
            4 => 'CANCELADO',
            5 => 'EN ESPERA',
            6 => 'AUTORIZADO (OC)',
            7 => 'RECIBIDO PARCIAL',
            8 => 'TERMINADO');
        $filtro = "id IN (1,3,4,5,6,7,8)";
        $oc = "VA";
        break;
    //admin
    case 'ADMINISTRADOR':
        $estado = array(1 => 'CREADO',
            2 => 'APROBADO',
            3 => 'RECHAZADO',
            4 => 'CANCELADO',
            5 => 'EN ESPERA',
            6 => 'AUTORIZADO (OC)',
            7 => 'RECIBIDO PARCIAL',
            8 => 'TERMINADO');
        $filtro = "id IN (1,2,3,4,5,6,7,8)";
        $oc = "VA";
        break;
    default:
        $estado = array(1 => 'CREADO',
            3 => 'RECHAZADO',
            7 => 'RECIBIDO PARCIAL',
            8 => 'TERMINADO');
        break;
}
$unidades = array(
    '1' => 'Unidades',
    '2' => 'Kilogramos',
    '3' => 'gramos',
    '4' => 'Litros',
    '5' => 'miliLitros',
    '6' => 'centimetros',
    '7' => 'metros');

$opts['hn'] = 'localhost';
$opts['un'] = 'something';
$opts['pw'] = 'anotherthing';
$opts['db'] = 'entregas';
$opts['tb'] = 'rc_pedido';
$opts['key'] = 'id';
$opts['key_type'] = 'int';
$opts['sort_field'] = array('-id');
$opts['inc'] = 15;
$opts['options'] = 'ACVF';
$opts['multiple'] = '4';
$opts['navigation'] = 'DG';
$opts['buttons']['V']['up'] = array('cancel');
$opts['buttons']['V']['down'] = $opts['buttons']['V']['up'];
$opts['buttons']['L']['up'] = array('<<','<','add','change','>','>>','goto','goto_combo');
$opts['buttons']['L']['down'] = $opts['buttons']['L']['up'];
$opts['display'] = array(
   'form'  => true,
   'query' => false,
   'sort'  => false,
   'time'  => false,
   'tabs'  => false,
        'num_pages' => false,
        'num_records' => false
);
$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_';
$opts['language'] = 'ES-AR-utf8';
$opts['fdd']['id'] = array(
  'name|L'   => 'Numero:',
  'name'     => 'Requerimiento de Compra', 
  'select'   => 'T',
  'options'  => 'VPCDRL',
  'input'    => 'R', 
  'maxlen'   => '6' ,
  'size'     => '6',
//  'default'  => '0',
  'sort'     => true,
  'width'    => '25px'
);

$opts['fdd']['status_oc'] = array(
  'name'     => 'Estado',
  'select'   => 'T',
//  'options'  => 'AL', 
  'maxlen'   => 11,
  'sort'     => true,
  'required' => true,
  'default'  => 1,
  'nowrap'   => true,
);
$opts['fdd']['status_oc']['values']['table'] = 'rc_estado';
$opts['fdd']['status_oc']['values']['column'] = 'id';
$opts['fdd']['status_oc']['values']['description'] = 'estado';
$opts['fdd']['status_oc']['values']['filters'] = $filtro;

$opts['fdd']['OC'] = array(
  'name'     => 'OC SAP',
  'select'   => 'N',
  'sort'     => true,
  'required' => true,
  'options'  => $oc,
);

$opts['fdd']['articulo'] = array(
  'name'     => 'Articulo',
  'select'   => 'T',
  'maxlen'   => '60',
  'sort'     => true,
  'required' => true,
);

$opts['fdd']['articulo']['textarea']['rows'] = '2';
$opts['fdd']['articulo']['textarea']['cols'] = '40';

$opts['fdd']['cantidad'] = array(
  'name'     => 'Cantidad',
  'select'   => 'N',
  'maxlen'   => '11',
  'size'     => '6',
  'sort'     => true,
  'required' => true,
  'number_format' => array(2,",","."),

);
$opts['fdd']['cantidad']['js']['regexp'] = '/^[0-9]*$/';
$opts['fdd']['cantidad']['js']['hint'] = 'Debe ingresar un numero en Cantidad';

$opts['fdd']['unidad_med'] = array(
  'name|L'     => 'U.M.',
  'name'     => 'Unidad de Medida',
  'select'   => 'D',
  'maxlen'   => '11',
  'sort'     => true,
  'values2'   => $unidades, 
);

$opts['fdd']['fecha_crea'] = array(
  'name'     => 'Creado:',
  'select'   => 'T',
  'datemask' => 'Y-m-d', 
  'key_type' => 'date', 
  'maxlen'   => '15',
  'size'     => '6',
  'sort'     => true,
  'default'    => date('Y-m-d H:i:s')
);

$opts['fdd']['sector_ori'] = array(
  'name'     => 'Solicita:',
  'select'   => 'N',
  'maxlen'   => '15',
  'size'     => '6',
  'sort'     => true,
  'options'  => 'VA',
);
$opts['fdd']['sector_ori']['values']['table'] = 'rc_sectores';
$opts['fdd']['sector_ori']['values']['column'] = 'codigo';
$opts['fdd']['sector_ori']['values']['description'] = 'sector';


$opts['fdd']['sector_dest'] = array(
  'name'     => 'Destino:',
  'select'   => 'N',
  'maxlen'   => '15',
  'size'     => '6',
  'sort'     => true,

);
$opts['fdd']['sector_dest']['values']['table'] = 'rc_sectores';
$opts['fdd']['sector_dest']['values']['column'] = 'codigo';
$opts['fdd']['sector_dest']['values']['description'] = 'sector';


$opts['fdd']['legajo_crea'] = array(
  'name'     => 'Creado Por:',
  'select'   => 'T',
  'maxlen'   => '11',
  'size'     => '10', 
  'sort'     => true,
//  'default'  => $_SESSION['legajo'],
  'options'  => 'V' 
);

$opts['fdd']['legajo_crea']['values']['db']= 'entregas'; // optional
$opts['fdd']['legajo_crea']['values']['table'] = 'dbo_leg';
$opts['fdd']['legajo_crea']['values']['column'] = 'leg_numero';
$opts['fdd']['legajo_crea']['values']['description']['columns'][0] = 'leg_apellido';
$opts['fdd']['legajo_crea']['values']['description']['divs'][0] = ' ';
$opts['fdd']['legajo_crea']['values']['description']['columns'][1] = 'leg_nombre';
$opts['fdd']['legajo_crea']['values']['orderby'] = 'leg_apellido'; // optional ORDER BY clause
$opts['fdd']['legajo_crea']['values']['filters'] = 'leg_numero ="'.$_SESSION['legajo'].'"';


$opts['fdd']['fecha_mod'] = array(
  'name'     => 'Modificado:',
  'select'   => 'T',
  'maxlen'   => '10',
  'sort'     => true,
  'datemask' => 'dMY',
  'key_type' => 'date',
  'options'  => 'V'
);
$opts['fdd']['legajo_mod'] = array(
  'name'     => 'Modificado Por:',
  'select'   => 'T',
  'maxlen'   => '11',
  'default|A'  => $_SESSION['legajo'],
  'sort'     => true,
  'options'  => 'AV'
);
$opts['fdd']['legajo_mod']['values']['db']= 'entregas'; // optional
$opts['fdd']['legajo_mod']['values']['table'] = 'dbo_leg';
$opts['fdd']['legajo_mod']['values']['column'] = 'leg_numero';
$opts['fdd']['legajo_mod']['values']['description']['columns'][0] = 'leg_apellido';
$opts['fdd']['legajo_mod']['values']['description']['divs'][0] = ' ';
$opts['fdd']['legajo_mod']['values']['description']['columns'][1] = 'leg_nombre';
$opts['fdd']['legajo_mod']['values']['orderby'] = 'leg_apellido'; // optional ORDER BY clause
$opts['fdd']['legajo_mod']['values']['filters'] = 'leg_numero ="'.$_SESSION['legajo'].'"';

$opts['fdd']['observaciones'] = array(
  'name'     => 'Observaciones',
  'select'   => 'T',
  'maxlen'   => '100',
  'sort'     => true,
  'options'  => 'AV'
);
$opts['fdd']['observaciones']['textarea']['rows'] = 4;
$opts['fdd']['observaciones']['textarea']['cols'] = 40;

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


Any sugestions?

 
geekstation     Joined: 13 Sep 2021   Posts: 2248  
Post Posted: 2022-01-24 21:09
Back to top  Reply with quote     

That is thus gorgeous and also imaginative. I recently really like the particular shades and also anyone who receives that inside the email will probably be beaming. Packers and Movers Navi Mumbai

 
geekstation     Joined: 13 Sep 2021   Posts: 2248  
Post Posted: 2022-02-03 16:23
Back to top  Reply with quote     

thanks for the tips and information..i really appreciate it.. Packers and Movers Mumbai to Allahabad

 
123VEGA     Joined: 04 Feb 2022   Posts: 7  
Post Posted: 2022-02-04 07:38
Back to top  Reply with quote     

Canada's prime &#3621;&#3636;&#3591;&#3588;&#3660;&#3619;&#3633;&#3610;&#3607;&#3619;&#3633;&#3614;&#3618;&#3660; minister has said ALLBET sending in troops to &#3627;&#3623;&#3618;&#3611;&#3636;&#3591;&#3611;&#3629;&#3591; clear protesters from &#3611;&#3633;&#3656;&#3609;&#3626;&#3621;&#3655;&#3629;&#3605; the nation's capital is "not &#3626;&#3621;&#3655;&#3629;&#3605;123 in the cards right now". The city's police VIP123 chief had earlier PRAGMATIC PLAY refused to rule out &#3648;&#3621;&#3656;&#3609;&#3626;&#3621;&#3655;&#3629;&#3605; military &#3648;&#3585;&#3617;&#3626;&#3621;&#3655;&#3629;&#3605; intervention to remove &#3626;&#3641;&#3605;&#3619;&#3615;&#3619;&#3637;&#3626;&#3611;&#3636;&#3609; demonstrators.

 
schmele     Joined: 10 Oct 2022   Posts: 9  
Post Posted: 2023-05-15 11:58
Back to top  Reply with quote     

It's hard to find people who know a lot about this subject, but the truth is that it could be seen as do you know what you're doing? Thanks monkey mart

 
souyug     Joined: 26 Sep 2022   Posts: 8  
Post Posted: 2023-05-17 05:05
Back to top  Reply with quote     

free movies online is among the most popular and widely used free streaming website that allows you to watch movies, series and shows online without downloading. If you've been searching for a reliable and safe streaming site to watch content online, then you must use this website. A simple search on the internet will give you a list of hundreds of similar websites, but nothing matches the diverse collection and easy-to-use interface that this website provides.

You don't have to worry about anything while using this website because we share only the content which is available in the public domain. It is important to use legal streaming services and take measures to protect your devices and personal information online. This is why we will recommend you use this website to watch movies online for free without downloading and sign-up.

 
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