Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP, and X^Y searches.

Name: Anonymous 2007-11-28 16:33

Say, I have this X number of types of articles. From this articles, I search for an specific type, then, from these items, I have to search by brand, from this, I go color, and then by size.

This, of course, is a horror. PHP goes down with a whimper, not to mention that it is a terrible thing to do no matter the platform. What do you suggest me I should do? I asked my superiors if I could do some DB fixing, but they told me they cannot change the DB anytime soon.

Help?

Name: Anonymous 2007-11-28 16:34

take the logarithm of both sides and then you can solve it iterativly for a given x, so just range from x = 0 upwards to get all solutions (since they all have to positive anyway)

Name: Anonymous 2007-11-28 16:55

>>1
Forget it, it's NP-complete.

Name: Anonymous 2007-11-28 17:08

>>1
What's wrong with doing select * from table where type = 1 and brand = 'xyz' and color = 'red' and size = 'L', and putting indexes on all those columns in your where clause? Elaborate.

Name: Anonymous 2007-11-29 9:19

>>4
That's not [o]ENTERPRISE[o] enough.

Name: Anonymous 2007-11-29 10:27

>>5
([o]_[o])

Name: Anonymous 2009-03-18 2:19

The word pirahna, is all I can think of that rhymes with marijuana

Marijuana MUST be legalized.

Name: Anonymous 2013-01-19 23:48

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List