-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHospitalReg.php
32 lines (22 loc) · 920 Bytes
/
HospitalReg.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
ob_start();
session_start();
include_once 'config.php';
include_once 'check.php';
error_reporting(E_ALL & ~E_NOTICE);
//$error = false;
$fname=$_POST['fname'];
$Rnum=$_POST['Registered Lisence No.'];
$email=$_POST['email'];
$Address=$_POST['Address']
$mobile=$_POST['phone_number'];
$password=$_POST['password'];
$index = mysql_query("select `Index` from hospital_details.sql") ;
$index=$index+1;
echo $index;
$query="INSERT INTO `hospital_details` ('Index','Hname','RegNo','email_id','Address','mobile_number','password') VALUES ('$index',$fname,$Rnum,$email,$Address,$mobile,$password)";
`Index`, `f_name`, `Registered Linsence No.`, `email`,'Address', `phone_number`, `password`
$result=mysql_query($query);
echo $result.mysql_error();
header('Location :listhospital.html');
?>