Mercurial > hg > ywww
diff php/read/getAllSavedBooks.php @ 42:3f400072bf14
merge, involved ediff3 wrt getAmazonInfo.php
| author | Charlie Root |
|---|---|
| date | Sat, 05 Jan 2019 06:21:12 -0500 |
| parents | d606320ec331 |
| children | a67bf725e87b |
line wrap: on
line diff
--- a/php/read/getAllSavedBooks.php Sun Jul 30 05:36:48 2017 -0400 +++ b/php/read/getAllSavedBooks.php Sat Jan 05 06:21:12 2019 -0500 @@ -32,6 +32,7 @@ $prevListName = ""; +if ($results) { while($line = mysqli_fetch_assoc($results)) { $listName = htmlspecialchars(trim($line["SavedListName"])); @@ -58,12 +59,14 @@ $savedBooks++; } - - if($savedBooks != 0) - { - $output .= "</ListDetails>"; - $output .= "</List>"; - } + $results->free(); + } +mysqli_close($link); +if($savedBooks != 0) + { + $output .= "</ListDetails>"; + $output .= "</List>"; + } $output .= "</results>"; if(isset($ret)) @@ -71,7 +74,7 @@ else echo $output; -mysqli_close($link); + ?> \ No newline at end of file
