![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Addressed for Version 2.31 » View Incident Report |
![]() |
Reported By: Mark Ott Nilsen Reported On: 6/28/2019 For: Version 2.31 Build 6 |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $con = edb_connect("type=remote;charset=Ansi;address=address;port=port;uid=user;pwd=password;database=Database"); if (!$con) { die("Could not connect: " . edb_errmsg()); } $cmd = edb_prepare($con,"SELECT * FROM customers WHERE ActivityBy=:Name"); <- This line is #12 edb_setparam($cmd,"Name","Malik"); $cursor = edb_execute($cmd); echo "<table border=\"1\" cellpadding=\"3\">"; echo "<tr>"; // Dump out the column headers for ($i = 0; $i < edb_colcount($cursor); $i++) { $colinfo = edb_colinfo($cursor,$i); echo "<td>" . $colinfo["Name"] . "</td>"; } echo "</tr>"; // Now dump out the rows 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, October 30, 2024 at 11:41 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |