askiw Subscribe

PHP

VAT calculation by percentage

Here you can calculate your VAT according to a set percentage https://vat-calculation.com/ Javascript function to calculate VAT based on a given percentage PHP function to calculate…

How To 1 min read

Replace empty paragraph – WordPress

Replace empty paragraph tags with newline in WP. add_filter( ‘the_content’, ‘askiw_replace_empty_p’ ); Takes all blank paragraphs <p></p> in the body of each article and replaces it…

PHP 1 min read

Go to id

Go to id in HTML Go to id in PHP Go to id in WordPress Home Page Go to id on the same page

HTML 1 min read

How to get the client IP address in PHP

1. Contains the real IP address of the client. $_SERVER['REMOTE_ADDR']  2. Fetch the host name from which the user is viewing the current page.  $_SERVER['REMOTE_HOST']  3. Fetch the…

PHP 1 min read

mysqli_fetch_assoc

PHP function mysqli_fetch_assoc () – Fetch the next row of a result set as an associative array Select password from table users by email

PHP 1 min read

My SQL PHP Connection

Connect to the server. mysqli_connect() function opens a new connection to the MySQL server. Warning: mysql_connect — Open a connection to a MySQL Server but this extension was…

MY SQL 1 min read