html mailto command

Today, due to some task’s requirement, I need to play around with the html mailto command. As I know, the mailto command is just prompt up the visitor email client & auto fill in the To field. After some research, I found that actually the mailto command is more power than what I though. Below […]

Dynamic wizard form using dhtml & javascript.

Recently I am working in a project that require some customization on the application. They need a wizard page that will allow user to add in items. To make the wizard page be more user friendly, I try to using dynamic html to create fields if required. When user add in a item, the page […]

Check MySQL database size

How to check MySQL database size in your server?  Actually MySQL already provide the information, what you need to do is just do a simple query to retrieve the data. Below is the query : (more…)

Javascript string replace all

In PHP, str_replace will replace all the occurrence key in a string to the value that specified by user. In Javascript, if you using a replace function without specified, it will only replace the first occurrence of the key in the string to the value. For example : <script> var js_str = “Visit RedHat now […]

MySQL table corrupt & repair

Recently I am trying to dump a customer MySQL database to a SQL file & restore to another server. An error occur during the dump process. The error mention that one of the table in the database is crashed & repair required. Then I try to login into MySQL server & use the particular database […]