使用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.