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  »  phpMyEdit uses deprecated mysql functions

phpMyEdit General     phpMyEdit uses deprecated mysql functions
Post new topic   Reply to topic    
 
Atara.H     Joined: 23 Jul 2014   Posts: 11  
Post Posted: 2015-10-14 10:06
Back to top  Reply with quote     

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     Joined: 23 Jul 2014   Posts: 11  
Post Posted: 2015-11-02 10:54
Back to top  Reply with quote     

[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     Joined: 23 Jul 2014   Posts: 11  
Post Posted: 2015-11-02 11:22
Back to top  Reply with quote     

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     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2015-11-02 16:27
Back to top  Reply with quote     

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;

 
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