Monthly Archives: May 2009

monetary data: decimal vs. double

Share The DECIMAL and NUMERIC data types are used to store exact numeric data values. In MySQL, NUMERIC is implemented as DECIMAL. These types are used to store values for which it is important to preserve exact precision, for example … Continue reading

Posted in mysql | Tagged , , , , | Leave a comment

mysql error: 1005

Share ERROR 1005: Can’t create table (errno: 121) Help Solution: For some reasons this error appeared for the first time and caused my mysql to drop. But it only happens when clicking on a specific table. So I recreated the … Continue reading

Posted in mysql | Tagged , , , , | Leave a comment

url rewriting guide

ShareIntroduction to mod_rewrite The Apache module mod_rewrite is a killer one, i.e. it is a really sophisticated module which provides a powerful way to do URL manipulations. With it you can do nearly all types of URL manipulations you ever … Continue reading

Posted in apache, htaccess | Tagged , , , | Leave a comment

ISNULL() in mysql

ShareSELECT * FROM table1 LEFT JOIN table2 ON table2 .folder_id = table1.id WHERE members_folders.mem_id=’1100′ AND ISNULL(table2.id) -get records from table1 that doesn’t have a record on table2 ISNULL() – Test whether the argument is NULL source: http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_isnull

Posted in mysql | Tagged , , | Leave a comment

mysql_error() not displaying error

ShareError: mysql_error() not displaying error, Solution: possible cause is if u got 2 connections, u must supply the connection ur using

Posted in mysql | Tagged , , , | Leave a comment