Advertisement
Guest User

Untitled

a guest
Apr 16th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.    $con = mysqli_connect("capstone-gliomagrow.clcmbbff0zhh.ap-southeast-2.rds.amazonaws.com","jesse","dog69scissors","gliomagrow");
  3.  
  4.    if (mysqli_connect_errno($con))
  5.    {
  6.       echo "Failed to connect to MySQL: " . mysqli_connect_error();
  7.    }
  8.    
  9.    // $username = "jesse"
  10.    // $password = "dog69scissors"
  11.    $result = mysqli_query($con,"SELECT * FROM gliomagrow");
  12.  
  13.    while($row = mysqli_fetch_array($result))
  14.    {
  15.         echo implode(",", $row);
  16.         echo "<br>";
  17.    }
  18.    
  19.    mysqli_close($con);
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement