PROBLEM: Given this HTML & CSS: [ad type=”banner”] as a result, there will be a 4px wide space between the SPAN elements. We could get rid of that space by…
Coding
Latest Articles and Errors& Fixes fo popular programming languages like HTML,CSS, PHP, Javascript, Angularjs and more
PROBLEM: How to Stretch and scale a CSS image in the background – with CSS only ? SOLUTION 1: use the CSS3 property to do it . It resizes to…
PROBLEM: With HTML/CSS how to make an element that has a width and/or height that is 100% of it’s parent element and still has proper padding or margins? The parent…
bindParam and bindValue bindValue(), Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called. bindParam() call PDOStatement::bindParam() to bind…
urlencode urlencode — URL-encodes string Description This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass…
There are few ways to change the type of a value from integer to string. In the following you’ll find three ways- Method 1: Applying type casting In this method,…
PROBLEM : We have a bunch of client Point Of Sale (POS) systems that periodically send new sales data to one centralized database, which stores the data into one big…
new self: self points to the class in which it is written. self refers to the same class in which the new keyword is actually written. New static static, in…
PROBLEM : The question is simple. we have a for each loop in our code: In this loop, we want to react differently when we are in first or last…