打开config-> database.php
$ database ['localhost'] =''; - >指定您的主机名称
$ database ['username'] =''; - >数据库的用户名
$数据库['password'] =''; - >数据库的密码
$数据库['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);
$查询 - 从table_name选择计数(*);
5.从数据库自定义查询中选择单行:CustomQuerySingle($ QUERY);
$查询 - 从table_name选择计数(*);
6.update数据:updateData($ table,$ update,$ arr)
$更新 - 要更新的数据数组;
7.删除数据:deletedata($ table,$ arr)
1.简单图像上传:image_upload($ image_file,$ image_name,$ save_path)
$ image_file =上传图像。例如$ _files ['image]。
$ image_name =图像的名称(1WAXSC)。不要指定.jpg或.png等。
$ save_path =正确保存图像的路径。
2.Base64到映像和上传:String_image_upload($ image_name,$ image_file,$ save_path,$ width,$ height)。
$ width =保存图像的宽度。 $高度=要保存的图像高度。
3.upload映像(图像压缩):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. iMport excel and View in array:read_excel_file($ file);上传文件。例如$ _files ['文件]
2. excel:convert_excel($ data,$ title,$ filename,$ fontsize);
1. $数据:导出的数据数组。
2. $标题:文件标题。
3. $文件名:保存Excel的文件名。
4. $ fontsize:fontsize。