The message "use mysqli or PDO instead" is optional or mandatory

0

A while ago I transferred a website that works with smarty to another hosting and since it happened there was a section of the front-end that did not work well. Some change was made and it was solved, or apparently that seemed.

The fact is that you have a form to publish properties in the back-end and the other day inserting a new one, we realized that one of the checkboxes was not modifying the value in the database.

Enter the Database and change the value by hand. Since then, the form to insert new properties has stopped working. Click on the link to insert a new one and reload the page. However, if I can use it to modify existing properties. It even lets me use the check that I was not paying attention to before.

I suspect that it may be because of the PHP version, it has to be at least 5.5 and currently works with 5.6. I have activated display_errors and the error is coming up: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead. I have been changing to mysqli all the functions that have been coming out to me (mysql_connect, query, error) but still do not let me enter the form to insert.

Do you think that those messages from use mysqli or PDO are the reason why it does not work for me? Do I go back to a copy with the mysql functions or do I leave them with mysqli?

    
asked by Crash_RPM 19.10.2018 в 20:52
source

0 answers