Here’s a form validation script that is very easy to use.
Really Easy Field validation with Prototype
Instructions
The basic method is to attach to the form’s onsubmit event, read out all the form elements’ classes and perform validation if required. If a field fails validation, reveal field validation advice and prevent the form from submitting.
Include the javascript [...]
Posts Tagged ‘My Blog’
Really Easy Field validation with Prototype
Posted in CSS, Design, JavaScript, My Blog, MySql, PHP, tagged CSS, handle, js validation, My Blog, MySql, PHP, validation on May 20, 2009 | Leave a Comment »
Select random value from MySQL database table.
Posted in MySql, PHP, tagged Database, function, My Blog, MySql, PHP, rand(), random, random value, return data, table on March 25, 2009 | 7 Comments »
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 [...]
Future Web Technologies
Posted in Future Web, My Blog, tagged Future Web, My Blog on June 10, 2008 | 1 Comment »
What can we expect from the next few years on the Web? Now we are happy into the current aera of the Web, commonly referred to as Web 2.0. Features of this phase of the Web include search, social networks, online media (music, video, etc), content aggregation and syndication (RSS), mashups (APIs), and much more. [...]