Archive

Posts Tagged ‘update’

How to Replace the Certain Character in a MySQL Table

August 9th, 2010 Masino Sinaga No comments

Have you ever encountered the strange behavior while you were deleting the certain records from a table in MySQL database using an application you build, which those records cannot be deleted? Well, I have! Today, I encountered this problem. This is so weird, since I have never faced this situation before. Well, after doing some investigations, this problem obviously caused by one of the primary key fields contains the comma (,) character. Why I am sure about this, because when I replace the comma character for one record, then I re-try to delete that record from that application, voila…. that record gets successfully deleted. But the main problem is not stop until that. The next question is: How then can I replace all comma characters from the rest of the other records immediately? Just for your information, there are thousand records that contain the comma character. It is impossible to update all the records one by one, even as a matter of fact, you can create a little program/tool in order to implement it using loop method throught the recordset? Well, here is the quick-solution to overcome it. Read more…

  • Share/Bookmark
Categories: MySQL Tags: , , , , , , ,

Adjust MicroKid Related Posts v2.4 with qTranslate v2.4.3 Plugins

September 7th, 2009 Masino Sinaga 1 comment

Today, I received one notification about the update available for MicroKid Related Posts plugin that I have been using it since version 2.3. It was changed from 2.3 to 2.4. According to its change log, there were 4 main things that changed:

  1. You can now add drafts and planned posts as related posts, without them appearing on your site before they are properly published.
  2. Added shortcode support: you can now place the [ related-posts ] shortcode within the content of your post to display the related posts anywhere you want.
  3. (For advanced users) Added a parameter to the MRP_get_related_posts function to optionally get the related posts in an object, so you can easily use it in other plugins or your own custom way of displaying the list of related posts. For documentation on this, see [the API section](http://www.microkid.net/wordpress/related-posts/#API “Microkids Related Posts API functions”).
  4. (For advanced users) Added a parameter to the MRP_get_related_posts function to optionally include unpublished posts to the related posts list. For documentation on this, see [the API section](http://www.microkid.net/wordpress/related-posts/#API “Microkids Related Posts API functions”).

Read more…

  • Share/Bookmark