[PHP] Re: Can this code go faster?

2005-04-29 Thread Rolf Østvik
Just a couple of comments about those 0x.. and 11 in my post. (By the way, i haven't looked to closely on speed even if the OP asked for that, i was unsure on how he was coding his numbers). [EMAIL PROTECTED] (Rolf Østvik) wrote in news:[EMAIL PROTECTED]: > [EMAIL PROTECTE

[PHP] Re: Can this code go faster?

2005-04-26 Thread Rolf Østvik
[EMAIL PROTECTED] (René Fournier) wrote in news:[EMAIL PROTECTED]: > I need to convert a binary number of arbitrary length to a signed > integer. > This is how I'm doing it now: > CODE > > function bin2int ($bin) { > if (substr($bin,0,1) == 1) { > $val = 0 - bindec(substr

[PHP] Re: collapse SELECT from multiple tables

2005-03-29 Thread Rolf Østvik
answers. Suggestion 1: Create a custom function which takes the tableA.ID as parameter and run a query on tableB and creates an string as answer. I do this in an application i use PostgreSQL. Suggestion 2: Create an aggregate. I havent yet tried this in PostgreSQL. Suggestion 3: Order your sql

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Rolf Østvik
[EMAIL PROTECTED] (John Nichel) wrote in news:[EMAIL PROTECTED]: > Jay Blanchard wrote: >> [snip] >> CR> Just a thought, but would it be worth someone posting the list >> CR> once a week to catch new users as they sign up? >> >> Isn't it posted once a month as it is? >> [/snip] >> >> It used to