AlexMagic - 2:01 pm on Mar 20, 2013 (gmt 0)
Hello! I am rather new to PHP and I'm to connect to an oracle database. I managed the connection using OCI8 directly but I've decided ADODB would help me simplify matters. I've been trying to connect using it to no avail, would anybody mind taking a look to my code?
This one works
$conn = oci_connect('NAME', 'PASSWORD', '127.0.0.1/XE');
$stid = oci_parse($conn, 'select table_name from user_tables');
This one prints nothing at all though it doesn't really show the connection failed message
$conn = &ADONewConnection('oci8');
if (!$conn) die("Connection failed");
$recordSet = $conn->Execute('select * from ld_autos');
Any ideas on what I may be doing wrong? Thanks in advance!