Feeds:
Posts
Comments

Archive for March, 2009

The simplest way of selecting random rows from the MySQL database is to use “ORDER BY RAND()” clause in the query.
Solution 1 [SQL QUERY]
SELECT * FROM `table` ORDER BY RAND() LIMIT 0,4;
This query select 4 random value every refresh?
The problem with this method is that it is very slow. The reason for it being so [...]

Read Full Post »

How to active curl on xampp

Your xampp installation most likely already has curl support built-in. You just have to turn it on. It’s not difficult at all.  That’s not necessary for Windows versions of PHP.
Find your php.ini file (probably in xampp\apache\bin\php.ini and open it in notepad or another plain text editor
search for the line that says:
;extension=php_curl.dll
remove the semicolon from the [...]

Read Full Post »