Nasıl aşağıda örnekteki gibi bir şey görünüyor benim MySQL veritabanında listelenen bir alt kategoriden bir url değeri görüntülemek mümkün olacaktır?
index.php?cat=category&sub=sub-cat-1&sub2=sub-cat-2&sub3=sub-cat-3
Burada MySQL tablodur.
CREATE TABLE categories (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
parentID INT UNSIGNED NOT NULL DEFAULT 0,
categoryNAME TEXT NOT NULL,
PRIMARY KEY (id),
INDEX parent (parentID)
);
UPDATE: My end goal is to create a link to a sub category from a page that is associated with a parent category.
Example: I am on the "Auto Parts" page and I would like to display a link to the "Engine Parts", "Suspension Parts" and "Transmission Parts" pages.