The Programming Stuff Category
PHP: Simple Dynamic Graphs with PHP + MySql
Graphing in PHP has always been an annoyance for me - while it would be cool feature to have, the need doesn’t come up nearly enough to warrant paying the exorbitant fees associated with most commercial graphing libraries. Besides, commercial PHP libraries always bring out the miser in me - it just doesn’t seem to fit with the open source model. […] [ → ]
Javascript : Text Resize with Cookie
I was telling you in a previous article - Javascript - text resize - how you can give your site’s visitors the possibility to see your page’s content at different text sizes, using javascript. Let’s take this further and think a little about the user… now, if he really needs a bigger text size, then he will have to use those buttons or links on each page - not so convenient, right? Well, don’t you worry about this because that’s what we have cookies for! […] [ → ]
Javascript : Text Resize
If you want to give your site’s visitors the possibility to see your page’s content at different text sizes, you can do it with the following javascript text resize solution. First you should decide which part of the page will be affected by text resizing and mark it with an id - in my example id=”content”. […] [ → ]
Javascript : Convert Strings to Numbers
How to convert strings to numbers in JavaScript? To convert a string to a number, use the JavaScript function parseFloat (for conversion to a floating-point number) or parseInt (for conversion to an integer). Syntax: parseFloat(’string’) parseInt( ’string’ [, base] )
[…] [ → ]
Javascript : Convert numbers to strings
So you have a float or interger value, and need it to convert ‘em to string. How to convert a float or interger value to string using javascript? The simplest way to convert any variable to a string is to add an empty string to that variable, for example: a = a+” // This converts a to string […]
[ → ]
Ultimate WP Plugins to Help You Make Money with Blogging
It’s about time to highlight some of my favourite WP plugins that can help you to make money online.
Please note that these plugins may or may not work on your particular Wordpress installation, as it will depend on your version of WP and the latest plugin upate. […] [ → ]
PHP: PHP into .html file | Explained
If you need to add php code into .html (or .htm) file and you don’t want to change the file extension to .php because you already have incoming links on the .html file - although you can solve that with a simple redirect - here is the solution. Add the following lines of code to your .htaccess file: […]
[ → ]
PHP: Get users Born today Script
Need a sql statement or a php script to return all the users born today? here is how you do it: SELECT * FROM [users_table] WHERE DAYOFMONTH( [date_of_birth_field] ) = DAYOFMONTH(NOW()) AND MONTH( [date_of_birth_field] ) = MONTH(NOW()) […]
[ → ]
