Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Sep 2000
Posts: 3
uh ahr, im a little confused about how knowing the amount of rows would help, ill try explaning in a little more detail:

if i had;
19|1|9/5/00
18|2|9/5/00
17|5|9/5/00
16|4|9/5/00
15|4|9/5/00
14|1|8/5/00
13|3|7/5/00
12|2|5/5/00
11|6|5/5/00
10|5|5/5/00
9|5|5/5/00
8|4|5/5/00
7|6|4/5/00
6|1|3/5/00
5|4|2/5/00
4|2|2/5/00
3|1|2/5/00
2|1|2/5/00
1|1|1/5/00

i would want my script to dismiss all of the lines except 19 (as that is the most recent post in column 1), 18 (most recent in 2), 13 (most recent in 3) 16 (most recent in 4), 17 (most recent in 5), 11 (most recent in 6)

i would then define those lines as something like:
($posted, $category, $date) = split(/|/,$line);
(well line 19 as $1date, 18 $2date, 13 $3date etc..)
therefore i would be looking for some type of script that would let me search from the top for the first 1 in the second column (in this case it is line 19) and use that line so i can then use that line to difine the 3rd column as $1date to use it as "last posted in" for column 1.
----------------------------

i could gain the same effect is i knew how to overwrite a file with a new one (or delete a file then replace it with one of the same name) however i presume that would use more sever processorage (i doubt it will be alot but i am using a UBB on netfirms so id rather use a very little as possible)

------------------
Please clean my floor

Sponsored Links
Entire Thread
Subject Posted By Posted
finding the highest number in a .dat file Humpty Dumpty 09/13/2000 9:59 PM
Re: finding the highest number in a .dat file zanardi 09/13/2000 11:00 PM
Re: finding the highest number in a .dat file Humpty Dumpty 09/13/2000 11:49 PM
Re: finding the highest number in a .dat file The Team 09/14/2000 2:07 AM
Re: finding the highest number in a .dat file Mark Badolato 09/14/2000 3:20 AM
Re: finding the highest number in a .dat file The Team 09/14/2000 3:23 AM
Re: finding the highest number in a .dat file Humpty Dumpty 09/14/2000 5:00 AM
Re: finding the highest number in a .dat file Mark Badolato 09/14/2000 6:27 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)