Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

print category name


airdee

Recommended Posts

Posted

Hi all I would like ask how to print the query below? It gives me an Resource id #106 output and if I attach tep_db_array it gives me the word Array output. Please help and thank you very much.

<?php

if(isset($_GET['cPath'])) $cpath1=$_GET['cPath'];

$getcategories = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $cpath1 . "'");

echo $getcategories;

?>

" There are two things to aim at in life; first to get what you want, and after that to enjoy it. Only the wisest of mankind has achieved the second. " -Logan Pearsall Smith \m/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...