") { $temp = substr($line, 18, 1); $sth = mysql_query("SELECT id, name, description, prices, price1desc, price1, price2desc, price2 FROM $mtable WHERE category = \"$temp\" ORDER BY id", $dbh); while ($row = mysql_fetch_row($sth)) { for ($i=0; $i < sizeof($row); $i++) { $row[$i] = ereg_replace("\\\\\"", "\"", $row[$i]); $row[$i] = ereg_replace("\\\\\'", "\'", $row[$i]); $row[$i] = ereg_replace("\\\\\\\\", "\\", $row[$i]); } if ($row[3] > 1) { echo "
$row[4]