Re: [PHP] SQL Join query

2004-08-08 Thread Lenar Lõhmus
Mattias Thorslund wrote: > Though, (regardless of SQL database platform) in a case like this, it > MAY be both more straightforward and efficient to use two separate > queries for the pictures and comments, given the one-to-many cardinality > between them. The above statement causes redundant dat

Re: [PHP] SQL Join query

2004-08-07 Thread Lenar Lõhmus
Raditha Dissanayake wrote: > try postgres instead http://www.postgresql.org/ It's the most helpful comment I've seen for a long time. You know, it won't work in Postgre too probably. If you like Postgre - use it and don't force others to use it (for wrong reasons nevertheless). Everyone should p

RE: [PHP] html form question

2001-07-26 Thread Lenar Lõhmus
On Thu, 26 Jul 2001, Seb Frost wrote: > OK so how would that look if I'd done SELECT * instead of SELECT eventName? > I'm guessing I have two nested while loops then? > > I'm guessing something like this.? Or is it not possible and I have to > go back to mysql_result? Nope, instead you c

Re: [PHP] setcookie() woes

2001-06-20 Thread Lenar Lõhmus
In my experience the understanding of SetCookie header differs form browser to browser so much that it's horrible. As far as I remember IE5.5 handled it correctly. IE5.0 didn't. Netscape I think did (not completely sure). In any case .. session-based cookies seem to work in all of them. just call

Re: [PHP] Trimming Array value

2001-06-20 Thread Lenar Lõhmus
something like this: $val) $ar[$key] = is_array($val) ? recursive_rtrim($val) : rtrim($val); return $ar; } ?> lenar. ""Reuben D Budiardja"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a multi-dimensional array. I want to trim every valu

Re: [PHP] Parse PHP inside a variable

2001-06-20 Thread Lenar Lõhmus
maybe function eval()? lenar. "Claus Heiko Niesen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > I'm having a variable that contains HTML with embedded PHP code. When I > echo it then the PHP code does not get executed. Is there a way I can > pars

Re: [PHP] Code check please

2001-06-20 Thread Lenar Lõhmus
UPDATE syntax for INSERT is allowed in MySQL, so that should not be the problem as far as you include all fields not having default value, timestamp type or auto_increment attribute in your statement. What's the error message if there is any? lenar ""Rich Cavanaugh"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] parent and grandparent member functions

2001-06-20 Thread Lenar Lõhmus
> > > > class a { > function make() { > // some code > print "A:: MAKE"; > } > } > > class b extends a { > function make() { > // some code > parent::make(); > } > } > > class c exten

[PHP] parent and grandparent member functions

2001-06-20 Thread Lenar Lõhmus
n and it is way more useful than php's way. is there any elegant soultion(s) to my problem? Lenar Lõhmus