You are here: Re: 2D Matrix in php. « All PHP « IT news, forums, messages
Re: 2D Matrix in php.

Posted by Martin Jay on 05/16/06 01:24

In message <4468f827$0$712$5fc3050@dreader2.news.tiscali.nl>, Winston S.
Figueira <pneumatosppm@tiscali.nl> writes
>I need a script to make and control/ manipulate a
>matrix = 100/autoexpand rows by 30/fixed columns, in php or ?
>Some details:
>First column= c1 is "name", (usually a number, 5digits) all other columns
>are calender dates or numerical, 5digits.
>3 Blocks of 4 columns-in-row will have a "shift and loose details".
>Example: colums c13-c14-c15-c16 are a block.
>When data is to be entered into c13, first, all data is moved/shifted one
>place to the right.
>c13 is now empty, and the new data goes into c13; data in c16 is lost.
>(That's the catch, they say!?.)
>If its done in "pretty writing" I can handle the reading.

How are you storing this data? If you can access it by SQL it would be
easier to do it using that.

Otherwise I would look at this problem from another prospective: use a
pointer to define which column (c13 to c16) is the newest, moving the
pointer from C13 to C16, then back to C13.
--
Martin Jay

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация