Forum Moderators: coopster
(1)
if the way of putting values inside an array is like this :
$arr = array(1 => "string1", 2 => "string2", 3 => "string3");
or
$arr = array("string1", "string2", "string3");
then how can I insert the values inside an array coming from :
while(list($stringdata)= mysql_fetch_row($result))
{
---------------------
}
(2)
How do I pass the whole array to another array variable?
Thanks.
$table_info = array();
while ($row = mysql_fetch_row($rows)) {
$table_info[] = $row;
}