The content delivery style is excellent. No Fluff. I loved that.
@appleproahed6 жыл бұрын
Hello Daniel, Just a heads up when you show us a dump from a print_r then instead of just doing that, so it looks so messy, then arooung the print_r(); you can echo '' and close it after the print_r functions like echo '' and you will get a much more clean look..
@alrenjaygabasan88383 жыл бұрын
This gives me a head start, because i code in another class which doesn't give the require output on my code thanks a bunch.
@toast_hawaii5 жыл бұрын
Thank you dude, im currently at my exams and you really helped me out. You dont know how much you helped people around the word with this video
@abzalbotbayev5 жыл бұрын
OMG, thx bro. I'm about 10 days can't understand how this work. This video is helpfull!
@fadhilaasyam58954 жыл бұрын
Hi daniel, thans god you very help me out on my final project. This was very perfect solver for machine learning development. Love you, i'll promote ur channel as i cant give nothing. I am from indonesia btw. Thx
@nikolaoschairopoulos90054 жыл бұрын
thank you so much!! you help me for my database project for the university (hello from Athens)
@KwibusOnTour5 жыл бұрын
Hey, I learn a lot from this channel. I'm just a beginner in php and mysqli. Yet I already have a compexe question. I am looking for a code / instruction how to make a matrix (multiple dimensional array ????? (I don't know)). What I have is a three table database table 'user' a table 'role' and a connection table 'person2role'. Now I am looking at how I can display the roles horizontally and the users vertically. where the tables intersect should be a +. for example: role1 role2 role3 user1 x user2 x x user3 x
@cacurazi6 жыл бұрын
For a better overview of your array do this:
@LearnProgrammingYourself5 жыл бұрын
very nice approach of explanation.Thank you, sir.
@invsg50723 жыл бұрын
very well explained! Thank you so much!
@nogafouz21742 жыл бұрын
really you have awesome way in explain
@paulklimenko84195 жыл бұрын
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.
@JOHNSWORLD-kw8zr7 ай бұрын
Thank you Sir . 'helped a lot.
@atendimentorocodd66315 жыл бұрын
You just saved me. Thanks a lot!
@Holycrabbe7 жыл бұрын
if I could slam a super like button i had done so! thank you my fine sir :D !
@Dani_Krossing7 жыл бұрын
[!!SLAM!!] !!! .. .. .. .. ) ) ) ) ) ) ) ) O: ! (me taking the full force of the shock wave)
@khudaijasiddiqui47494 жыл бұрын
mmtuts i is shaken .O.
@antoniofuller23313 жыл бұрын
Hulk smash the subscribe button
@eminaliyev49534 жыл бұрын
For printing all the rows you can try that: for($i = 0; $i < (mysqli_num_rows($result)); $i++){ foreach($data[$i] as $item){ echo $item." "; } echo ""; }
@nakiapringley53913 жыл бұрын
Great video 💯💯💯💯
@pushparajvaghela34766 жыл бұрын
Would it not be better if you use references like : 1D Arrays -> | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 2D Arrays -> | 00 | 01 | 02 | 03 | | 10 | 11 | 12 | 13 | | 20 | 21 | 22 | 23 | | 30 | 31 | 32 | 33 | 3D Arrays -> as cubes instead of just saying multi-dimensional array Also you should explain how the mysqli_query() function returns the result like id text ------------------------- 0 | 1 | Hi | -> Array 1 1 | 2 | there | -> Array 2 2 | 3 | friend | -> Array 3 ResultArray = ( Array1, Array2, Array3 ) ;
@dantewins5 жыл бұрын
love your videos
@abbashomayooni47495 жыл бұрын
Hi Daniel, thank you for this tutorial, it's very helpful. but where are the 36-44 episodes ??!! there're missing. please advise. thank you
@jiph2945 жыл бұрын
Wow. You helped me out so much
@ScreenPrintR8 жыл бұрын
As I've been flollowing your tutorials, other subjects on KZbin pop up. Several have been Learn to send SMS Text in PHP. Why would someone want to send or receive text, and how would we implement such an application?
@taynarabarboza58423 жыл бұрын
thank you!
@gazwanhayat26372 жыл бұрын
Thank you very much.
@lasithadulshan73573 жыл бұрын
Thank You!
@shyakaleonce18045 жыл бұрын
Greetings Sir! From your example how could i use to save only these ids,texts in another table? Im using php PDOs? Waiting to hear from you!
@sahinyasar91195 жыл бұрын
can we use object of javascript as like array with foreach in php?
@Kristin-yf9rq4 жыл бұрын
Could this be applied to a java program instead of a website and still work correctly?
@yongxinzhang7546 жыл бұрын
Hi, is it possible that if I only want selected columns in array (not all at once)? Fx. I have 7 columns in my table in database. I only want to insert results from column nr. 6, 1 and 2, and I want to insert these results in this order (row[6], row[1], row[2]). What should I do so??
@peterlustig5025 жыл бұрын
why do you name the part which is connecting to the database and executing a piece of sql code $result ? wouldnt $execute or $sqlCode be better?
@TheClarkKnight97 жыл бұрын
Does anyone know what the best way to pass a multi-dimensional array to a new page is. Is it best to use SESSIONS or to serialise the variable and use POST and then unserialise on the other page? Or is there some other method that would be more appropriate?
@noahbroyles88284 жыл бұрын
1:24: "Which I know is not correct" Big LOL!!! 🤣
@Strelarck4 жыл бұрын
"big lol"
@inadogood58193 жыл бұрын
Hi can you please make a video on how to insert array result into database in PHP?
@mnunez61534 жыл бұрын
hi, i'm stuck on how i can do the reverse, that is, how to insert every data (from the result of COUNTING how many times a word appear in the column) into a table. I was able to display the result, but i need to also insert the data to a table in db. Pls. advice. thanks
@salahuddinakon28356 жыл бұрын
what about if I have some empty row inside column result? how can I escape that empty row? please help....
@abnermolina89626 жыл бұрын
Great!!! thanks i understand it.
@laughout1994 жыл бұрын
Hi am having issue fetching several data from mysql table with repetition, can I get help
@jaydevvara94576 жыл бұрын
How to retrieve data from database and show in different different checkbox?
@pyrocom83384 жыл бұрын
v goooood
@jeffersondulay37565 жыл бұрын
Hello mmtuts how do i compare database data with form input data? They are both sentences, how do i compare each of the words of those data one by one?
@programmerinnovation17826 жыл бұрын
this video is helpfull !!!!
@Nicole-ch1qe5 жыл бұрын
This tutorial playlist has been amazing so far! I'm super new to php coding and I make sure to follow your tutorials asclosely as possible and it has gone well :) I did the same with the code in this video and created the database and table like yours and keep getting this error message: Warning: mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in C:\xampp\htdocs\trialsandtribs\ARRAYS\dbh.php on line 8 connection failed: Access denied for user ''@'localhost' (using password: NO) I don't know how to fix this or where to start. Please help *weeps like child*
@edwinbasa28045 жыл бұрын
Nicole did u put a password in ur code on localhost
@DramaticOgre6 жыл бұрын
Is it possible to get each value inside the text column separately(not all at once)? And also, without referencing the id for each text. Can someone answer this please?
@djleisheng6 жыл бұрын
First, change your $sql variable: // Get only the text column $sql = "SELECT text FROM data"; then leave everything else the same, but change your foreach loop: foreach($data as $d) { foreach($d as $key=>$value) echo "$value "; } Let me know if that's what you were looking for!
@DramaticOgre6 жыл бұрын
Lei Sheng Thanks for your reply. I tried your code and it's echoing out every value from the "text" column. What I'm looking to do is, for example from the text column, run one query and echo out only "Hi", then run another query to echo out only "You". I would like to do this without referencing the id column. If i was using the id as a reference I could change the sql variable to $sql="SELECT text FROM data WHERE id=4" But I would like to do the same task without referencing a primary key. Is there a way to put the column values in a index? [0],[1],[2]... etc
@kevinfoendoe69873 жыл бұрын
@@djleisheng Hii, Do you know how i can access the fetched data in console log for example? I followed the tutorial, and I'm able to echo my results on the screen. But is there a way i can console log the result by typing something in js?
@mydimeisup51038 жыл бұрын
Cool video but quick question. How would this be helpful in the sense that I can just use fetch assoc $row[]
@Dani_Krossing8 жыл бұрын
Like the video says towards the end, when we get into OOP PHP later on, we will need to pass on our database data between multiple documents and OOP classes. One way of doing this is by inserting our results into an array. I could also imagine there being other uses for this besides OOP, which makes it useful for people who might be searching for a way to do this. :)
@mydimeisup51038 жыл бұрын
Ahh ok, thanks for the info.
@dc4rts7664 жыл бұрын
after inserting array to database how about updating it using php
@rahullingan21194 жыл бұрын
Hii... For this below lines... foreach ($datas as $loopvar ){ echo $loopvar['text']; } I'm getting this Notice: undefined index:text in c:\..... Can u help me on this.?!
@hkn55392 жыл бұрын
Can someone help: in fact there is no difference between the array result and the array datas. Is that right?
@legendofgaming84812 жыл бұрын
I am getting this error: Cannot use a scalar value as an array
@jayveepontanares58376 жыл бұрын
how to put these into count array?
@NicolasSouzaNCS_ofc4 жыл бұрын
I try this but returns from the second line ... who i can fix that?
@jacksmith33868 жыл бұрын
Can you please make coffeescript tutorials?
@shrutiupari7 жыл бұрын
how to use insert query and display the inserted data in json format?
@Dani_Krossing7 жыл бұрын
I haven't started a JSON course yet, but it is on my "to-do" list :)
@koby61928 жыл бұрын
Could you help me with my footer? :s
@QuranicWorldSinghateh5 жыл бұрын
hello sir how are you doing, thank you for you tutorial, but i have one issue that i want you to help me because am working on my theist and i have error to submit my student attendance using mysqli array here are the code below ( =========== this part is the form side ======== × Mark Class Attendance Grade *
@dishashetty91326 жыл бұрын
It would be great if you show how to do this in C language
@antoniofuller23313 жыл бұрын
F**k C
@نسائمالجنة-ر5ن8 жыл бұрын
8002f1f9 my ps3 error how to fix it
@aspirine9996 жыл бұрын
- how much data do we need? - like 8 datas
@user-testo213473 жыл бұрын
Nice
@JY-xv7ic7 жыл бұрын
how to insert data array to database?
@Dani_Krossing7 жыл бұрын
If you have a fixed amount of data in your array, you first seperate the array using the PHP explode() function. Then you assign a variable to each data which allow you to insert it into the database using a INSERT statement.
@pianoLee-sx9dx6 жыл бұрын
how do you use the explode function? Is this essential in order to insert into the database?
@pianoLee-sx9dx6 жыл бұрын
but how can you use the explode function to insert into separate rows?
@pro_hacker69694 жыл бұрын
actually data is the plural and datum is singular that's according to my own knowledge
@bradcasper4823 Жыл бұрын
Shouldn't you close the connection?
@Dani_Krossing Жыл бұрын
Connections get automatically closed once the script is done running. 🙂 It's seen as a optional extra step, but you can close it if you want more control over when exactly it closes. You can read more about it here: www.php.net/manual/en/mysqli.close.php
@bradcasper4823 Жыл бұрын
@@Dani_Krossing Thank you, I didn't know this.
@Luism-tz2ey6 жыл бұрын
how to insert into array in pdo?
@Dani_Krossing6 жыл бұрын
My PDO series teaches this.
@mmpadyak74916 жыл бұрын
Hi sir ,
@arnelmaghirang84263 жыл бұрын
Multidimensional array is hard one to understand.
@tunabehe26942 жыл бұрын
Where is the next part bro ???
@Dani_Krossing2 жыл бұрын
In the playlist bro
@tunabehe26942 жыл бұрын
@@Dani_Krossing there are only 15 videos in the php playlist
@Dani_Krossing2 жыл бұрын
No there is 65. Make sure you choose the right PHP playlist on my channel. 🙂 I have 3 different PHP playlists.
@Jay-hr9ci5 жыл бұрын
I'm looking for a way to do the opposite lol
@AlienEyes3 жыл бұрын
I swear, you are getting paid every time you say array or something
@antoniofuller23313 жыл бұрын
I need a raise. Arrays
@Pythogoras570BC Жыл бұрын
Thanks for the presentation. It helped me solving several questions. However, I am using PHP 8.2.2 and the code of the presentation generates an error. I am presenting the problem that might give you an idea for resolving it The code below reads the data $i = 0; $j = 0; while ($row = mysqli_fetch_array($result)) { $dbArr[] = $row; $dbArrTest[$i][$j++] = $row['strName']; $dbArrTest[$i++][$j] = $row['meaning']; } The code below just tests the reading $i = 0; foreach ($dbArr as $strF) { if ($i !== 0) { echo $i . ": " .$strF['strName'] . " : " . $strF['meaning']; echo ""; } $i++; } If $i = 0 --> PHP 8.2.2 generates an error. I have no idea why! I bypassed it by just skipping value $i=0 The same is happening no matter what is the initial value of $i (like 1, 2, 3). My test shows that the problem is generated when rtrying to echo the 1st value of $strF, that is EMPTY!!!