 |
Products
$username="pianoa5_pianoa5";
$password="051089";
$database="pianoa5_images";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM catalog_catagories";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$cid=mysql_result($result,$i,"cid");
$title=mysql_result($result,$i,"title");
$photo=mysql_result($result,$i,"photo");
echo " $title |
| ";
$i++;
}
?>

|