diff --git a/app/Helpers/.DS_Store b/app/Helpers/.DS_Store new file mode 100644 index 0000000..5c7ecad Binary files /dev/null and b/app/Helpers/.DS_Store differ diff --git a/app/Helpers/BibClass.php b/app/Helpers/BibClass.php new file mode 100644 index 0000000..13feb08 --- /dev/null +++ b/app/Helpers/BibClass.php @@ -0,0 +1,194 @@ + + + + +
+ $field; + } else { + return "Not Found in Table"; + } + } + static function getRow($tableName, $condition = "1") + { + $tableName = strtolower($tableName); + $t = "select * from $tableName where $condition"; + $Value = DB::select($t); + return (empty($Value) ? "Not Found" : $Value[0]); + } + static function getRowByQuery($query) + { + $Value = DB::select($query); + return (empty($Value) ? false : $Value[0]); + } + static function getTableByQuery($query) + { + $Value = DB::select($query); + + return (empty($Value) ? false : $Value); + } + static function updateRow($tableName, $fieldName, $fieldValue, $referenceField, $referenceValue) + { + $tableName = strtolower($tableName); + $t = "update $tableName set $fieldName='$fieldValue' where $referenceField=$referenceValue"; + return DB::select($t); + } + public static function pre($array) + { + echo ""; + print_r($array); + echo ""; + } + public static function addButton($path, $text) + { + ?> + + + + +
+ | + + + + +
---|
$TableCol; ?> + | + + + +