How to pull in an array to a PHP MySQL output? -
i trying pull in date each part of database, missing element make work , not sure missing?
$modified[] = array(date("m/d/y", strtotime($row[audit_modify_date]))."<br />".date("g:i a", strtotime($row[audit_modify_date])),); //query ($i=0; $i < count($result); $i++) { echo "<tr>"; echo "<td>$modified</td>"; echo"<tr>"; }
they output says array.
you printing array, not elements in array
echo "<td>$modified</td>";
either
for ($i=0; $i < count($result); $i++) { echo "<tr>"; echo "<td>".$modified[$i]."</td>"; echo"<tr>"; }
or
foreach ($modified $m) { echo $m; }
edit what? don't understand you're doing
Comments
Post a Comment