Just the 

$dbh=DBI->connect("DBI:mysql:database=mydatabase;host=127.0.0.1;port=3306",myuser,mypass);

statement.

See perldoc DBI:Oracle for examples.
 
-Joe

--- Matthew Harrison <[EMAIL PROTECTED]> wrote:
> I currently use DBD::MySQL in my script like so:
> 
> <snip>
> 
>
$dbh=DBI->connect("DBI:mysql:database=mydatabase;host=127.0.0.1;port=3306",myuser,mypass);
> die "Could not connect to database" if !$dbh;
> $sth = $dbh->prepare("SELECT username FROM users WHERE email=
> '$email'");
> if ($sth && $sth->execute()){
>   @results = $sth->fetchrow_array();
> }
> 
> </snip>
> 
> If i wanted to start using Oracle 8i, what would I have to change?
> I have 
> just install DBD::Oracle.
> 
> -- 
> Matthew Harrison
> Internet/Network Services Administrator
> Genstate
> www.genestate.com


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

Reply via email to