* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.32 2005/06/16 14:40:11 chriskl Exp $
+ * $Id: sql.php,v 1.33 2007/01/10 01:31:18 soranzo Exp $
*/
// Prevent timeouts on large exports (non-safe mode only)
// First, if rows returned, then display the results
if ($rs->recordCount() > 0) {
echo "<table>\n<tr>";
- foreach ($rs->f as $k => $v) {
+ foreach ($rs->fields as $k => $v) {
$finfo = $rs->fetchField($k);
echo "<th class=\"data\">", $misc->printVal($finfo->name), "</th>";
}
while (!$rs->EOF) {
$id = (($i % 2) == 0 ? '1' : '2');
echo "<tr>\n";
- foreach ($rs->f as $k => $v) {
+ foreach ($rs->fields as $k => $v) {
$finfo = $rs->fetchField($k);
echo "<td class=\"data{$id}\" nowrap=\"nowrap\">", $misc->printVal($v, $finfo->type, array('null' => true)), "</td>";
}
/**
* Alternative SQL editing window
*
- * $Id: sqledit.php,v 1.30 2006/06/17 12:57:36 xzilla Exp $
+ * $Id: sqledit.php,v 1.31 2007/01/10 01:31:18 soranzo Exp $
*/
// Include application functions
echo ": <select name=\"database\" {$onchange}>\n";
while (!$databases->EOF) {
- $dbname = $databases->f['datname'];
+ $dbname = $databases->fields['datname'];
echo "<option value=\"", htmlspecialchars($dbname), "\"",
((isset($_REQUEST['database']) && $dbname == $_REQUEST['database'])) ? ' selected="selected"' : '', ">",
htmlspecialchars($dbname), "</option>\n";