Complete PHP Basics Tutorial

.entry-content h3{ background-color: #333 !important; color:#eee !important; padding:5px; border-radius:2px; } .entry-content h2{ background-color: #333 !important; color:#eee ...


Truncate table php code?

It’s quite easy, here is the code.

20999375b04e6029a4ab9d1c9f92b878057

You will also need to declare the $connection variable but I guess that is pretty easy.

So this ...


Ternary if else in PHP, with echo

Here is a good example:

20999375b04e6029a4ab9d1c9f92b878061

this will echo “y”.

You need to put echo in front, you can’t put echo inside the ternary ...