Hello All
I just set up a simple wamp server for a client and PHP version 5.3.0 throws some errors and warnings with my code.
I'm asking if someone can verify that I made the proper fix:
Deprecated: Function ereg() is deprecated in C:\wamp\www\pos\classes\db_functions.php on line 417
Here is line 417:
if(ereg("\"<>",$data_to_check[$k]) or ereg("<",$data_to_check[$k]) or ereg(">",$data_to_check[$k]) )
I replaced this line with:
if(preg_match("/<>\"/",$data_to_check[$k]))
Did I get that right? Is there a better way? Thanks in advance for your help.
Regards
Russ