I've a select query say
$query = "select name from class";
$equery = mysql_query($query);
$v = mysql_fetch_array($equery);
print_r($v['name']);
I've 10 records in my data base but always i'm getting only one value.is there any alternative to retrieve my column in array format.
mysql_queryis probably a very bad idea as it's very hard to use correctly. Is there any reason you're not usingmysqlior PDO?