5789 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
4320 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