Menu

#15 Deprecated: mysql_connect()

1.0
closed
nobody
None
2016-10-10
2016-07-15
No

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in public_html/fdata/validate.php on line 4

I can add @ in front to suppress the message and get the page to load. But what other php files do I need to add the @ to? Also, plans to use mysqli or PDO in the next release?

Discussion

  • Shawn J Davidson

    I think it was just these files btw:
    ./Harvest/harvestEdit.php
    ./Seeding/ghEdit.php
    ./Seeding/transEdit.php
    ./Seeding/dirEdit.php
    ./setup/validate.php
    ./Labor/laborEdit.php
    ./Notes/notesEdit.php
    ./connection.php
    ./Admin/Add/getUserExt.php
    ./Admin/Add/addExtUser.php
    ./Admin/Add/resetPassword.php
    ./Admin/Delete/tSpray.php
    ./Soil/fertilizerEdit.php
    ./Soil/liquidFertilizerEdit.php
    ./validate.php

     
  • Tim Wahls

    Tim Wahls - 2016-07-17

    Shawn,

    Sorry for the delay in responding - busy couple of days. Anyway, that is exactly the right list of 15 files that would need to have the annotation added to supress the warning.

    And we should update FARMDATA to use PDO - I've thought about it, but we haven't had a case where using the older style was causing issues for someone before. We also have a big list of requested features built up, so there is more than enough to do for another release. I'll try to recruit some students to work on it this fall - we are an all volunteer team, so progress is very bursty.

    Best,
    Tim

     
  • Tim Wahls

    Tim Wahls - 2016-10-10

    Shawn,

    I had more time than expected this semester, so FARMDATA is now updated to use PDO! I'm closing this ticket next.

     
  • Tim Wahls

    Tim Wahls - 2016-10-10
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB