使用jQuery-File-Upload成功上传后运行SQL [英] running SQL after successful upload with jQuery-File-Upload

查看:124
本文介绍了使用jQuery-File-Upload成功上传后运行SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里不在我的舒适范围内,可以寻求帮助.我正在使用jQuery-File-Upload插件将文件上传到目录.成功上传后,我想对数据库运行SQL查询.我在哪里做?是回调函数吗?

I am way out of my comfort zone here and could use some help. I am using the jQuery-File-Upload plugin to upload files to directory. On the success of the upload I would like to run an SQL query to my database. Where do I do this? Is it with the callbacks?

我正在使用upload.class.php

推荐答案

您可以使用功能移动上载的文件 如果这些返回TRUE,则可以运行查询.

You can check if your file is uploaded on the server with the function is_uploaded_file or move_uploaded_file If these return TRUE you can running your query.

这篇关于使用jQuery-File-Upload成功上传后运行SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