本文整理汇总了PHP中Subjects::subjectData方法的典型用法代码示例。如果您正苦于以下问题:PHP Subjects::subjectData方法的具体用法?PHP Subjects::subjectData怎么用?PHP Subjects::subjectData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Subjects
的用法示例。
在下文中一共展示了Subjects::subjectData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Subjects
<?php
session_start();
include '../class/config.php';
include '../class/class_subjects.php';
$subject = new Subjects();
$id = $_GET['id'];
$subject->subjectData($id);
$subject->courseListName($subject->course_id);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$subject_id = mysql_escape_string($_POST['subject_id']);
$name = mysql_escape_string($_POST['name']);
$code = mysql_escape_string($_POST['code']);
$unit = mysql_escape_string($_POST['unit']);
$course_id = mysql_escape_string($_POST['course_id']);
$subject->subject_id = $subject_id;
$subject->name = $name;
$subject->code = $code;
$subject->unit = $unit;
$subject->course_id = $course_id;
$subject->subjectEdit($subject->subject_id);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">