Guest User

Untitled

a guest
Jan 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # Connect to the Database
  2. $dsn = "VerticaDSN";
  3. $conn = odbc_connect($dsn,'','') or die ("<br/>CONNECTION ERROR");
  4. echo "<p>Connected with DSN: $dsn</p>";
  5.  
  6. # Get the data from the table and display it
  7. $sql = "SELECT column FROM table";
  8. if($result = errortrap_odbc($conn, $sql))
  9. {
  10. echo "<pre>";
  11. while($row = odbc_fetch_array($result) )
  12. {
  13. echo "hi";
  14. print_r($row);
  15. }
  16. echo "</pre>";
  17. }
Add Comment
Please, Sign In to add comment