PHP and several DB does not

Hello
I've been all day trying to find clues on how to get data from two SSID on the same server (under Oracle 10 g and PHP5 w/BRC)
I'll explain:

The Oracle server has two schemas: data and global.

Data: localhost:1521
SID: datos

Global: localhost:1521
SID: global

in PHP, this is the connection that I try now, after a day of whola I tried to simplify to the maximum:

Line: -.

<? PHP


STATEMENT 1
@ $link = oci_connect ("user", "password", "localhost" / "global");

echo "oci_fetch_array < br >".
$stmt = ociparse ($link, "SΘlectionner the rut of USER");
ociexecute ($stmt);
While ($r2 = oci_fetch_array ($stmt, OCI_BOTH)) {}
echo $r2 ["id_usuario"];
}

OCIFreeStatement ($stmt);


STATEMENT 2

@ $conn1 = oci_new_connect ("user", "password", "localhost" / "data");

$SQL = "select id_usuario from USUARIO where id_empresa = '2'";

$stmt = ociparse($conn1,$SQL);
ociexecute ($stmt);

{while (OCIFetch ($stmt))}
$valor = OCIResult($stmt,1);
}
echo $valor;
OCIFreeStatement ($stmt);

? >

The two sentences are tested and working, so there is no problem in PHP code.

* I noticed that any kind of code I try, it always seems to access only the "BOLD"datos * fat * scheme and key even never the overall scheme.

Errors I get from this code:
WARNING: ociparse() expects the parameter 1 resource, boolean in www\index.php on line 12 D:\
WARNING: ociexecute() expects the parameter 1 resource, null in www\index.php on line 13 D:\
WARNING: example with oci_fetch_array() expects parameter 1 resource, null in www\index.php on line 14 D:\
WARNING: ocifreestatement() expects the parameter 1 resource, null in D:\ www\index.php on line 18
After that, I managed to get the result of the second statement... so confused

* At the beginning I used the sabe user and the password for the two schemas, now I changed the. At this time the error has been linked to tables that did not exist so I'm at the conclussion that PHP was only access to the content of the data schema, as I have before menctioned.



I don't know who else to do and I seriously think following the death of another language.

I did a Sw in Java that also access these two databases, it works perfectly, so I think maybe it's me who do not know how to write in PHP, or BEAK of PHP which can't stand not this type of access to data bases.

If someone could show me a few clues I'll be gratefull.

Well actually the @ signs are there so the "PHP Warning: Division by zero" is disabled.
always the connection have always worked perfectly for me, it's just a warning.

Well, with this bug in your code the connection did not what you think it does. Or make. Fix this problem first. Then we might be able to help with your technical problems.

Review of p 103 manual current Underground for the syntax of the connection.

Tags: Database

