I am trying to print all the items in a row from a particular table from a mysql database.
Here is the out put I am getting (which is not what I want):
**mysqli_result Object ( [current_field] => 0 [field_count] => 3 [lengths] => [num_rows] => 28 [type] => 0 ) Array ( )**
Here is how I am doing it:
<?php
$connect = mysqli_connect("localhost", "root", "root");
mysqli_select_db($connect, "TrackTool");
$fetch1 = mysqli_query($connect, "SELECT * FROM SalesForceActions");
// set array
$array = array();
// look through query
while($row = mysql_query($fetch1)){
// add each row returned into an array
$array[] = $row;
}
print_r($fetch1);
print_r($array);
mysqli_close($connect);
?>
What am I doing wrong?