* Kurzbeschreibung : Datenbankschicht fuer MySQL 3/4/5 Server (MySQLi)*
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2015 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Checks whether given link is a valid SQL link
function isValidSqlLink ($linkInstance) {
- // Is it a resource?
+ // Is it an object?
$isValid = (($linkInstance instanceof mysqli) || ($linkInstance instanceof mysqli_result));
// Debug message
return $isValid;
}
+// Checks whether given result is really a result
+function isSqlResult ($resultInstance) {
+ // Is it a resource?
+ $isValid = ($resultInstance instanceof mysqli_result);
+
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'resultInstance[]=' . gettype($resultInstance). ',isValid=' . intval($isValid));
+
+ // Return result
+ return $isValid;
+}
+
// [EOF]
?>