Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $server="systemdnsfile1"; #the name of the iSeries
- $user="user"; #a valid username that will connect to the DB
- $pass="pass"; #a password for the username
- $conn=odbc_connect($server,$user,$pass); #you may have to remove quotes
- @n$db = @new PDO(
- "mysql:host={$sql_details['host']};dbname={$sql_details['db']}",
- $sql_details['user'],
- $sql_details['pass'],
- array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement