$result = SQL_QUERY_ESC("SHOW TABLES FROM `{?__DB_NAME?}` WHERE `Tables_in_{?__DB_NAME?}`='{?_MYSQL_PREFIX?}_%s'",
array($tableName), __FILE__, __LINE__);
+ // Is a link there?
+ if (!is_resource($result)) {
+ // Is installation phase?
+ if (isInstallationPhase()) {
+ // Then silently abort here
+ return FALSE;
+ } else {
+ // Please report this
+ reportBug(__FUNCTION__, __LINE__, 'result[]=' . gettype($result) . ' is not a resource.');
+ }
+ } // END - if
+
// Is there an entry?
$GLOBALS[__FUNCTION__][$tableName] = (SQL_NUMROWS($result) == 1);
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'tableName=' . $tableName . ',numRows=' . intval($GLOBALS[__FUNCTION__][$tableName]));
$columnName
), __FUNCTION__, __LINE__);
+ // Is a link there?
+ if (!is_resource($result)) {
+ // Is installation phase?
+ if (isInstallationPhase()) {
+ // Then silently abort here
+ return FALSE;
+ } else {
+ // Please report this
+ reportBug(__FUNCTION__, __LINE__, 'result[]=' . gettype($result) . ' is not a resource.');
+ }
+ } // END - if
+
// Determine it
$GLOBALS[__FUNCTION__][$tableName][$columnName] = (!SQL_HASZERONUMS($result));
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'tableName=' . $tableName . ',columnName=' . $columnName . ',hasZeroNums=' . intval(SQL_HASZERONUMS($result)) . ',numRows=' . intval($GLOBALS[__FUNCTION__][$tableName][$columnName]));
// Show indexes
$result = SQL_QUERY_ESC("SHOW INDEX FROM `%s`", array($tableName), __FUNCTION__, __LINE__);
+ // Is a link there?
+ if (!is_resource($result)) {
+ // Is installation phase?
+ if (isInstallationPhase()) {
+ // Then silently abort here
+ return FALSE;
+ } else {
+ // Please report this
+ reportBug(__FUNCTION__, __LINE__, 'result[]=' . gettype($result) . ' is not a resource.');
+ }
+ } // END - if
+
// The column is not found by default
$GLOBALS[__FUNCTION__][$tableName][$keyName] = FALSE;