나는이 문제에 다른 솔루션구문 분석 오류 : 구문 오류, 라인 6
Parse error: syntax error, unexpected T_STRING in /newref-exec.php on line 6
내가 읽고 부하가 계속하지만 비는
<?php
// connect to database
require($DOCUMENT_ROOT . "connect.php");
// check for blank entries
if ($_POST[doi2] == "NULL"){
echo "No Data to add";
}
else
{
$sql="INSERT INTO ref (uid, date, doi, title, year, journal)
VALUES
('1','CURDATE()','$_POST[doi2]','$_POST[title2]','$_POST[year2]','$_POST[journal2]')";
if (!mysqli_query($link,$sql,$con))
{
die('The Reference could not be added, beacuse of SQL Error:' . mysql_error());
}
echo "New Reference Added";
}
?>
($ _POST [ 'doi2'] == "NULL") { – koosa
$ DOCUMENT_ROOT', 나는 희망이 * 뜻 *'무엇'$ _SERVER [ 'DOCUMENT_ROOT']'('register_globals'이해야하는 경우 결코있을 수 없다). –