Skip to content

Instantly share code, notes, and snippets.

@KimiyukiYamauchi
Created November 25, 2013 14:44
Show Gist options
  • Save KimiyukiYamauchi/7642242 to your computer and use it in GitHub Desktop.
Save KimiyukiYamauchi/7642242 to your computer and use it in GitHub Desktop.
<?php
require 'MDB2.php';
//$db = MDB2::connect('mysql://s11011:password@localhost/db11');
$db = MDB2::connect('oci8://s11011:[email protected]:1521/?service=db11');
if (MDB2::isError($db)) { die("connection error: " . $db->getMessage()); }
$q = $db->query("CREATE TABLE dishes (
dish_id INT,
dish_name VARCHAR(255),
price DECIMAL(4,2),
is_spicy INT
)");
print "OK!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment