Re: [PHP] Question about the scope of functions - I solved it

2003-08-31 Thread Phillip S. Baker
Hey all, Nevermind this. I just solved it myself. I found out it does not matter when you decalre a variable as global (other than I guess before you use it) So I made my function this way. function key_value ( $mysql ) { if ( $sao_row = $mysql -> fetchRow() ) { do {

[PHP] Question about the scope of functions

2003-08-31 Thread Phillip S. Baker
Greetings People, Now basically I am trying to set up an easy way to have key value pairs listed in a DB, and then be able to call the name of the key as a variable later in the code of the page and list the corresponding value in the DB. I am almost there. However I just need to figure out som