Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS and extra info_pages


Guest

Recommended Posts

here is what I have

?>
$sts->start_capture();
$page_query = tep_db_query("select 
							   p.pages_id, 
							   p.sort_order,
							   p.status,
							   s.pages_title,
							   s.pages_html_text,
							   s.intorext,
							   s.externallink,
							   s.link_target  
							from 
							   " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id
							where 
							   p.pages_id = 8 
							and 
							   p.page_type != 1 
							and 
							   s.language_id = '" . (int)$languages_id . "'
							order by 
							   p.sort_order, s.pages_title");
$page = tep_db_fetch_array($page_query);
echo'<a target="'.$target.'" href="' . $page['externallink'] . '">' . $page['pages_title'] . '</a>';
echo'<a target="'.$target.'" href="' . tep_href_link(FILENAME_PAGES, 'pages_id=' .$page['pages_id'], 'NONSSL') . '">' . $page['pages_title'] . '</a>';
$sts->stop_capture('aboutusp');
?>

I will create a repeat the code for each of the pages but I don't know how to access the database to pull the pages name and id from the datbase using the correct language.

please help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...