I got a bizarre problem. Has PHP made any recent new releases?
I have this program (e-commerce) and I exported the final .sql file using phpMyAdmin.
I use this simple code during the install to setup the database.
$filename = './install/icart.sql';
$fd = fopen($filename, "r");
$contents = fread($fd, filesize($filename));
$sql_array = explode(";\r\n", $contents);
$i = 0;
while($i < count($sql_array)) {
$sql = $sql_array[$i];
mysql_query($sql, $mysql_link);
echo $sql_array[$i]."<br><br><br><br>";
$i++;
}
It puts everything in there ok, but when I go to the storefront and click on a category, no products show up.
BUUUUT, if I take that same sql file that I am parsing with the script above and run it in the phpMyAdmin SQL, then I go to the storefront, and click on a category, everything shows up.
WHAT'S the dileo?
The part that is killing me is that everything was working about two weeks ago, noone has made any changes, and now it's doing this.
Any suggestions?