Professional Documents
Culture Documents
BALAJI_insert.php:
Source Code:
<html>
<head>
<title>STUDENTS DETAILS</title>
</head>
<body>
<tbody>
<br>
</td></tr>
<tr>
<td>
<br>
<option value="un">Unknown</option>
</select></td></tr>
</div>
</td></tr>
<tr>
</td>
</tr>
</form>
</font>
</tbody>
</table>
</body>
</html>
2.Balaji_ins_data.php:
Source Code:
<html>
<head>
</head>
<body>
<table border='1'>
<?php
$bregno = $_POST["balregno"];
$bfname = $_POST["balfname"];
$blname = $_POST["ballname"];
$bdob = $_POST["baldob"];
$bmobile = $_POST["balmobile"];
$bdept = $_POST["baldept"];
$bmail = $_POST["balmail"];
$bcgpa = $_POST["balcgpa"];
$bgender = $_POST["balgender"];
$bbgrp = $_POST["balbgrp"];
$badd = $_POST["baladd"];
$bcity = $_POST["balcity"];
$bstate = $_POST["balstate"];
$bcode = $_POST["balcode"];
$dsn = "mysql:dbname=mca";
$username = "root";
$password = "";
try {
$st = $conn->prepare($strquery);
$st->bindValue( ":bregno", $bregno, PDO::PARAM_INT );
$st->execute();
echo "<br>";
echo "<br>";
?>
</body>
</table>
</html>
OUTPUT:
FROM MYADMIN DASHBOARD: