Javascript: Check if any checkbox is checked
If you want to check if any checkbox is selected, but checkboxes have all the same name and are so part of an array, here […]
Continue reading »Sharing few experiences that may be of any interest…
If you want to check if any checkbox is selected, but checkboxes have all the same name and are so part of an array, here […]
Continue reading »ZendFramework provides a class to handle configuration: Zend_Config. It also provides a class to manage cache: Zend_Cache. But, unless the Zend_Translate component (as of the […]
Continue reading »Acrobat reader throught IE can complain about a “document not found” when you try to send a PDF throught the web server. A way to […]
Continue reading »A little function to transform an ascii string into a Mac Roman string suitable for MacOS Pre X
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
function AsciiToMacRoman($str) { return strtr($str, "xc4xc5xc7xc9xd1xd6xdcxe1xe0xe2xe4xe3 xe5xe7xe9xe8xeaxebxedxecxeexefxf1xf3 xf2xf4xf6xf5xfaxf9xfbxfcxb0xa7xb6xdfxae xb4xa8xc6xd8xa5xaaxbaxe6xf8xbfxa1xac xabxbbxa0xc0xc3xf7xffxa4xb7xc2xcaxc1 xcbxc8xcdxcexcfxccxd3xd4xd2xdaxdb xafxb8x22x22x27x27", "x80x81x82x83x84x85x86x87x88x89x8ax8b x8cx8dx8ex8fx90x91x92x93x94x95x96x97 x98x99x9ax9bx9cx9dx9ex9fxa1xa4xa6xa7 xa8xabxacxaexafxb4xbbxbcxbexbfxc0xc1 xc2xc7xc8xcaxcbxccxd6xd8xdbxe1xe5xe6 xe7xe8xe9xeaxebxecxedxeexefxf1xf2xf3 xf8xfcxd2xd3xd4xd5"); } |
Here is a way I found to make full a full text search on entire words only with postgreSQL (tested on v8.1):
1 2 |
select field1,field2 from my_table where field1 similar to '[[:<:]]myword[[:>:]]' |