Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = 'PROIECT';
- $password = 'PROIECT';
- $connection_string = 'localhost/xe';
- $connection = oci_connect(
- $username,
- $password,
- $connection_string
- );
- If (!$connection)
- {
- die('Baza de date nu a putut fi deschisa: '.mysql_error());
- }
- $sql = oci_parse($connection,"select * from info_user where email is not null");
- $r = oci_execute($sql);
- print "<table border='1'>\n";
- while($row = oci_fetch_array($sql, OCI_ASSOC+OCI_RETURN_NULLS))
- {
- print "<tr>\n";
- foreach($row as $item)
- {
- print " <td>" . ($item !== null ? htmlentities($item, ENT_QUOTES) : " ") . "</td>\n";
- }
- print "</tr>\n";
- }
- print "</table>\n";
- oci_free_statement($sql);
- // Close connection
- oci_close($connection);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement