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
Hey, I want to make a resources section where a company (eg: programmer/ webdesigners/ graphic artists) etc simple fill in a form with a little description of themselves and their website link, i then either approve or delete their post. If approved they should be added under that category and use

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 ho