[PHP] hotscripts style program (conclusion)

2003-10-04 Thread Ryan A
Hey all, Thanks to everyone who replied. I did a couple more searches on google and found that i was using the wrong search words, after visiting quite a few sites i saw that what i was looking for is called a "link farm" (would never have guessed that in a million years), got a nice link to http:

Re: [PHP] hotscripts style program

2003-10-04 Thread olinux
here's a decent article outlining how to build a directory. including code samples: http://www.webreference.com/perl/xhoo/php1/ olinux --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > You need to create a recursive function: > > // pseudo code > function count_content($cat_id) { > SELECT

Re: [PHP] hotscripts style program

2003-10-04 Thread Ryan A
AIL PROTECTED] Sent: Saturday, October 04, 2003 9:28 AM Subject: [PHP] hotscripts style program Hey, Anybody have any code or links to explain how to make a program like the one running on hotscripts? eg: when you visit there you have a couple of categories like : ASP, JAVA, PHP

Re: [PHP] hotscripts style program

2003-10-04 Thread Marek Kilimajer
You need to create a recursive function: // pseudo code function count_content($cat_id) { SELECT COUNT(*) FROM content WHERE cat_id='$cat_id' $count=sql_result(); SELECT cat_id FROM categories WHERE cat_id='$cat_id' while($cat_id2 = sql_result()) { $

Re: [PHP] hotscripts style program

2003-10-04 Thread Nathan Taylor
Are you looking to make a new HotScripts style website or just a similar menu system? - Original Message - From: Ryan A To: [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 9:28 AM Subject: [PHP] hotscripts style program Hey, Anybody have any code or links to explain

[PHP] hotscripts style program

2003-10-04 Thread Ryan A
Hey, Anybody have any code or links to explain how to make a program like the one running on hotscripts? eg: when you visit there you have a couple of categories like : ASP, JAVA, PHP etc (if you select php) PHP --Scripts --Books --tutorials (if you select scripts) --Scripts category1(324)