|
| ||
MrGrimm
|
Requesting Help [PHP] | |
|
Hey guys, I've been having a tough time figuring this out. Right now, I have a .txt file with article entries inside it. I want a script to read each entry, and echo it to the browser, but I want it to stop echoing to the browser when it echoes 10 entries. Here's what I have so far:
The script I made obviously doesn't work. | ||
quote quick quote edit quick edit del posts in thread report
| ||
bobbonewmoderator
Action [PSX] Adventure / Strategy [PSX] General Playstation RPG [PSX] Sports and Racing [PSX] ![]() since: Dec 2002 |
re: Requesting Help [PHP] | |
|
Here ya go buddy. Its a little more than you asked for as it has built in error checking so you don't try to loop stuff if nothing exists. Its untested but looks pretty clean.
| ||
quote quick quote edit quick edit del posts in thread report
| ||
MrGrimm
|
re: Requesting Help [PHP] | |
|
Thanks Bobbo!
![]() It didn't work at first, but I changed line "while($key < $total)" to "while($key < $limit)" and it worked. | ||
quote quick quote edit quick edit del posts in thread report
| ||
Dragooon
|
re: Requesting Help [PHP] | |
|
Here's another :
| ||
quote quick quote edit quick edit del posts in thread report
| ||
asdf
|
re: Requesting Help [PHP] | |
|
Peer pressure
| ||
quote quick quote edit quick edit del posts in thread report
| ||
bobbonewmoderator
Action [PSX] Adventure / Strategy [PSX] General Playstation RPG [PSX] Sports and Racing [PSX] ![]() since: Dec 2002 |
re: Requesting Help [PHP] | |
quote MrGrimm Woops yepp that would do it. Was a very long day for me yesterday ------------------- ![]() | ||
quote quick quote edit quick edit del posts in thread report
| ||
| [All dates in (PT) time] | Threads List « Next Newest Next Oldest » | |
Powered by neoforums v0.9.7g (equilibrium)
Copyright Neo Era Media, Inc. 1999-2009