PHP/ Oracle

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

PHP/ Oracle

Post by Kingo »

Hello,
How do I display the rows from the oracle databse.?
I know it for MYSQL

Code: Select all

$result = MYSQL_QUERY(" SELECT * from data WHERE UserName='$username' and PassWord='$password' ")
   or die ("Name and password not found or not matched");

$worked = mysql_fetch_array($result);

if($worked)
{

$S_Name 	=  $worked["School_Name"]; 
$P_Name 	=  $worked["Principal_Name"]; 
}
I want to implement the same thingh using the Oracle Database . Any help is really appreciated.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

[php_man]oracle[/php_man]
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Post by Kingo »

I'm not able to convert the above statements into the Oracle one. AS there are amny functions. Would appreciate if you could convert the above statemenst to the one with Oracle as back end
Post Reply