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.


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:


this will echo “y”.

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