Visualizzazione dei risultati da 1 a 2 su 2

Discussione: PHP e ORACLE 8.1

  1. #1

    PHP e ORACLE 8.1

    DOMANDA PER I PIù ESPERTI!!!

    AVETE MAI CONFIGURATO PHP CON ORACLE8.1??
    vi spiego
    io lavoro con siebel in telecom (nn so se ne avete sentito parlare!!)
    vorrei configurare php con oracle e i vari ambienti telecom

    cmq avete mai fatto una cosa del genere
    PHP e ORACLE8.1??

    questo è il mio script

    <?php
    putenv("ORACLE_SID=ORCL");
    putenv("ORACLE_HOME=C:\ORACLE\ORA81\NETWORK\ADMIN\ TNSNAMESORA");


    $db_conn = ocilogon("utente", "password");


    $cmdstr = "select x_var_30_2 from s_prod_int";
    $parsed = ociparse($db_conn, $cmdstr);
    ociexecute($parsed);
    $nrows = ocifetchstatement($parsed, $results);
    echo "Found: $nrows results

    \n";

    echo "<table border=1 cellspacing='0' width='50%'>\n";
    echo "<tr>\n";
    echo "<td>Name</td>\n";
    echo "<td>Salary</td>\n";
    echo "</tr>\n";

    for ($i = 0; $i < $nrows; $i++ ) {
    echo "<tr>\n";
    echo "<td>" . $results["x_var_30_2"][$i] . "</td>";
    echo "<td>$ " . number_format($results["SAL"][$i], 2).
    "</td>";
    echo "</tr>\n";
    }

    echo "</table>\n";

    ?>

    ma nn va!!!

    AIUTOO!!!
    fdhnkmjg

  2. #2
    RISOLTOOOOOOO

    SONO TROPPO FORTE
    fdhnkmjg

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.