我想使用 blueimp pluggin
更新成功上传文件的数据库表说我的更新完成后,我想运行此查询
mysql_query("
UPDATE td_post
SET post_name='$p_name'
,post_image='$img_url'
WHERE user_name='".$_SESSION['logged_user']."'"
);
但是我找不到应该检查返回结果然后更新查询的地方......
答案 0 :(得分:0)
error_reporting(E_ALL | E_STRICT);
require('UploadClass.php');
$upload_handler = new UploadHandler();
$path = "your/upload/path/filename";
if(move_uploaded_file($_FILES['files']['tmp_name'][0],$path)){
//run your query here
}