NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
db_mysql.inc for php7


Joined: 04 Apr 2019
Posts: 1
Reply with quote
I'm using the DB-FORM wizard which has worked fine for me in the past. Quick and Easy. I am now trying to generate a new form for use on mysql / php7 system. I note that I need to include the db_mysql.inc file which I have used from the library directory. The forms are failing as it appears the db_mysql.inc is making php5 calls instead of php7 mysqli coding. Does anyone have a replacement db_mysql.inc file that will work with php7 that they could share ?

Any help appreciated.

Thanks
View user's profileFind all posts by UyTRe128Send private message


Joined: 18 Mar 2019
Posts: 9
Location: Canada
Reply with quote
This library has not been updated since 2012. It uses MySQL extension which has been deprecated on PHP7 and soon removed. Instead it should use the replacement MysQLi.

This is a small library (80 lines), with the PHP reference manual at one side, it should not take more than 15 minutes to rewrite it to use MySQLi.

My point of view about those wizards most of them are outdated for modern PHP (DB wizard, NuSoap). The only ones that works for me are the project setup and the debugger wizard for obvious reason. If you look around on Github you will find some replacement for those outdated libraries.
View user's profileFind all posts by carloshSend private message
db_mysql.inc for php7
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic