Re: [PHP] $ of variables, php, mysql

2003-11-26 Thread Marek Kilimajer
Eugene Lee wrote: On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote: : Eugene Lee wrote: : : Try using more variables to make life a little easier to parse: : : $colname = $_FORM['form'] : $query = select {$colname} from structure; : $result = mysql_query($query); : while

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread RT
On Tue, 2003-11-25 at 00:42, Joffrey Leevy wrote: Would appreciate in anyone can help me. Let's say I do a query in php, eg. $query = select shed from structure; With the mysql_fetch_array function and a loop I could see all the values stored in the column, shed, using the command: echo

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread Eugene Lee
On Mon, Nov 24, 2003 at 09:42:30PM -0800, Joffrey Leevy wrote: : : Would appreciate in anyone can help me. Some more code would be helpful. : Let's say I do a query in php, eg. $query = select : shed from structure; With the mysql_fetch_array : function and a loop I could see all the values

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread Marek Kilimajer
Eugene Lee wrote: Try using more variables to make life a little easier to parse: $colname = $_FORM['form'] $query = select {$colname} from structure; $result = mysql_query($query); while (($row = mysql_fetch_array($result)) !== false) {

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread Eugene Lee
On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote: : Eugene Lee wrote: : : Try using more variables to make life a little easier to parse: : : $colname = $_FORM['form'] : $query = select {$colname} from structure; : $result = mysql_query($query); : while

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread Joffrey Leevy
Hey thanks guys. Problem solved. --- Eugene Lee [EMAIL PROTECTED] wrote: On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote: : Eugene Lee wrote: : : Try using more variables to make life a little easier to parse: : :$colname = $_FORM['form'] :$query = select

[PHP] $ of variables, php, mysql

2003-11-24 Thread Joffrey Leevy
Would appreciate in anyone can help me. Let's say I do a query in php, eg. $query = select shed from structure; With the mysql_fetch_array function and a loop I could see all the values stored in the column, shed, using the command: echo $shed; Let's say now that I am carrying over a variable