Tag : mysql

How to insert into mysql table random number 0 or 1

For test purpose I needed to populate a table field with random int number 0 and 1. The RAND() function from mysql return numbers between 0 and 1

MySQL: Select “last month” records

In order to select last month records you have to get first day of the last month and the last day of the first month. With this you use the

Continue reading

MySQL: Select today, yesterday or day before yesterday records

Usually when you work with records where a date or time-stamp field is present you need to select records from: today records yesterday records day before yesterday records Lets say

Continue reading

Neural Networks in PHP

Browsing phpclasses.org I had found a very interesting article Neural Networks in PHP . For anyone who don’t know yet “Neural networks allow emulating the behavior of a human brain

Continue reading