I have a table with only one field say p_code. for that field i have around 30 values like MMBF,TRED,TFRE, EDFC,TTRRE ect., to goes on.
I am trying to retrive all the values in the single query like this:
But i m getting the last value of that field.
Can anyone help me how to get all the values in a single array with comma seperated values.
Thanks in advance,
Regards,
I am trying to retrive all the values in the single query like this:
Code:
$sql_query_product = mysql_query("SELECT Product_Code FROM " . TABLE_PRODUCT_CODE . "");
while($row_pr = mysql_fetch_array($sql_query_product))
{
$product_code = array($row_pr['Product_Code']);
}
Can anyone help me how to get all the values in a single array with comma seperated values.
Thanks in advance,
Regards,
Comment