PHP Classes

File: api/request/user.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   PHP School Management System with Student Payroll   api/request/user.php   Download  
File: api/request/user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP School Management System with Student Payroll
Manage payments from school students
Author: By
Last change:
Date: 1 year ago
Size: 1,215 bytes
 

Contents

Class file image Download
<?php
    header
("Access-Control-Allow-Origin: *");
   
// header("Content-Type: application/json; charset=UTF-8");

   
include '../config/connection.php';
    include_once
'../class/users.php';

   
$id=NULL;
   
$fname=NULL;
   
$lname=NULL;
   
$sex=NULL;
   
$type=NULL;
   
$phone=NULL;
   
$psdo=NULL;
   
$pswd=NULL;
   
    if(isset(
$_POST['connect'])){
       
$psdo=$_POST['username'];
       
$pswd=$_POST['password'];
       
$user = new users($connexion,$id,$fname,$lname,$sex,$type,$phone,$psdo,$pswd);
       
$user->connexion();
    }
   
   
    if(isset(
$_GET['departement'])){
        switch(
$_GET['departement']){
            case
'getdepartement':
           
$user = new users($connexion,$id,$fname,$lname,$sex,$type,$phone,$psdo,$pswd);
           
$user->getdepartement();
            break;
            case
'gettypeFees':
           
$user = new users($connexion,$id,$fname,$lname,$sex,$type,$phone,$psdo,$pswd);
           
$user->gettypeOfFees();
            break;
            case
'getTransactions':
           
$user = new users($connexion,$id,$fname,$lname,$sex,$type,$phone,$psdo,$pswd);
           
$user->gettypeOfFees();
            break;
        }
    }
   
?>