Php : How To Insert Data Into MySQL Database Using Php MySQLI [ with source code ]

Php : How To Insert Data Into MySQL Database Using Php MySQLI [ with source code ]

1BestCsharp blog

8 лет назад

90,079 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yosrayari9555
@yosrayari9555 - 06.12.2021 21:49

THANK YOU SO MUCH 🙏🙏

Ответить
@jkstamiltv
@jkstamiltv - 14.07.2020 04:26

Lots of Thanks, sir.

Ответить
@NotMarkKnopfler
@NotMarkKnopfler - 23.06.2020 15:35

THANK YOU for not including awful deafening rave/electronic music. No, really. Thank you!!

Ответить
@TECHnicalEra12
@TECHnicalEra12 - 10.06.2020 03:34

error : Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean

Ответить
@rajeshluthra9643
@rajeshluthra9643 - 15.04.2020 11:15

its great Thanks but U had not explained how to remove warning which is associated with
mysqli_free_result(). Please explain.

Ответить
@JonathanEverts
@JonathanEverts - 09.04.2020 18:19

It was really helpful, thanks you so much

Ответить
@nahilibekele5563
@nahilibekele5563 - 02.02.2020 11:01

Plz how did u create "test_db"

Ответить
@nazmunnaharkeya764
@nazmunnaharkeya764 - 21.03.2019 16:26

Thanks a looooooooooooooooooooooooooooooottttttttttttttttttttttttttttttttttttt

Ответить
@marcelomartinez6380
@marcelomartinez6380 - 24.07.2018 16:16

me salvaste el culo gracias y saludos cordiales.

Ответить
@henryabirafeh2835
@henryabirafeh2835 - 18.01.2018 08:05

dude you referencing a file PHP_insert_data_mysql_database.php and you dont mention where it is ???? Dont like that! Be straight up!

Ответить
@salvadorcossa3265
@salvadorcossa3265 - 27.10.2017 17:26

when I click submit the data inthe fields are just deleted and nothing goes to database

Ответить
@novanjayesconde3569
@novanjayesconde3569 - 07.09.2017 10:05

error 404 when pressing submit

Ответить
@arnabbhattacharya448
@arnabbhattacharya448 - 18.05.2017 18:56

$result = mysqli_query($query,$connect);

Ответить
@sybertv
@sybertv - 01.05.2017 21:29

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\index.php on line 169

Ответить
@DhirajKumar-zr1xp
@DhirajKumar-zr1xp - 28.04.2017 02:18

data not inserted
showing

Ответить
@visha8621
@visha8621 - 05.03.2017 18:22

Thanks a lot. Its working, uff after working on this a whole day. Finally....

Ответить
@swa2300
@swa2300 - 04.01.2017 10:37

error showing "no databasr selected"

Ответить
@bondhicel468
@bondhicel468 - 31.12.2016 18:12

THANKS A LOT BRO

Ответить
@ChrisYPQ
@ChrisYPQ - 23.10.2016 02:45

my page also does nothing when I press submit

Ответить
@en.pavankumar
@en.pavankumar - 26.08.2016 15:54

sir can i know how to retrieve data using php code by a single click

Ответить
@jhunanthonyopena2865
@jhunanthonyopena2865 - 16.08.2016 14:33

im sorry but i follow all the process seems still cant insert data to my database when i tried to click submit its do nothing
Thanks

Ответить
@laludavara4787
@laludavara4787 - 06.07.2016 18:36

<?php
$con=mysqli_connect('127.0.0.1','root','');
if(!$con)
{
echo 'not connected server';
}

if(!mysqli_select_db($con,'al'))

{
echo 'database not connected';
}

$id=$_POST['id'];
$name=$_POST['name'];
$email=$_POST['email'];
$gender=$_POST['gender'];
$birth_date=$_POST['birth_date'];
$address=$_POST['address'];
$mobileno=$_POST['mobileno'];

$sql="INSERT INTO `al`(`id`, `name`, `email`, `gender`, `birth_date`, `address`, `mobileno`) VALUES ([$id],[$name],[$email],[$gender],[$birth_date],[$address],[$mobileno])";

if(!mysqli_query($con,$sql))
{
echo 'not inserted';
}
else
{
echo 'inserted';
}
?>


can u solv it?

Ответить