[PHP] Re: Implied permissions

2006-04-10 Thread Michael Felt
SLaVKa wrote: Hey guys... implementing a permission system and just wanted some advice. If i have permission A which has implied permissions B and C How do the permissions relate to each other, for eg if I select permission A to true, that implies that permission B and C must be set to true,

Re: [PHP] Ajax please....

2006-04-09 Thread Michael Felt
tedd wrote: Ryan: Carlin Bingham / Tedd: --- Yes, but then I would have to reload the whole page just to tell the person that the account username was already taken...thats how its "traditionally" done...but I want to try doing it without reloading the whole page...hence

Re: [PHP] Problems with Arrays and print and echo

2006-04-09 Thread Michael Felt
John Wells wrote: echo "$this->name[5]\n"; echo "$this->ID[5]\n"; $a1 = $this->name; $a2 = $this->ID; echo "\n$a1[5] $a2[5]\n"; use curly brackets to help PHP understand what you're after: echo "{$this->name[5]}\n"; When you're in a string like this, PHP has a hard time knowing when you're w

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: echo "\n". $this->name[5] . " " . $this->ID[5]. "\n"; This give the same output as: $a1 = $this->name; $a2 = $this->ID; echo "\n$a1[5] $a2[5]\n"; Looks like I may need to use the '.' constructor more often

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: OK . a rewrite, bit shorter... 1. A class construct with two arrays: var $name; var $ID; function init($id) { $this->name = array(); $this->ID = array(); # firther in code assignment done from a mysql database: while

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
chris smith wrote: On 4/7/06, Michael Felt <[EMAIL PROTECTED]> wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a func

[PHP] Re: Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class fu

[PHP] Re: Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class fu

[PHP] Problems with Arrays and print and echo

2006-04-07 Thread Michael Felt
Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class function (all in PHP 4 atm). Code snippet: