need someone explain....thanks
Posted: Wed Apr 07, 2004 12:23 pm
table
--------------------
products= productid,name,author,description,price,category
category= categoryid,parentcategoryid,name,description
---------------------
code
--------
. . . html code. . .
. . . .
<?php
$database = "book";
$link = mysql_connect("localhost","root","password");
$x = mysql_select_db($database);
if(empty($category))
{
$category=1;
}
$childval = $category;
..the rest of code
what the coding here perform ???? is that the $category = variable from the table product (categery field) for counting any value inside or the statement $category = table category ? if so what = perform....???
--------------------
products= productid,name,author,description,price,category
category= categoryid,parentcategoryid,name,description
---------------------
code
--------
. . . html code. . .
. . . .
<?php
$database = "book";
$link = mysql_connect("localhost","root","password");
$x = mysql_select_db($database);
if(empty($category))
{
$category=1;
}
$childval = $category;
..the rest of code
what the coding here perform ???? is that the $category = variable from the table product (categery field) for counting any value inside or the statement $category = table category ? if so what = perform....???