не в кассуheader("Content-type: text/html; charset=utf-8");
include "$_SERVER[DOCUMENT_ROOT]/include/convert.inc";
$sql = "SELECT * FROM ".T_THEMES." WHERE (id=$_GET[id]) ORDER BY theme ASC";
$db_q = connect->query($sql);
if (!$db_q) {
new Error("Ошибка выборки информации о теме");
}
else {
while ($aTheme = $db_q->fetch_assoc()) {
$aThemes[] = array('id_parent' => $aTheme['id_parent'],'theme' => convertToCP1251($aTheme['theme']),'description' => convertToCP1251($aTheme['description']));
}
}
echo json_encode($aThemes);
и там и тамне в кассу
KOLANICH
у тебя кирилица в запросе или json ответе?
$arr = Strip($_REQUEST['data']);
function Strip($value)
{
if(get_magic_quotes_gpc() != 0)
{
if(is_array($value))
if ( array_is_associative($value) )
{
foreach( $value as $k=>$v)
$tmp_val[$k] = stripslashes($v);
$value = $tmp_val;
}
else
for($j = 0; $j < sizeof($value); $j++)
$value[$j] = stripslashes($value[$j]);
else
$value = stripslashes($value);
}
return $value;
}
function array_is_associative ($array)
{
if ( is_array($array) && ! empty($array) )
{
for ( $iterator = count($array) - 1; $iterator; $iterator-- )
{
if ( ! array_key_exists($iterator, $array) ) { return true; }
}
return ! array_key_exists(0, $array);
}
return false;
}