Differences

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

Link to this comparison view

Next revision
Previous revision
ex_mysqli [2012-10-23 14:25]
Joakim Forsgren created
ex_mysqli [2017-09-01 14:54] (current)
Line 37: Line 37:
 ?> ?>
 <form method="​post">​ <form method="​post">​
- <input type="​text"​ name="​Item" ​/+ <input type="​text"​ name="​Item">​ 
- <input type="​submit"​ name="​submit"​ value="​Spara" ​/>+ <input type="​submit"​ name="​submit"​ value="​Spara">​
 </​form>​ </​form>​
  
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>';​