[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)
category2(24)
category3(54)
etc

the number in brackets at the side of the category says how many records

I downloaded PHPlinks but have been unable to understand it.
Another good place that i visited was
http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
and even searched on google but cant find much.

Any help appreciated.

Thanks,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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)
  category2(24)
  category3(54)
  etc

  the number in brackets at the side of the category says how many records

  I downloaded PHPlinks but have been unable to understand it.
  Another good place that i visited was
  http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
  and even searched on google but cant find much.

  Any help appreciated.

  Thanks,
  -Ryan

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.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()) {
$count += count_content($cat_id2);
}
return $count;
}
Ryan A wrote:
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)
category2(24)
category3(54)
etc
the number in brackets at the side of the category says how many records

I downloaded PHPlinks but have been unable to understand it.
Another good place that i visited was
http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
and even searched on google but cant find much.
Any help appreciated.

Thanks,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 users can come and
browse etc to the category they want.

So to answer your question, i guess just a similar menu system.

Any ideas?

Thanks,
-Ryan



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 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)
  category2(24)
  category3(54)
  etc

  the number in brackets at the side of the category says how many
records

  I downloaded PHPlinks but have been unable to understand it.
  Another good place that i visited was

http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
  and even searched on google but cant find much.

  Any help appreciated.

  Thanks,
  -Ryan

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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()) {
   $count += count_content($cat_id2);
   }
   return $count;
 }
 
 Ryan A wrote:
  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)
  category2(24)
  category3(54)
  etc
  
  the number in brackets at the side of the category
 says how many records
  
  I downloaded PHPlinks but have been unable to
 understand it.
  Another good place that i visited was
 

http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
  and even searched on google but cant find much.
  
  Any help appreciated.
  
  Thanks,
  -Ryan
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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://scripts.webmastersite.net/wsnlinks/index.php?section=features which
has pretty much all i need.. so i think i'll buy it.
If you go there i think you will agree that the script is pretty cheap for
its features...and the other nice part is knowing that i'll be supporting a
fellow programmer.

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php