#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    14
    Rep Power
    0

    Database connection affects page layout


    hi experts,

    i am back again.

    i am developing a php page that connects to oracle via oci. but it is causing layout problem. it looks like page is not fully executing.

    but when i doesn't connect to database , the page layout is perfectly fine.

    thanks in anticipation.

    Athar
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    Hi

    well, so what's your question? We can hardly tell you the reason for the error when all we know is "some database connection code causes some layout problems on some website".
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    14
    Rep Power
    0
    Originally Posted by Jacques1
    Hi

    well, so what's your question? We can hardly tell you the reason for the error when all we know is "some database connection code causes some layout problems on some website".
    here is the code

    if ($connect = oci_connect("slerp", "admin", "192.168.0.100/rdb")) {
    echo "Successfully connected to Oracle.<br>";
    //oci_close($c);
    } else {
    $err = oci_error();
    echo "Oracle Connect Error " . $err['text']. var_dump( oci_error() );
    }

    when i comment this code, the page runs fine.
  6. #4
  7. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    What does the code say? "successfully connected"? "error"? Neither?

    What errors messages do you get? If you've accidentally turned them off, turn them on again with error_reporting(-1).

    Please do some basic work yourself and give us concrete info. Remember that we're not psychic, and we don't have access to your server to test the code.
    Last edited by Jacques1; November 25th, 2012 at 03:17 PM.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    14
    Rep Power
    0
    the code says . successfully connected to oracle.

    sorry for the lake of information in the last two posts.

    i can provide you with db and php script if you like to see.

    thanks
    Athar
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    14
    Rep Power
    0
    Thanks

    its working well now. i replaced oci_connect with oci_pconnect

IMN logo majestic logo threadwatch logo seochat tools logo