config-> database.phpを開きます
$ database ['localhost'] = ''; - >ホスト名を指定します
$ database ['username'] = ''; - >データベースのユーザー名
$ database ['password'] = ''; - >データベースのパスワード
$ database ['database'] = ''; - >データベース名
1.データベースからデータを選択する:selectfromdb($ table_name);
$ table_name-データを取得する必要があるデータベーステーブル。
2.データベースから単一行を選択する:SelectSinglereCord($ table_name、$ arr);
$ table_name-データを取得する必要があるデータベーステーブル。
$ arr:条件がある場合のデータの配列$ arr ['id'] = 1; id = 1の意味
3.データベースからの行の配列を選択する:SelectSinglereCord($ table_name、$ arr);
$ table_name-データを取得する必要があるデータベーステーブル。
$ arr:条件がある場合のデータの配列$ arr ['id'] = 1; id = 1の意味
4.データベースカスタムクエリからの行の配列を選択する:customqueryArray($ query);
$ query -table_nameからcount(*)を選択します。
5.データベースカスタムクエリからシングルローを選択する:customquerysingle($ query);
$ query -table_nameからcount(*)を選択します。
6.Updateデータ:updatedata($ table、$ update、$ arr)
$ update-更新するデータの配列。
7. deleteデータ:deletedata($ table、$ arr)
1.Simple Imageアップロード:Image_upload($ image_file、$ image_name、$ save_path)
$ image_file =アップロードされた画像。例$ _files ['image]。
$ image_name = imageの名前(1waxsc)。 .jpgまたは.pngなどを指定しないでください。
$ save_path =正しいパス画像を保存する場所。
2.Base64画像とアップロード:String_image_upload($ image_name、$ image_file、$ save_path、$ width、$ height)。
$ width =保存する画像の幅。 $ height =保存する画像の高さ。
3.upload image(画像圧縮):upload_image_with_compression($ image_name、$ image_file、$ save_path、$ width、$ height)。
4.uploadビデオ:upload_video($ image_name、$ image_file、$ save_path)。
5.upload pdf:upload_pdf($ image_name、$ image_file、$ save_path)。
6.任意のファイルをupload:upload_any_file($ image_name、$ image_file、$ save_path)。
1.エクセルとアレイでのビュー:read_excel_file($ file);アップロードされたファイル。例$ _files ['ファイル]
2.Export to Excel:convert_excel($ data、$ title、$ filename、$ fontsize);
1. $データ:エクスポートするデータの配列。
2. $タイトル:ファイルのタイトル。
3. $ filename:excelを保存するファイル名。
4. $ fontsize:fontsize。