someone tell me where am going wrong
<?php
class myclass
{
var $config;
function getname()
{
$q=mysql_query("select * from users");
while($row=mysql_fetch_array($q))
{
$row[]=$minutes;
}
return $minutes;
}
..........................................
hers how i call
<?php
$name=new myclass;
$new->getname();
foreach($new as $news)
{echo $news;
}