Pessoal,
Tenho a seguinte ficheiro que não funciona em sistema Macintosh... não percebo porque, aparece tudo vazio... penso que será a query...
<?php
require('includes/application_top.php');
$infopageid = (int)$HTTP_GET_VARS['pages_id'];
$page_query = tep_db_query("select
p.pages_id,
p.status,
s.pages_title,
s.pages_html_text
from
" . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id
where
s.language_id = '" . (int)$languages_id . "'
and
p.pages_id = $infopageid");
$page_check = tep_db_fetch_array($page_query);
$breadcrumb->add($page_check[pages_title], tep_href_link('extra_info_pages2.php?pages_id=' . $infopageid));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" style="width:940px;" align="center">
<tr>
<td valign="top" style="background-color:#335c86;">
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
</td>
<!-- body_text //-->
<td width="100%" class="col_center">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#FFFFFF"><?php echo stripslashes("$page_check[pages_html_text]"); ?>
</td></tr>
</table></td>
</tr>
</table>
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>