本文整理汇总了PHP中Students::studentData方法的典型用法代码示例。如果您正苦于以下问题:PHP Students::studentData方法的具体用法?PHP Students::studentData怎么用?PHP Students::studentData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Students
的用法示例。
在下文中一共展示了Students::studentData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Students
<?php
/**
add courses table for database
add cms for courses
**/
session_start();
include '../class/config.php';
include '../class/class_students.php';
$student = new Students();
$id = $_GET['id'];
$student->studentData($id);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$student_no = mysql_escape_string($_POST['student_no']);
$first_name = mysql_escape_string($_POST['first_name']);
$last_name = mysql_escape_string($_POST['last_name']);
$middle_name = mysql_escape_string($_POST['middle_name']);
$course = mysql_escape_string($_POST['course']);
$section = mysql_escape_string($_POST['section']);
$birthdate = mysql_escape_string($_POST['birthdate']);
$email_address = mysql_escape_string($_POST['email_address']);
$address = mysql_escape_string($_POST['address']);
$contact_no = mysql_escape_string($_POST['contact_no']);
//$photo = mysql_escape_string($_POST['photo']);
$student->student_no = $student_no;
$student->first_name = $first_name;
$student->last_name = $last_name;
$student->middle_name = $middle_name;
$student->course = $course;
$student->section = $section;
$student->birthdate = $birthdate;