I am trying to get the data from database in one single array but I was unsuccessful doing that. What I have tried is -
$q = mysql_query("SELECT*FROM meaning ORDER BY RAND() LIMIT 7");
$gt = mysql_fetch_array($q);
var_dump($gt);
This query fetches only one row. What I want is that this query should fetch random 7 rows and come back in one array as data like -
array(4) { [0]=> row_0
[1]=> row_1
[2]=> row_2
[3]=> row_3
[4]=> row_4
[5]=> row_5
[6]=> row_6
}