Newbie Help needed...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
philpinkfish
Forum Newbie
Posts: 2
Joined: Thu Sep 18, 2008 5:11 am

Newbie Help needed...

Post by philpinkfish »

Hello all,

Well I'm very new to PHP, I'm a webdesigner/Graphic designer and I've discovered a love for programming :) I've been reading loads and I'm getting the hang of things now, however I've just been given a project that has me stumped...

I'm importing a tab delimited .dat file which contains a numerically indexed multidimensional array (I think), I can get the thing to display in order and even style the results, but thats about it...here's the thing, I need to group the contents by code which is the first set of letters/numbers (10 length) then display parts according to different queries so here's a sample:



XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 1 RED - XS
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 2 RED - S
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 3 RED - M
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 4 RED - L
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 5 RED - XL
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 6 RED - XXL
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 7 RED - XXXL
XFRT52CR WOMENS PROTEX VILOFT L/ Y N 2 1 8 RED - XXXXL
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 1 WHITE - XS
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 2 WHITE - S
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 3 WHITE - M
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 4 WHITE - L
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 5 WHITE - XL
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 6 WHITE - XXL
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 7 WHITE - XXXL
XUTO3W MENS ULTRATHERM LONG PANTS Y N 1 1 8 WHITE - XXXXL

It all looks so straight forward, but I can't find the answer, please some help or pointers would be great!
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Newbie Help needed...

Post by panic! »

Have you thought about importing this into a mysql database?
philpinkfish
Forum Newbie
Posts: 2
Joined: Thu Sep 18, 2008 5:11 am

Re: Newbie Help needed...

Post by philpinkfish »

Hi thanks for the reply

I'll look into that, it would certainly make sorting it easier.
Post Reply