db.php is a file that connect to my database
and I trying to array subtitle byline and content that is from clanwebs
but then I echo the variable boxes and all it show is Array, not the stuff that i array the word Array
why it showing the word array like i echo 'array' instead pf echo '$boxes'
and I trying to array subtitle byline and content that is from clanwebs
PHP:
<?php
require_once 'db.php';
$result = mysql_query("SELECT subtitle, byline, content FROM post WHERE `name` ='clanwebs'");
$boxes = array();
while ($row = mysql_fetch_assoc($result))
{
$new_box = array('subtitle' => $row['subtitle'], 'content' => $row['content'], 'byline' => $row['byline']);
$boxes[] = $new_box;
}
$content['boxes'] = $boxes;
echo "[$boxes]";
?>
but then I echo the variable boxes and all it show is Array, not the stuff that i array the word Array
why it showing the word array like i echo 'array' instead pf echo '$boxes'