PROBLEM How can we select the <li> element that is a direct parent of the anchor element? Below is an example CSS, Tips : There are ways of doing this...
PROBLEM Chrome supports the placeholder attribute on input[type=text] elements,But CSS doesn’t squat to the placeholder’s value: Value will still...
There are different types of joins available in SQL: INNER JOIN OUTER JOIN LEFT OUTER JOIN RIGHT OUTER JOIN FULL OUTER JOIN INNER JOIN: (the typical Join...
PROBLEM Since MySQL doesn’t seem to have any ‘boolean’ datatype, which datatype do we ‘abuse’ for storing true/false information...
PROBLEM When we setup a new server, and need to support UTF-8 fully in our web application. It seems to end up having to fallback to ISO-8859-1. Where we need...
PROBLEM The MySQL command line utility is used to navigate through a database. Now we need to see a list of user accounts. How to get a list of MySQL user...
PROBLEM Would you recommend using a datetime() or a timestamp () field, and why (using MySQL)? we working on PHP server side. SOLUTION 1 Timestamps in MySQL...
PROBLEM In my table set the width of the first cell in a column to be 100px. However, when the text in one of the cell in this column is too long, the width of...
PROBLEM Is there a way to resize (scale down) images proportionally using ONLY CSS? We can resize the image using JavaScript way, but just trying to see if...
PROBLEM How to display PHP Errors? On checking our PHP ini file and the display errors is set and also error reporting is E_ALL. After restarting our Apache...
PROBLEM regex for email validation – There is a several PHP programs. Get contacted by someone that is having trouble with a site that uses it, and we...
PROBLEM In this sample code: How to write the statement in a proper way If ($a contains ‘are’)? SOLUTION 1 The strpos ().strpos. php function is...
[Solved –10 Answers] PHP - Which is the best way to sanitize user input in PHP? - Is there a catchall function somewhere that works well for sanitizing user
[Solved - 10 Answers] - PHP- Php and Enumerations - PHP doesn't have native Enumerations. But it become accustomed to them from the Java world Constants
[Solved –10 Answers] PHP - How to get the client IP address in PHP? - How can we able to get the client IP address using PHP? We want to keep record of
[Solved- 7 Answers] PHP - How to expire a PHP session after 30 minutes?-We need to keep a session alive for 30 minutes and then destroy it
[Solved- 4 Answers] HTML- html select readonly - how to set select element as readonly -According to HTML specs, the select tag in HTML doesn't have a read
[Solved – 4 Answers] HTML - HTML Anchors with 'name' or 'id' - How to use 'name' or 'id' in html anchor? When one wants to refer some part of a webpage
[Solved - 3 Answers] JAVASCRIPT - remove html tag - How to remove html tags from string,Is there an easy way to remove html tag from string?
[Solved – 5 Answers] HTML - CSS - select a radio button by default - we have some radio buttons and when we tried to be set as selected by default