5787 Views
Create records and send data in database table
To insert a data into a database we use the Insert query
add_student.php
<?php
if (isset($_POST['submit'])){
$name = $_POST['name'];
$address = $_POST['address'];
$class = $_POST['class'];
$connection = mysqli_connect('localhost', ...
Anamika Gupta
Sep 04, 2018
3315 Views
Math Functions is used to hold the integer and float value within a certain range.
1. abs :-
It is used to give the result in a positive number of distinct numbers.
<?php
echo(abs(90.7) . "<br>");
echo(abs(-78.744) . "<br>");
echo(abs(-300) . "<br>");
echo(abs(3));
?>
Output
90.7
78.744
300
3
2. ...
Anamika Gupta
Aug 03, 2018
2477 Views
Function play an important role in programming language as it organise our code in a proper manner. We can use our code over and over by naming it only. The function works very similar to variable, but they are more powerful than that.
Function Syntax
<?php
function functionName() {
// ...
Anamika Gupta
Jul 10, 2018