Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] Deprecated: Function eregi() is deprecated on line 367 (http://forum.bytesforall.com/showthread.php?t=17079)

briancolin Mar 21, 2012 07:50 AM

[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

juggledad Mar 21, 2012 07:52 AM

what did you update your PHP to? ie what version?

briancolin Mar 21, 2012 08:00 AM

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:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.