다시. 저는 PHP에 정말 익숙하지 만 연습하기가 정말로 힘들었습니다. 그래서 용어는 지금은별로 없습니다.PHP 삽입 표 문제
현재 내 문제는 내 CMS가 MySQL 테이블에 데이터를 제출할 수없는 것입니다.
<?php
include('includes/functions.php');
if(isset($_POST['submit'])) {
if(isset($_POST['entTitle'])) {
newEntry($_POST['entTitle'],$_POST['entDesc'],$_POST['entCont']);
header("Location: entries.php");
} else {
echo "Please fill out all fields!";
include('newEntry.php');
}
}
?>
나는 믿을 수 없을만큼 해요 : 포스트를 만들기 위해 파일 사이에 여기
<form action="doNewEntry.php" method="post">
<textarea name="entTitle" id="entTitle">Entry Title</textarea><br>
<textarea name="entDesc" id="entDesc">Input Description Here</textarea><br>
<textarea name="entCont" id="entCont">Type and format content here! What you see, is what you get.</textarea><br>
<script>
CKEDITOR.replace('entCont');
</script>
<table><td colspan="2"><input type="submit" name="submit" /></td></table>
</form>
된다 : 여기
function newEntry() {
$query = mysql_query("INSERT INTO entries VALUES(null,'name','description','content')") or die(mysql_error());
}
가 제출 내용에 대한 내 양식입니다 : 여기 제 기능입니다 이것에 대해 새로운 점은 의심 할 여지없이 아주 간단한 해결책입니다. 어쩌면 그냥 뭔가 놓친지만 정말 그것을 알아낼 수 없습니다. 문제를 추가하십시오. :(
newEntry 호출을 수행하지만 newEntry 함수에서 매개 변수를 얻지 못했습니다! –