http://php.net/isset
On Mon, May 22, 2006 8:45 am, Jonas Rosling wrote:
> I don't know if I'm explaining things in a difficult way or not. But
> I'm
> gonna try to explaine what I want very clean and simple.
>
> 1. I wan't to check if an array is decleard or not, refering to a
> value in a
> row
On 5/22/06, Jonas Rosling <[EMAIL PROTECTED]> wrote:
while($row=mysql_fetch_array($result)) {
if (!$$row[0]) {
$$row[0] = array();
$$row[0][$row[2]] = $row[1];
}
else {
$$row[0][$row[2]] = $row[1];
}
}
IMO
-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Rabin
Vincent
Skickat: den 22 maj 2006 16:26
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] HELP - Clean and simple
On 5/22/06, Jonas Rosling <[EMAIL PROTECTED]> wrote:
> :-) Sorry! I've bee
On 5/22/06, Jonas Rosling <[EMAIL PROTECTED]> wrote:
:-) Sorry! I've been digging with this for a while now so I don't think I
have the best code left. But this is what I have for the moment:
while($row=mysql_fetch_array($result)) {
if (!$$row[0]) {
$$row[0] = array();
-Ursprungligt meddelande-
Från: chris smith [mailto:[EMAIL PROTECTED]
Skickat: den 22 maj 2006 15:49
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] HELP - Clean and simple
On 5/22/06, Jonas Rosling <[EMAIL PROTECTED]> wrote:
> I don't know if I'm explaining things
[snip]
I don't know if I'm explaining things in a difficult way or not. But I'm
gonna try to explaine what I want very clean and simple.
1. I wan't to check if an array is decleard or not, refering to a value
in a
row/field ($row[0])
2. If it's not decleard I declear it and assign it's name by the
On 5/22/06, Jonas Rosling <[EMAIL PROTECTED]> wrote:
I don't know if I'm explaining things in a difficult way or not. But I'm
gonna try to explaine what I want very clean and simple.
1. I wan't to check if an array is decleard or not, refering to a value in a
row/field ($row[0])
2. If it's not d
I don't know if I'm explaining things in a difficult way or not. But I'm
gonna try to explaine what I want very clean and simple.
1. I wan't to check if an array is decleard or not, refering to a value in a
row/field ($row[0])
2. If it's not decleard I declear it and assign it's name by the value
8 matches
Mail list logo