Tag Archives: php 7.0

Deprecated Constructor in PHP Class

Still converting old PHP code and upgrading to PHP 7.0, I receive a message like this: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Validate_fields has a deprecated constructor … Continue reading

Posted in PHP | Tagged , , | Leave a comment

Change real_escape_string to mysqli_real_escape_string for Function safeEscapeString in PHP 7.0

This entry is part 1 of 2 in the series PHP Programming

I often use function safeEscapeString fromĀ  in my PHP projects. It helps sustain the integrity of data coming to and from MySQL or similar database. However, if the code ran on PHP 5.4 or 5.6 at the highest, and I … Continue reading

Posted in Programming, PHP | Tagged , , , , | Leave a comment