I am using the uploadify script to upload the file as my school project.
// die ($ _SESSION ['id']. '' '[Level'] $ _ session. '); If (! Empty ($ _ files)) {$ tempFile = $ _FILES ['filedate'] ['tmp_name']; $ TargetPath = $ _SERVER ['DOCUMENT_ROOT'] $ _REQUEST ['folder']. '/'; $ Filename = substr (md5 (time ()), 0, 8) "." $ _ Files ['Philadelphia'] ['name']; $ TargetFile = str_replace ('//', '/', $ target path). $ Filename; $ Time = time (); $ Id = $ _SESSION ['id']; $ Sql = mysql_query ("Include files in values (zero, '$ id', '$ targetFile', '$ time')"); Move_uploaded_file ($ tempfile, $ targetFile); Echo "1"; }
The top $ _SESSION ['id'] is working on, but when I enter $ sql, it returns as 0. Any ideas why? I have examined everything again
confused
thanks
It seems that the session does not work well with uploading, I solved it with script data uploadfifth.
Thanks for all the answers.
Comments
Post a Comment