Re: about structure.



Hrmmm... hehe this is also a good idea and I guess this would be easier
for me to use at the moment... but in the long run, it would prolly
still be better to use a database...

Geoff Berrow wrote:
Message-ID: <1166535755.164051.45680@xxxxxxxxxxxxxxxxxxxxxxxxxxx> from
Kentor contained the following:

I can't include them because they are all different altho similar.... I
can't include the area alone because there's code after and before the
area that is different in each part. Take a look at the examples I
gave...

You are going to have to bite the bullet and rationalise your code. The
database idea is good but if the data does not change you may simply be
better of storing the basic data in an array which you then incorporate
using include(). Your various select boxes can then be generated from
that array.

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

.



Relevant Pages

  • Re: about structure.
    ... can't include the area alone because there's code after and before the ... better of storing the basic data in an array which you then incorporate ... Geoff Berrow 0110001001101100010000000110 ...
    (alt.php)
  • Re: Newbie - expecting `T_STRING or `T_VARIABLE or `T_NUM_STRING
    ... > Geoff Berrow wrote: ... You really have a horrible mix of PHP and HTML. ... in the middle of a PHP area. ... the HTML lines into an array and echo the contents of the array at the ...
    (comp.lang.php)
  • Re: Ordering array (krsort)
    ... I noticed that Message-ID: from mark ... >The array is set up exactly as I showed in the first post. ... Geoff Berrow ...
    (alt.php)
  • Re: If ... else that does not work
    ... Geoff Berrow wrote: ... > from Joe Blow contained the following: ... >>Brilliant, many thanks to both of you. ... > array) you may find it more efficient to use a loop. ...
    (comp.lang.php)
  • Re: How to inspect array elements based on criteria?
    ... I noticed that Message-ID: ... >element in the array. ... Geoff Berrow (put thecat out to email) ...
    (comp.lang.php)