5175 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
2652 Views
To collect and use form data in PHP  Checking the data for form submission in PHP To check the form data in PHP 1. We use the isset()  function to check  that the variable is established or not .The isset() function return  false if variable testing  variable ...
Anamika Gupta
Aug 28, 2018
2699 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
2699 Views
1. array_change_key_case :-  It changes all the keys of  an array in uppercase. <?php $employee_id=array("Jim"=>"40535","Krish"=>"83007","Joe"=>"41233"); print_r(array_change_key_case($employee_id,CASE_UPPER)); ?> Output Array ( [JIM] => 40535 [KRISH] ...
Anamika Gupta
Jul 23, 2018
3683 Views
String is used to handle a function it is a sequence of characters .There are some of the string with example. 1. addcslashes :- It return the String with backslashes before the character. <?php echo addcslashes('Hello[ ]', 'A..z'); ?> Output \H\e\l\l\o\[ \] 2. addslashes ...
Anamika Gupta
Jul 14, 2018
1953 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
Page 1 of 1 Pages       Total Records 6
  • First
  • Prev
  • 1
  • Next
  • Last