Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Reported for Version 2.08 » View Incident Report |
Serious |
Reported By: Uli Becker Reported On: 6/16/2012 For: Version 2.08 Build 3 |
<?php header('Content-type: text/html; charset=utf-8'); if (!extension_loaded('edb')) { dl('php_edb.dll'); } $con = edb_connect("type=local;configpath=C:\\unicode;database=Uli32;uid=Administrator;pwd=EDBDefault"); if (!$con) { die("Could not connect: " . edb_errmsg()); } echo "ConfigPath: " . edb_connset($con,"configpath") . "<br>"; echo "Databasename: " . edb_db($con) . "<br>"; $cmd = edb_prepare($con,"SELECT FirstName, LastName, Phonenumber FROM AddressBook"); $cursor = edb_execute($cmd); echo "Number of Columns: " . edb_colcount($cursor) . "<p>"; echo "<table border=\"1\" cellpadding=\"3\">"; echo "<tr>"; for ($i = 0; $i < edb_colcount($cursor); $i++) { $colinfo = edb_colinfo($cursor,$i); echo "<td>" . $colinfo["Name"] . "</td>"; } echo "</tr>"; while (!edb_eof($cursor)): echo "<tr>"; for ($i = 0; $i < edb_colcount($cursor); $i++) { $col = edb_getcol($cursor,$i); if (is_null($col)) echo "<td>NULL</td>"; else echo "<td>" . $col . "</td>"; } echo "</tr>"; edb_next($cursor); endwhile; echo "</table>"; edb_disconnect($con); ?>
This web page was last updated on Wednesday, March 20, 2024 at 07:22 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |