Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ex_mysqli [2012-10-23 14:25]
Joakim Forsgren created
ex_mysqli [2012-10-23 14:26]
Joakim Forsgren
Line 46: Line 46:
  
 /* fetch associative array from result*/ /* fetch associative array from result*/
-echo 'Antal rader frågan ​<​code>​' . $query . '</​code> ​ger är: ' . $result->​num_rows . '<​br><​br>';​+echo 'Antal rader frågan ' . $query . ' ger är: ' . $result->​num_rows . '<​br><​br>';​
 while ($row = $result->​fetch_assoc()) { while ($row = $result->​fetch_assoc()) {
   echo $row["​Item"​] . ' <​i>​(Inlagd:​ ' . $row['​Date'​] . '​)</​i><​br>';​   echo $row["​Item"​] . ' <​i>​(Inlagd:​ ' . $row['​Date'​] . '​)</​i><​br>';​