Discussion:
hotscripts style program
Ryan A
2003-10-04 13:28:13 UTC
Permalink
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
Nathan Taylor
2003-10-04 13:39:29 UTC
Permalink
Are you looking to make a new HotScripts style website or just a similar menu system?
----- Original Message -----
From: Ryan A
To: php-***@lists.php.net
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
Ryan A
2003-10-04 14:12:02 UTC
Permalink
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
Post by Nathan Taylor
Are you looking to make a new HotScripts style website or just a similar menu system?
----- Original Message -----
From: Ryan A
To: php-***@lists.php.net
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
Marek Kilimajer
2003-10-04 13:52:30 UTC
Permalink
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;
}
Post by Ryan A
Hey,
Anybody have any code or links to explain how to make a program like the one
running on hotscripts?
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
olinux
2003-10-04 19:03:49 UTC
Permalink
here's a decent article outlining how to build a
directory. including code samples:
http://www.webreference.com/perl/xhoo/php1/

olinux
Post by Marek Kilimajer
// 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;
}
Post by Ryan A
Hey,
Anybody have any code or links to explain how to
make a program like the one
Post by Ryan A
running on hotscripts?
when you visit there you have a couple of
categories like : ASP, JAVA, PHP
Post by Ryan A
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....
Post by Ryan A
I downloaded PHPlinks but have been unable to
understand it.
Post by Ryan A
Another good place that i visited was
http://www.hotscripts.com/PHP/Scripts_and_Programs/Software_Repository/index.html
Post by Marek Kilimajer
Post by Ryan A
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
Ryan A
2003-10-04 19:19:40 UTC
Permalink
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
Continue reading on narkive:
Loading...