[SOLVED] Deprecated: Function eregi() is deprecated on line 367
I recently updated my PHP and now I am getting this error on Deprecated: Function eregi() is deprecated on line 367 in my bfa_ata_admin.
Here's the code echo ( eregi("color", $value['id']) ? 'class="color" ' : '' ) . 'name="' . $value['id'] . '" id="' . $value['id'] . '" type="' . $value['type'] . '" value="'; I've tried searching for the answer, but I can only hack some php.... so everything I try results in another error. If anyone has dealt with this and could help, I would really appreciate it. Thanks |
what did you update your PHP to? ie what version?
|
Thanks for the quick response Juggledad. I upgraded to PHP5
One of my friends got out of a meeting faster than I thought they would and they came up with this and it fixed it: $regx = "color"; echo ( preg_match("#$regx#i", $value['id']) ? 'class="color" ' : '' ) . 'name="' . $value['id'] . '" id="' . $value['id'] . '" type="' . $value['type'] . '" value="'; |
All times are GMT -6. The time now is 05:10 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.