46: Insert data into array in PHP - PHP tutorial

46: Insert data into array in PHP - PHP tutorial

Dani Krossing

7 лет назад

100,206 Просмотров

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


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

@wmrdwijerathna680
@wmrdwijerathna680 - 17.11.2022 08:53

Thank you.keep it up.

Ответить
@dooglive922
@dooglive922 - 15.11.2022 06:14

What IDE is this?

Ответить
@royaleditaudios2277
@royaleditaudios2277 - 04.03.2022 10:30

Thank you Sir!! you helped me with looping elements into an empty array using the array_push THANKS ALOT!

Ответить
@Spirittism
@Spirittism - 24.04.2021 20:23

is there a way to make it neater like not Array or => or [0]?

Ответить
@mnunez6153
@mnunez6153 - 04.12.2020 08:51

hi, i'm stuck on how to insert the array data (derived from COUNTing how many times a word apoear in the column). The code below displays the result, but i need also to insert each data into a table i created. What to do?
$query = "SELECT *, COUNT(jobtitle) FROM workers WHERE ....
$result = mysqli_query($con, query) or die...
$row = mysqli_fetch_array($result, MYSQLI_BOTH);...
<?echo $row['COUNT(jobtitle)'];?>....
It displays the total hired Mason by Employer1, total hired Carpenter by Employer2, total hired Carpenter by Employer1, etc. But how to put this info to a table? Please advice. Thanks

Ответить
@ahmadshommari8386
@ahmadshommari8386 - 11.02.2020 10:24

why lesson 44 is private!!! I cant see the lesson

Ответить
@paulklimenko8419
@paulklimenko8419 - 21.07.2019 03:07

Hello nice tuts. I HAVE A QUESTION. Related to array, can you explain why we put html input checkbox name= "checkbox [ ] " . How those brackets as key can turn into value in an array? I dont get it. Thanks pal you awesome.

Ответить
@codeaxen
@codeaxen - 11.07.2019 02:54

thanks for that highlight thier but have one qn : how do i get to insert into another array like $emparray['movies'][] = array( "casts" => array()) ?????

Ответить
@mortezaaboudi2642
@mortezaaboudi2642 - 02.07.2019 08:32

thanks you are one of my great teacher

Ответить
@JohanBento
@JohanBento - 07.03.2019 19:50

Very instructive! Thank you very much! Greetings from Brazil. :)

Ответить
@pianoLee-sx9dx
@pianoLee-sx9dx - 13.05.2018 08:38

I am trying to insert my <select name="subscriptionplan1"> into the database but for some reason, it won't insert it.

Ответить
@d.dheeraj196
@d.dheeraj196 - 10.01.2018 13:08

Sir do u have any idea about phparc2 library

Ответить
@abdulzz97
@abdulzz97 - 11.11.2017 03:47

the array wont push, still 1 data only, exactly like ur code
<?php
if(isset($_POST['user']) && isset($_POST['pass']))
{
$user = array();
$pass = array();
array_push($user, $_POST['user']);
array_push($pass, $_POST['pass']);
print_r($user);
}
?>
<form action="test.php" method="post">
<input type="text" name="user">
<input type="password" name="pass">
<input type="submit" name="submit">
</form>

Ответить
@phptuts4545
@phptuts4545 - 17.01.2017 22:04

Is it required to use empty array and why we use them, I can't understand the way to use empty array $array = [] ?

Ответить
@user-rv1tn2bm6r
@user-rv1tn2bm6r - 11.11.2016 22:26

Классно/ Cool

Ответить
@pasqualedivincenzo8701
@pasqualedivincenzo8701 - 10.11.2016 16:34

Hi Daniel, I'm new to your channel and I think you are the best teacher around here. I'm recently working on a website for my school project and your tutorials are indeed helping a lot. Working on my website with JavaScript I steped on a problem for which I did not find any explenation to solve. I basically want to be able to click on a link which than sets an image without reloading the page. If I just click a link with an onclick event the image shows of on a blanc website. I really hope you can help me on this.

Ответить
@mydimeisup5103
@mydimeisup5103 - 10.11.2016 03:07

Been a bit since a PHP tutorial.

Ответить