having a function inside a table
Posted: Fri Oct 15, 2004 10:06 am
hello;
I have the_table:
col_1 , col_2
---------------
cook , cook the cookies
I would like to place a function inside of col_2 that reads the value of col_1 and then inserts that value into the col_2:
col_1 , col_2
----------------
cook , col_1.value the cookies
such that:
will output ==> cook the cookies;
is this feasible;
thanks
Shannon Burnett
Asheville NC USA
I have the_table:
col_1 , col_2
---------------
cook , cook the cookies
I would like to place a function inside of col_2 that reads the value of col_1 and then inserts that value into the col_2:
col_1 , col_2
----------------
cook , col_1.value the cookies
such that:
Code: Select all
$result = mysql_query("select * from the_table");
while ($row=mysql_fetch_array($result , MYSQL_ASSOC) )
{ print $row[col_2];
}is this feasible;
thanks
Shannon Burnett
Asheville NC USA