Displaying Content from a MySQL Database in a Webpage

  Рет қаралды 36,329

Adam Thomas

Adam Thomas

Күн бұрын

Пікірлер: 40
@dailydose7151
@dailydose7151 3 жыл бұрын
Never stop posting ,this channel got so much potential I really appreciate the help
@codeadamca
@codeadamca 2 жыл бұрын
Great, thanks!
@johnbryan1523
@johnbryan1523 Жыл бұрын
Thank you for helping me get mine going. Pretag is something I guessI've ignored for years! Great video!
@codeadamca
@codeadamca Жыл бұрын
Thanks! The pre tag is helpful to read a large dumps of data. I would never actually use it on a live website, just for debugging.
@lavendercode
@lavendercode 2 жыл бұрын
WOW!!! Exactly what I needed. Thank you for this walk through, Adam! Your efforts are appreciated.
@dragonjarl
@dragonjarl 2 жыл бұрын
Very useful and well presented teaching. The pacing is just right and slowly spoken 🙂 I think the music detracts from the tech content though, us geeks are here to listen to what you say, not hear music ;-)
@codeadamca
@codeadamca 2 жыл бұрын
Good feedback! Maybe I'll remove the music altogether. I'm trying to appear like I know how to edit videos. :)
@dragonjarl
@dragonjarl 2 жыл бұрын
@@codeadamca sound good! Keep up the good work 👍
@PixieSpright
@PixieSpright 3 жыл бұрын
Extremely helpful, and I love your teaching style. Hope your channels sees exponential growth!
@codeadamca
@codeadamca 3 жыл бұрын
Thanks so much!
@LakWat
@LakWat 11 ай бұрын
Literally exactly what I needed. TYSM!!!
@onipaba1469
@onipaba1469 3 жыл бұрын
Thank you senior! Very useful information
@reneleeman3186
@reneleeman3186 2 жыл бұрын
helped a lot, thanks!
@the-beauty-of-creativity2083
@the-beauty-of-creativity2083 Жыл бұрын
Great video. Thanks
@Rayan-rn9wm
@Rayan-rn9wm 2 жыл бұрын
Thank you LEGEND !
@timbordasch4118
@timbordasch4118 2 жыл бұрын
12:50 I am using a different provider > how do you open your webpage? I also tried the Localhost link, but it didnt work
@codeadamca
@codeadamca 2 жыл бұрын
Using a different host should not matter, most hosts follow the same process. Sometimes the folder you upload your code to has a different name, maybe html, www, public, htdocs, etc...
@walaress
@walaress Жыл бұрын
Is it possible to input formulas in myPHPAdmin?
@joziermaster3269
@joziermaster3269 3 жыл бұрын
I love you😭😭😭
@krystalmorris9645
@krystalmorris9645 2 жыл бұрын
Hey Adam! Do I need to save the PHP file somewhere special? I've never used Visual Code before, I'm just using Notepad. I did everything just like you did but it doesn't seem to be making a connection to the local host like at 13:07. So I was wondering if maybe you saved the file at a specific place or something to get it to connect.
@krystalmorris9645
@krystalmorris9645 2 жыл бұрын
Nevermind....I fixed it haha! This video was such a HUGE help btw. Thanks!! :)
@codeadamca
@codeadamca 2 жыл бұрын
Glad you figured it out! Glad the video was a help!
@gappuma7883
@gappuma7883 Жыл бұрын
for me it starts downloading the php page instead of showing it, also i'm missing a "my wbesite" in MAMP localhost
@codeadamca
@codeadamca Жыл бұрын
You will need to make sure you are testing the PHP script using a server. Either uploading your PHP to a host or using something like MAMP.
@gcgc8781
@gcgc8781 2 жыл бұрын
So the username and pw is just in the sourcecode? Isnt this unsafe or something?
@codeadamca
@codeadamca 2 жыл бұрын
PHP is a server-side language (unlike HTML, JavaScript, and CSS). When a PHP file is visited in the browser, the code is converted from PHP to HTML before it leaves the server. All PHP is removed from the file.
@gcgc8781
@gcgc8781 2 жыл бұрын
@@codeadamca thank you!
@EDC.EveryDayCode
@EDC.EveryDayCode 2 жыл бұрын
Can u zoom in your code quite a bit? it's too small to read easily. Also wondering would u use mysqli() these days or PDO? I don't know PDO that well and mysqli seems to do the job but I'm worried about security...
@codeadamca
@codeadamca 2 жыл бұрын
I would use PDO. However, when teaching I often start with mysqli and progress to PDO. If you use mysqli properly it's still quite secure. There's a good discussion here: stackoverflow.com/questions/13569/mysqli-or-pdo-what-are-the-pros-and-cons And sorry for the small fonts. The fonts are larger in more recent videos.
@EDC.EveryDayCode
@EDC.EveryDayCode 2 жыл бұрын
@@codeadamca Cool, thanks for the advice and reply ill check out the stackoverflow link, ive got the code written in mysqli (its a fairly big project) and its neat to think about how to switch it over.
@WhiteOwl12
@WhiteOwl12 2 жыл бұрын
If I misstype root it doesn't even give me an error.
@codeadamca
@codeadamca 2 жыл бұрын
Strange. I assume you would have received some sort of MySQL connection error.
@eiantala9200
@eiantala9200 3 жыл бұрын
Can i use my sql trigger in this?
@codeadamca
@codeadamca 3 жыл бұрын
More details would be helpful. I have never used an SQL trigger before. But from what I do know about them, they are usually connected to an INSERT, UPDATE, or DELETE. This example only uses a SELECT.
@4amwaj
@4amwaj 3 жыл бұрын
thanks!
@kidmyn
@kidmyn 2 жыл бұрын
Thanks for this great tutorial, much appreciated. I just have two questions. 1. If you already have a MySQL table with the same values that you created in PHP, would you just import that into PHP instead? 2. If you wanted to display your values in tables, as you would see when entering your data in PHPMyAdmin, would it be CSS or HTML that would get it to be formatted as a table?
@codeadamca
@codeadamca 2 жыл бұрын
1. Sorry if this first answer is not helpful, I'm not quite sure I understand the first question. If you have data inside a MySQL table, you would not also put that data in your PHP. This way if your database data is updated, your website reflects those updates. Your PHP would use SQL to load the data into a MySQL result and then use PHP loops and arrays to display the data. 2. If you want to display the data inside a table, you would use HTML tables. In my video I format the data using paragraph and header tags, you would just replace those tags with table, tr, and td tags. I will add this to my list of videos to make, but it might be a while. For now, here is a similar question posted on StackOverflow: stackoverflow.com/questions/17902483/show-values-from-a-mysql-database-table-inside-a-html-table-on-a-webpage Hope that helps!
@diggee172
@diggee172 2 жыл бұрын
I wish you had used the entire screen to demonstrate things. I don’t have one of those huge monitors so I can’t read what you displayed. Also it wold be better to see what you are writing then your face in the corner of screen. imho
@codeadamca
@codeadamca 2 жыл бұрын
Thanks for the feedback! Sorry about the small text, in my more recent videos I have larger text.
Creating Custom PHP Functions
11:40
Adam Thomas
Рет қаралды 713
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 31 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 36 МЛН
Web Database Applications With Php And MySQL
29:11
Framework Tech
Рет қаралды 81 М.
Save HTML Form Data to a MySQL Database using PHP
24:38
Dave Hollingworth
Рет қаралды 215 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 90 М.
What is a Server? (Deepdive)
17:51
LiveOverflow
Рет қаралды 189 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
LAVROV's interview with Tucker CARLSON 😁 [Parody]
8:34
Юрий ВЕЛИКИЙ
Рет қаралды 309 М.
Scraping Data from a Real Website | Web Scraping in Python
25:23
Alex The Analyst
Рет қаралды 522 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 106 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 31 МЛН