hy, I have table with three cols (nr, name, text). I want to read all cols even i need just one, "name".
okey, this is what i wrote:
class Struktura{
public $tekstas;
public $menuu;
public function menu()
{
$qq=mysql_query("SELECT * FROM tb_menu") ;
$this->menuu=mysql_fetch_array($qq,MYSQL_ASSOC);
}
}
...and
this is what i got after print_r(): i just was testing
Array ( [nr] => 1 [name] => vienas [text] => bvftyhjnb vgh )
, in other words, i got only first row of my table, but i need all. Please help.


