| |||||||||||
| |||||||||||
Databse Owner Posted by pagalreddy (pagalreddy), 12 October 2005 <?// Intended Release: 3.5 // 3.5 includes table-driven menu ?> <? //============================================= // Location and condition settings //============================================= include("cm_environment.inc"); $db = abcd $UserID = "ar"; $UserPW = "ar"; $link = ocilogon($UserID,$UserPW,$db)or die(print"Unable to connect"); return $link; break; } } //========================== End ============================================ $_SESSION['mailgroup'] = $mailgroup; $_SESSION['mailheaderfrom'] = $headers; //============================================= // Database Owner ID //============================================= $CDatabaseOwner = "areddy."; //for application version 3 $_SESSION['CDatabaseOwner'] = $CDatabaseOwner; //============================================= // Session Stuff //============================================= //---------------------Defaults in cm_content.php if (isset($_SESSION['OrgID'])) { $GOrgID = $_SESSION['OrgID']; //for application version 3 and upwards } else { $GOrgID = -1; } if (isset($_SESSION['OrgName'])) { $GOrgName = $_SESSION['OrgName']; //for application name } else { $GOrgName = "Unknown"; } //=============================================================================== // Database table name defnitions //============================================= $t_salespersons = $CDatabaseOwner."mm_reason_code"; somehow its not recognizing the Database owner. I mentioned the Db owner here as areddy. but If it is sql server, Its working fine with dbo., What is it wrong iam doing here. The link is working fine to Oracle, But the only problem iam having is $cdatabaseowner is not recognizing. I need it to recognize cause some of the tables iam accessing it using $t. Please help me Posted by admin (Graham Ellis), 12 October 2005 HiI'm very conscious that I answered three other questsions from you in the last couple of days, and I haven't seena ny feedback yet as to whether or not my suggestions worked. It would be much appreciated if you could follow up there and confirm what the problem was, so that I know if I'm helping you in the right direction, and so that other readers (these pages get syndicated) have the complete story. Once I get that feedback, I'll have a look at the new question. However, I am travelling (out of the country in just a few minutes) so I may take a bit longer than normal to respond. Posted by pagalreddy (pagalreddy), 12 October 2005 Sorry Graham for not replying back. your answers were really very helpfulSomethings are getting solved. But Somehow all these php and inc pages are inter-related. How much ever I try to execute a Procedure or a query from this application, Iam running into all different problems. I would relaly appreciate your help . Posted by admin (Graham Ellis), 13 October 2005 Where people find that code is interreacting and they're not finding it easy in the way you describe, breaking the code down into a series of functions and testing them one by one or in small groups is a huge help. It also make them easier to follow and more re-usable int the future.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |