I have a table my_entity_data in that i have a column parentproduct_id
I want to get all values of that column in side one array
<?php
$result = mysql_query("SELECT parentproduct_id FROM my_entity_data");
$storeArray = Array();
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$storeArray[] = $row['parentproduct_id'];
}
for ($i=0; $i < 10; $i++) {
echo $storeArray[i];
}
?>
But no use Any thing wrong i did here ?
And i am running this code in Magento CE 1.7
Any ideas ? I
mysql_**functions. They are deprecated.