Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are The PHP Codes For making and Connecting Oracle Database with one table contain the following ?

ID , Country , city , name , mobile , phone , address

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2014/04/05
Muktar SayedSaleh
par Muktar SayedSaleh , Software Engineering Manager , AIRASIA

try OCI library.

islam khalil
par islam khalil , Technical Manager , iCloudit

Use : oci_connect

oci_connect ( string $username , string $password [, string $connection_string [, string $character_set [, int $session_mode ]]] )

 

 

Haithm Abdulrahman Garallah
par Haithm Abdulrahman Garallah , Head Of Development Dapt. , Sahafah Yemen Agency - sahafahyemen.net

<?php// Connects to the XE service (i.e. database) on the "localhost" machine$conn oci_connect('hr''welcome''localhost/XE');if (!$conn) {    $e oci_error();    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);}$stid oci_parse($conn'SELECT * FROM employees');oci_execute($stid);echo "<table border='1'>\\n";while ($row oci_fetch_array($stidOCI_ASSOC+OCI_RETURN_NULLS)) {    echo "<tr>\\n";    foreach ($row as $item) {        echo "    <td>" . ($item !== null htmlentities($itemENT_QUOTES) : "&nbsp;") . "</td>\\n";    }    echo "</tr>\\n";}echo "</table>\\n";?>

Noor Khan
par Noor Khan , Technical Team Leader , Insightz360

$conn = oci_connect('hr', 'welcome', 'localhost/XE');

 

if (!$conn)

{

   $e = oci_error();

   trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);

}

 

Source: http://www.php.net/manual/en/function.oci-connect.php

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?