The SSE is a very useful method to push data from server to client. This article explains the requirement and implementation of SSE with Session so that each of the connected clients get customized response.
When you have date and time separate in two fields, it becomes difficult to have date operation like add in them. To have a correct solution, we need to join these two fields and create a new DateTime value on which we can operate on. Use the following code in...Read more
When displaying decimal numbers, it will show both the Integer and Fractional part even if the fractional part is 00. Like below: 2.35 3.50 2.00 If we need to hide the fractional part when it is 0, just add the number with 0 as below: <?php echo $amount + 0; ?>...Read more
Integration with QuickBooks is easy if you know the OAuth flow. QuickBooks uses the OAuth 1.0 specification. They provide libraries for PHP, Java and other popular languages. For ColdFusion/Railo, you can use the OAuth implementation from http://oauth.riaforge.org/. Usually the error messages from QB are self-explanatory and are mostly related with Signature...Read more
With PHP and MySQL, if the MySQL is upgraded you may end up with this error on every request to the database from PHP. This error means the MySQL library in PHP is not compatible with the version of MySQL it is connecting to. So, the solution is that you...Read more