need to print the array into a string, php and mySQL. see below, code given?

Adam

New member
What exactly do you want? I assume you want it to print a specific column from the database.

case "viewcart":
$view = listCartObjects();
foreach($view as $item)
{
$itemInfo = mysql_fetch_array($item);
echo $itemInfo['columnName'];
}
break;
 
prints:

Array
(
[0] =>
[1] => Resource id #7
[2] => Resource id #5
[3] => Resource id #8
)

my code is:

case "viewcart":
$view = listCartObjects();
foreach($view as $item)
print_r(mysql_fetch_array($item));
break;
 
Back
Top