Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi there,
I'm PHP beginner and I'm stucked due to one problem.
I want to create menu with categories and their subcategories.
HTML:
[syntax="html"]<li>
<a href="/cat/tshirts">T-shirts</a>
<ol>
<li><a href="/cat/tshirts/with-long-sleeve">with long sleeve</a></li>
<li><a href="/cat/tshirts/poloshirts">poloshirts</a></li>
</ol>
</li>Code: Select all
`category` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(30) default NULL,
`subid` int(11) NOT NULL default '0', // If not 0, it's subcategory of 'id'
PRIMARY KEY (`kid`)
)
Could anybody help me with some clean, basic solution? Thanks.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]