Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 19. apríl 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  phpMyEdit uses deprecated mysql functions

phpMyEdit General     phpMyEdit uses deprecated mysql functions
Odoslať novú tému   Odpovedať na tému    
 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-10-14 10:06
Návrat hore  Odpovedať s citátom     

All mysql functions are deprecated since PHP 5.5 and are going to be removed in PHP 7.

e.g. http://php.net/manual/en/function.mysql-fetch-array.php

Can someone share a new version of phpMyEdit.class.php that uses available functions?

Thanks,

Atara.

 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-11-02 10:54
Návrat hore  Odpovedať s citátom     

[but I did not find a way to upload it here :( ]


- changed lines are marked as "PDO"
- function-names were changed iff function parameters were changed
- I did not find simple solution to replace the function sql_field_len(), so it is recommended to declare 'maxlen' option for (['select'] == 'N' || ['select'] == 'T')

 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-11-02 11:22
Návrat hore  Odpovedať s citátom     

you can download the file from the bug report -

http://opensource.platon.org/projects/bug_view_advanced_page.php?f_bug_id=782


please add here your comments\improvements

Thanks

Atara

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2015-11-02 16:27
Návrat hore  Odpovedať s citátom     

Maybe this will help:
http://php.net/manual/en/mysqli-result.lengths.php

Though in the class file I find sql_field_len is only used with function filter_heading() and only when 'select' is either N or T.

I cannot remember why I hacked my function filter_heading() and set
//$maxlen > 0 || $maxlen = intval($this->sql_field_len($res, $fields["qf$k"]));
$maxlen > 0 || $maxlen = 500;

 
JacobPoupinel     Založený: 27.07.2020   Príspevky: 1  
Príspevok Zaslal: 2020-07-27 08:14
Návrat hore  Odpovedať s citátom     

A project of the spencer is expanding and becoming wider for the entire world. the changes of the spencer and livecareer reviews are likely introduced for the fixing of the goals. The margin is placed for the structured argument for the project of the spencer.

 
noahcentineo     Založený: 03.12.2020   Príspevky: 3  
Príspevok Zaslal: 2020-12-03 11:06
Návrat hore  Odpovedať s citátom     

Pictures that depict the life and soul of each person. That's why learning how to draw is a good way. easy how to draw

 
deanhobbs312     Založený: 09.09.2022   Príspevky: 1  
Príspevok Zaslal: 2022-09-09 07:00
Návrat hore  Odpovedať s citátom     

Find the best Child Education Franchises in Canada. Simply browse our directory to find your ideal franchise or business opportunity.

 
DAvidjohn456     Založený: 11.07.2022   Príspevky: 26  
Príspevok Zaslal: 2023-02-25 07:40
Návrat hore  Odpovedať s citátom     

you could also consider using a different library for interacting with your MySQL databases that is built on top of the mysqli extension incredibox or the newer PDO extension. Both of these extensions provide improved security and support for modern PHP features.

 
khatrimaza     Založený: 30.04.2023   Príspevky: 7  
Príspevok Zaslal: 2023-04-30 17:00
Návrat hore  Odpovedať s citátom     

khatrimaza one of the best free movie download site that curates movies, independent films, TV shows, and stand-up comedy videos.

 
tedharold     Založený: 20.09.2023   Príspevky: 2  
Príspevok Zaslal: 2023-09-21 01:58
Návrat hore  Odpovedať s citátom     

heardle is an extremely attractive game. In the game you will hear a short piece of music and your task is to guess which song it belongs to. The game will challenge your memory as well as your musical feelings.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov