Fatal error
Fatal error: Call to undefined method mysqli_stmt::get_result() in /home/u790012824/public_html/Page/picture/result.php on line 33
<!DOCTYPE html> <html lang = "en"> <head> <link rel = "stylesheet" type = "text/css" href = "css/bootstrap.css"/> <link rel = "stylesheet" type = "text/css" href = "css/style.css"/> <meta charset = "UTF-8" name= "viewport" content = "width=device-width, initial-scale=1" /> </head> <body> <nav class = "navbar navbar-default"> <div class = "container-fluid"> <a class = "navbar-brand" href = "https://www.sourcecodeter.com">Sourcecodester</a> </div> </nav> <div class = "row"> <div class = "col-md-3"> </div> <div class = "col-md-6 well" style = "z-index:99999;"> <h3 class = "text-primary">Drag and Drop Image Upload with MySQLi</h3> <hr style = "border-top: 1px dotted #8c8b8b;"/> <a href = "index.php">Back</a> <table class = "table table-bordered table-hover"> <thead> <tr> <th>Image Name</th> <th>Image</th> </tr> </thead> <tbody> <?php if($stmt->execute()){ $result = $stmt->get_result(); } while($fetch = $result->fetch_array()){ ?> <tr> <td><?php echo $fetch['photo_name']?></td> <td><center><img src = "<?php echo 'upload/'.$fetch['photo_name']?>" height = "50px" width = "50px"/></center></td> </tr> <?php } ?> </tbody> </table> </div> </div> </body> <script src = "js/jquery-3.1.1.js"></script> <script src = "js/upload.js"></script> </html>
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.