1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help to write xquery in php

Discussion in 'PHP' started by tempex, Jul 11, 2012.

  1. #1
    Hello,

    Need a little help to execute query below in php
    The query goes well in DB2 command editor, but I do not have any idea how to execute it in php.

    xquery for $d in db2-fn:xmlcolumn('TERM.TERM')
    where fn:contains($d/term, '$keyword')
    return $d
    
    Code (markup):
    Thanks in advanced
     
    tempex, Jul 11, 2012 IP