I'm testing my script in PHP 5.5, works perfectly until I switch from MySQL to MySQLi.
Error:
Stack trace:
#0 C:\xampp\htdocs\url_rewrite.php(52): tep_db_fetch_array(NULL)
#1 C:\xampp\htdocs\url_rewrite.php(106): transform_uri(Array)
#2 [internal function]: wrap_href(Array)
#3 C:\xampp\htdocs\url_rewrite.php(12): preg_replace_callback('/(<[Aa][ ???]{1...', 'wrap_href', '<!DOCTYPE html>...')
#4 [internal function]: callback('<!DOCTYPE html>...', 9)
#5 {main}
Line 52 of url_rewrite:
$cat_Q = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $value . "' and c.categories_id = cd.categories_id");
I'm not sure what I should be doing differently here. As mentioned, the script works without issue on MySQL.
Any help would be greatly appreciated!