PHP Implode array elements

If you are having 1 dimension array and you would like to use this type of array in you mysql query
you can use the PHP implode function.
--------------------------------
Example Array
--------------------------------
echo "<pre>";
print_r($yearSearch);

Array
(
[0] =1979
[1] =1980
[2] =1981
[3] =1982
[4] =1983
[5] =1984
[6] =1985
[7] =1986
[8] =1987

Posted at 12pm on 11/18/09 | no comments | Filed Under: PHP read on

Linux db2cc cannot open display

If you are having problem as mention below, you may try this.

—————————————————
Problem Scenario db2cc
—————————————————
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc
No protocol specified

Error : Can not open display
db2inst1@ubuntu:/home/xyiry$

—————————————————
Problem Solving db2cc
—————————————————
Type in this command in terminal.

db2inst1@ubuntu:/home/xyiry$ xhost +
db2inst1@ubuntu:/home/xyiry$ su db2inst1
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc

Hope it works…

Posted at 8am on 11/18/09 | no comments | Filed Under: IBM DB2 read on

About

Welcome to Xyiry PHP Blog

Hi Im Mohd Izzairi Yamin, a programmer doing open source stuffs and PHP programming. Currently Im working in an MSC status company developing online application solutions. I love PHP very much and it has become my flash and blood. PHP is a great language to learn where you can develop most of today’s online application fast.

I would like to go deeper by mastering PHP language and not to forget Ruby On Rails. Ruby on rails is a language by itself that uses rails framework. For more info of ROR please visit Ruby On Rails PHP has also come up with such new features that is CakePHP, Why CakePHP ? To fasten your development runtime and for a big organization it brings big profit. Hehe.. CakePHP is closer to ruby on rails where cakePHP uses MVC framework.

This blog is for all PHP and open source geeks to share out ideas and opinion.


I would like to welcome all of you to this programming blog. Basically this is a PHP blog and I do hope you would treat this blog as a PHP blog.Please bear in mind that this blog is regardless of colour, race or religion so please do not discuss any issue that might hurt others.

I hope all of you who are here, are the wise ones. So Please Maintain That Perception.

Thank you once again for visiting my PHP Blog

Thanks & Regards
Xyiry

Categories

Monthly Archives