Similar Questions

  • No matter which web page opening causes crashes and several scripts does not

    Once I open firefox, it hangs on nearly every Web page. After a few minutes, a script error does not appear. The shutdown script does nothing most of the time. Most often, one to ten more script errors does not answer will appear. I tried reset firefox and firefox running in safe mode, neither of which has helped the problem.

    I had this problem recently, after Windows updates on all sites that use Flash. It is many, many sites...

    It is a standard orientation which addresses the most common issues with Flash. I'm sure you've seen some of it before, but just in case:

    (1) make sure that all recorders/downloaders who interact with the Flash media are as up-to-date as possible, or turn them off.

    (2) disable graphics hardware acceleration in Firefox and Flash

    (A) in Firefox, see the post above

    (B) in Flash, see this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

    (3) turn off protected mode (Windows Vista/7/8)

    See this article from Adobe support under the heading of 'Last resort': Adobe Forums: how to fix protected Flash Player for Firefox mode?

  • Fields on several Internet sites have been changed in another language. The browser is set to English, and this problem does not occur with Chrome.

    Fields on several Internet sites have been changed in another language. The browser is set to English, and this problem does not occur with Chrome. Specifically, a large part of Tumblr and Facebook menu has been changed in another language (Russian, I think). I tried reinstall Firefox, clear the cache and reset firefox to its default state. None of them helped. Any suggestions on how to fix this?

    Hey again,

    Sometimes a problem with Firefox can be a result of malware installed on your computer, you may not be aware of.

    You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    I hope this helps!

    Curtis

  • As some Menu items: Modules, Help Menu and Pocket Extension does not work after update to 17.0

    As some Menu items: Modules, Help Menu and Pocket Extension does not work after update to 17.0

    This may be caused by the Tab Mix Plus extension

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.

    You can try to install the latest Dev version of Tab Mix more if you use this extension.

    See the sticky on the forum of Tab Mix Plus:

  • Satego P100-10F: Windows XP Lan, usb slots and the sound does not work

    Hello

    I have problems with windows vista, so I checked the forum to get information on the windows xp installation.

    I downloaded the drivers windows xp since the P100 Satellite (pspa6e), my only problem is that the LAN, usb slots and my sound does not work.

    I hope someone has a good idea for drivers or to install another driver I have sound and LAN on windows xp.

    Ty and Greetz

    See European driver of Toshiba.
    Here, you can try to install several drivers of different portable Satellite P100.
    Try all series.
    Fact is that some units of the Satellite P100 and Satego P100 series were delivered with the same features.
    Therefore, it should be possible to use the unique drivers of these series.
    Check all.

  • HP Envy 15 "touch screen power LED appears, but the fans does not and the screen does not light

    Hello!

    I'm a student in computer engineering at the University of Waterloo 1A, and I run a very serious problem with my HP Envy 15 "TouchSmart laptop computer running Windows 8.1. It is a problem that just started today, and I'd rather have a first support here before going to see the technical support Office sometimes tomorrow. It has to do with the screen and the fans where the Power LED lights in white, just as when the laptop works properly.

    (I have warranty on the laptop when it was purchased last June, except that if I find that I need to get a replacement, I'll lose all my work, I did on that since I started my semester.) It's so silly of me not to have all my work saved on a backup, because I have an external hard drive. Problem is, I've had too many problems in getting myself organized, I'm not being open-minded as I should, and worse, I'm not a balance between life and work at home.)

    Before I had my MATH 117 conference (Calculus 1 Engineering), I was in a nearby lab where my laptop was open and turned, works correctly. I've had NetBeans IDE running since I wanted to work on the second part of my current assignment of CS 137 (principles of programming). Because it was almost time for my presentation, I closed the laptop by simply moving the screen down on the keyboard, where it goes into mode 'sleep'. (Whenever I flip to the top of the screen, the laptop is supposed to return, and the sliding screen of Windows 8.1 connection will appear.)

    When I took my seat for reading, I wanted to spend a little time to work on my programming assignment. However, after the reversal of the screen to the top, instead of having the login screen appears, I encountered the problem: the power supply light is showing a white light, but I don't hear the fans between the ventilation openings on the left side of the laptop and the screen does not light. I tried to take the power for several seconds and once button at least 10 seconds, except that the power light continues to display on a white light. The Commission of the Wi - Fi light is not displayed.

    Whatever it is, I don't want to take out the battery because I have that on my last laptop, and it's from there that I couldn't turn to the former, a new market. If I leave the Envy laptop battery, it will short-circuit the connections between the battery and the computer, and so several components will FRY. For now, what I do let the laptop is to empty the load on the battery. Then, once I noticed that the power light does not project a white light, or plug in the AC adapter and try turning the laptop on the power button.

    It will take a little while for the circuit drain the load on my battery but...

    Anyway, please would you be kind enough to help me with this problem? I would really appreciate if you can give me several recommendations. Thank you!

    Hello @GregPDesWHP,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I read your post on how your laptop is not on, and I'd be happy to help you in this case!

    In order to restore the features of your computer once more, I recommend you follow the steps described in this document on the computer does not (Windows 8). If the problem persists after having exhausted all the steps in this document, I recommend you contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps!

    Concerning

  • Explore Windows 7 64 bit slow loading screen and windows welcome does not

    Hello guys :D

    I had this problem yesterday and look really weird because I use several method to solve for 'Blocking with the Welcome screen' or 'Windows Explorer is not responding. So here's the problem:
    As I said, I had the windows with the "Welcome" screen stucks But some time later, about 15 minutes that it full load. Well, THIS IS more BIG PROBLEM: my office was black with my cursor! About 10 minutes, this return to normal, BUT the icons are not loaded. And when I click on any folder or right click of mouse, WINDOWS EXPLORER IS NOT the ANSWER (error status code c0000185 InPageCoFire) and need to restart. I restart and once again, does not. My laptop is now like that, turn on, wait 15 minutes and watch "Windows Explorer is not responding" and turns off.
    It makes me really mad. So I really appreciate for your help. Sorry if this question was asked before

    Uh, seems to be still the gel, you can try another way! Enter again the Advanced Boot Options, then choose 'Safe Mode'. Your loading windows basic drivers and services that could help you get into the windows desktop without encountering any problems. Once you're in safe mode, tap Start menu and search for "cmd". Right-click on 'cmd' and select them "run as Administrator". When the command prompt appears, check your disk file system error hard by typing "chkdsk c: /f" (do not type the quotation marks) if "c:" is a drive letter on your Windows 7. Restart your computer, and it checks file system of the disk for errors. When the analysis was finished and reboot, re-enter the Advanced Boot Options, choose "Safe Mode" again. And then open command prompt with administrator, and then type this command "sfc/scannow" (do not type the quotation marks). SFC (System File Checker) can check your file system were healthy or not. Wait until after the analysis. Then, restart your computer. If these tips don't help, update your status question. :)

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • Just updated to IOS 10 and replace text does not work

    Just updated to IOS 10 and replace text does not work.  For example typing in omg should show oh my God. Has anyone else got this?

    I did the old thing: Disconnect to iCloud and sign back in. Unfortunately, he did not turn. The same thing happened on my iMac when upgrading to Mac OS Sierra - I lost all my text replacement. I also did Disconnect from iCloud and inback Panel . Unfortunately, it also didn't do the trick. Anyone know how to restore the replacement text. It is not has resided in the cloud?

  • Remote control does not work, and the load does not appear on Apple TV

    Hello

    I just returned from vacation and my remote seems has stopped working.   Naturally, my first assumption was that the charge was simply exhausted.

    Apparently that was the case.   He seems to have just died.

    I did pay for more than two hours and it still does not appear under devices Apple TV.

    My Apple TV 4 works very well because I use the remote control of my phone to navigate through it.

    If I understand correctly what I look at you, it seems that the remote control is same not synchronized or recognized by Apple TV more.

    Any suggestions on how to fix this?

    A reset is complete? Restart... no change.

    Thank you

    Bob

    1. Have you tried pressing the menu and the button for a few seconds while it now an inch or two away from the Apple TV, if successful, you should see a message on the screen saying the remote was paired.
    2. If you have an older remote from a previous model MacBook or Apple TV, you can use to restore the Apple TV, which, in many cases, has been sufficient to reactivate the remote Siri. You must complete all upward to undertake a restoration.
    3. If you have a USB cable - C you can try to restore by connecting it to iTunes on a computer.
    4. If you have tried all of these steps, don't have a distance sooner or a USB - C cable or their use is too inconvenient, return it to the store where purchased for a replacement, or to couple for you.
  • I can't log in to my account to Mozilla, and Password Reset does not work.

    I have an account to create themes and Mozilla Add-ons, but now it seems inactive,
    and password reset does not work. Here is one of my themes:
    https://addons.Mozilla.org/en-us/Firefox/addon/Fox-December/
    my email: [email protected]

    Support for the site Add - ons are here:
    https://discourse.Mozilla-community.org/c/Add-ons

  • My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    Right-click on the header at the top of the list of messages and select from the list of options.

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and reinstalling and it still does not work.

    The sign + to add a new tab has suddenly stopped to work earlier. I tried uninstalling and reinstalling and it still does not work. What can happen and how to fix it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • The top of page 1 1/4 inch has no answer whin you click on it. As in this page, sign in or register and other app does not work. in English

    The top of page 1 1/4 inch has no response when you click it. As in this page, sign in or register and other app does not work. in English

    This problem can be caused by that extended the Yahoo! toolbar or extension of Babylon also well down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • WiFi and apple tv does not connect for Colocation

    WiFi and apple tv does not connect for home sharing

    Please give more details about your configuration, the version of the Apple TV and software, home sharing server, etc. Others here know much more about it as I have, but they will need a clear description of the problem. You can also try to search for this site for home, sharing problems and take a look at any recent threads that you present to.

    You use the same Apple ID everywhere? ATV currently sems to have problems with Apple improved authentication protocols, so I hope they are not turned on for your Apple ID. You have enabled sharing House in configuration of the ATV?

Maybe you are looking for

  • to view read-only slowerconnection charge?

    Since the update, then reinstall firefox and windows 7 Edition family, I get this message when you try to view google calendar. It works in Internet explorer, but I don't want to use it. I tried an earlier version of firefox and still no joy.

  • How can I get Firefox starts automatically when you start of OS 10.6.8 on iMac?

    Have been hunting everywhere for certain types of file on the system so that Firefox should start automatically when the computer starts. Find anything obvious. Any suggestions?

  • Error code fatal power saver: 0x2 - Equium A100-147

    Hey,. I just formatted my HARD drive and re installed windows xp family. Been downloading drivers and everything was fine until that energy savings. After that I installed it, I got a message saying + a fatal error has occurred. The program will end.

  • Satellite L300-1BW - installing drivers for XP

    I had to reinstall Windows XP on my laptop and, of course, with all that goes back to zero. I had to install drivers etc, but with me being is not an expert in this area and I really need help finding anything. I need to do to sort the video card, wh

  • Sound no longer works after reinstalling Windows XP

    My hard drive crashed, so I had to reinstall Windows XP. My sound no longer works, and I've tried everything... followed all instructions and advice from support and still NOTHING. My devices does not even appear in sounds and Audio devices... all gr