-5
$sql_select3 = "UPDATE `pdfhash` 
SET `PdfHash` = '$pdf1hash',`DateModified` = '.$date.' 
WHERE `Filename` ='current.pdf'";

この SQL ステートメントは、次のエラーを返します。

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current.pdf'',`DateModified` = 'Thursday the 30th ' WHERE `Filename` ='.current.' at line 1
4

4 に答える 4

4

このような誤った引用の使用、

$sql_select3 = "UPDATE `pdfhash` SET `PdfHash` = '$pdf1hash',
               `DateModified` = " . $date ." 
                WHERE `Filename` ='current.pdf'";
于 2013-05-30T09:11:06.460 に答える
0

$sql_select3 = "UPDATE pdfhashSET PdfHash= '$pdf1hash', DateModified= '".$date."' WHERE Filename='current.pdf'";

「.$日付。」に

'".$date."'

于 2013-05-30T10:12:41.060 に答える