php mysql to oracle

 
Post new topic   Reply to topic    PHP User Group Malta Forum Index // The Database Section
View previous topic :: View next topic  
Author Message
liquid



Joined: 26 Nov 2010
Posts: 1

PostPosted: Fri Nov 26, 2010 2:08 pm    Post subject: php mysql to oracle Reply with quote
hi all Smile,

hopefully you can help me on this one, i have a piece of "application" that works with mysql but i need to convert it to work with oracle.

i tried converting the statements but with no success maybe you can help, the following is an example of the mysql statement, maybe if someone could convert this for me to oracle maybe im missing something i would be able to process the rest:

<?php
if($_REQUEST["rid"]>0){
$sql = "SELECT * FROM ".$DB_SR_TABLES["Reservations"]." WHERE id='" . $_REQUEST["rid"] . "'";
$sql_result = mysql_query ($sql, $connection ) or die ('request "Could not execute SQL query" '.$sql);
$BookingData = mysql_fetch_assoc($sql_result);
} else {
$_REQUEST["rid"]=0;
}
if (! isset($_REQUEST["index"])) $_REQUEST["index"]=0;
?>

thanks in advance
Back to top
View user's profile Send private message
Post new topic   Reply to topic    PHP User Group Malta Forum Index // The Database Section All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

alexisRed v1.2 // Theme Created By: Andrew Charron and Web Hosting Bluebook // Icons in Part By: Travis Carden
Boards optimised using the phpBB-SEO mod found at phpbb-seo.com
Boards hosted courtesy of solutions-lab.net
Link Backs : PHPClasses.org - MT Page :: PHPUsergroups.org - MT Page



Powered by phpBB © 2001, 2002 phpBB Group