Implementing Google CSE Results Code
You should be using Google Custom Search Engine Module instead of embedding the code. Using this module would give you better integration option. 

Additional Info: Avoid using PHP Filter as its creates security risk.