13: Various Conditional Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners

preview_player
Показать описание
Various Conditional Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners. In this PHP tutorial you will learn about if, else, and elseif statements. These statements are used to set specific conditions which needs to be met before certain PHP script is executed, or to decide which of multiple PHP scripts needs to be executed.
These statements are also used frequently when writing PHP code which makes them important to learn.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Рекомендации по теме
Комментарии
Автор

I learned more from your tutorials than 2 years of university. Thank you so much bro :)

ehtshamshahbaz
Автор

Bro you have created Great Tutorials. The Whole world is thankful to you for these nice tutorials. Thanks from Pakistan.

asifC-cdci
Автор

Short and straight to the point. 10 out of 10. Thank you for this series. Internet is a great place after all

allancfc
Автор

شرح ممتاز جدا الى الان انا فاهم
you are perfect thank you

abdallahrashid
Автор

Hi Dan previously, I really hate programming in any language cause I never understand it at all!
Since found your tutorial, I just started to thank about that again.
Thank for your fab work mate.

rugponggrachangpun
Автор

thank u so much brother u deserve a like and a lot of view for videos like this god bless u thanks soo much from morocco❤❤❤❤❤❤

mohammedbrazi
Автор

Thank you so much! You have a very good teaching style and it makes it fun to learn!

birdman
Автор

your video is too good, and also to the point!!!

thesharmaflavorinhindienglish
Автор

1:59 Haha you programmer humor is on point

CaerelsJan
Автор

I learn more from your videos than from my actual professor lol

sooyeon_ah
Автор

Up until now in this course I learned that Daniel is in fact handsome

Salma-qyqb
Автор

thank you very much for the good work ^_^

wawy
Автор

This dude's gonna put college web design out of business.

austingriner
Автор

Hello Dani! Nice video there. I am wondering if these conditional statements can be use to eliminate the zero display on the php/html page? The zero display is the result of empty arrays and data not inserted into mysql database as it is not required. I prefer it to be just blank instead of getting zero display on my page.



if == 0){
echo " "; //attempting to turn zero display into blank

$pdf->Cell(5 , 10, '3.', 0, 0, 'L');
$pdf->Cell(104 , 10, $item['itemName3'], 'R', 0, 'L');
$pdf->Cell(20 , 10, $item['itemQuantity3'], 'R', 0, 'C');
$pdf->Cell(30 , 10, number_format($item['price3'], 2, '.', ''), 'R', 0, 'C');
$pdf->Cell(30 , 10, number_format($item['price3'] * $item['itemQuantity3'], 2, '.', ''), 0, 1, 'C');//end of line

}

I made the conditions by myself and ofc it doesnt work XD. Help! XD

ハリルカミラ
Автор

btw you should do python tutorials the programming language is very similar to php and javascript

antonytome
Автор

I was wondering how he made the text in his browser appear larger, can anyone perhaps tell me how he does it? also, whenever I access the folder with the stuff I made using localhost, it seems to direct me to the index and not the file itself! :'(

andrienjimenez
Автор

why did you hide the like to dislike ratio it's a good video you should be proud of it.

antonytome
Автор

are you from w3school? the guidelines are the same

aaronjosephcarillo
Автор

**writes daniel is very handsome
"if this is true which is actually right now"
🤣🤣🤣

yulose
Автор

Decent tutorial just a bit hard to understand because of your accent and speak a little too fast. Still, I appreciate and thankful for giving us a free tutorials.

cjvaans