Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Connect to the Database
- $dsn = "VerticaDSN";
- $conn = odbc_connect($dsn,'','') or die ("<br/>CONNECTION ERROR");
- echo "<p>Connected with DSN: $dsn</p>";
- # Get the data from the table and display it
- $sql = "SELECT column FROM table";
- if($result = errortrap_odbc($conn, $sql))
- {
- echo "<pre>";
- while($row = odbc_fetch_array($result) )
- {
- echo "hi";
- print_r($row);
- }
- echo "</pre>";
- }
Add Comment
Please, Sign In to add comment