Tag Archives: PHP & SQL

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: [...]
[ → ] Continue reading

  • Share/Bookmark
Posted in PHP & SQL, Programming Stuff | Tagged , | Leave a comment

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()) [...]
[ → ]
Continue reading

  • Share/Bookmark
Posted in PHP & SQL, Programming Stuff | Tagged , | Leave a comment