Odbc_connect!
| From: | kaab kaoutar | Date: | Tue, 30 Jan 2001 11:50:47 +0000 |
| Subject: | Odbc_connect! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37295@lists.php.net to get a copy of this message | ||
Hi!
i have an oracle Database and i wanted to use odbc functions i tried it but it gives me faile to connect, so i tried an access Database that i put in dsn system etc
and i still have the same error!
here is the code :
if (($res = Odbc_Connect("WebZine","kaab","kaab")==0))
{
print ("Couldn't connect to database\n");
exit ();
}
echo $res;
$sql = "Select * subscribe";
if ($res <> 0)
{
$id = Odbc_Exec($res, $sql);
$row=1 ;
while (Odbc_Fetch_Row($id,$row))
{ $emaildb = Odbc_result($id,3); echo $emaildb;}
Odbc_Close($res) ;
}
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.