Mikijs Posted September 17, 2008 Report Share Posted September 17, 2008 vai ir tada iespeja ka ar SQL? WHERE kautkas LIKE '%vertiba%' ? Link to comment Share on other sites More sharing options...
andrisp Posted September 17, 2008 Report Share Posted September 17, 2008 Nu - tu jau pats atbildēji uz savu jautājumu. Link to comment Share on other sites More sharing options...
bubu Posted September 17, 2008 Report Share Posted September 17, 2008 andrisp: gan jau, ka bija domāts vai tam līdzīgs ir ar "PHP un XML". Atbilde: jā ir - tas saucās XPath. Meklē šeit: http://lv2.php.net/manual/en/refs.xml.php un šeit: http://www.w3.org/TR/xpath Turpmāk raksti sakarīgākus nosaukumus, Mikij. Citādi labi zini, kur tie nonāks. Link to comment Share on other sites More sharing options...
andrisp Posted September 17, 2008 Report Share Posted September 17, 2008 Ah, nepamanīju kādā sadaļā iepostēts... Link to comment Share on other sites More sharing options...
Mikijs Posted September 18, 2008 Author Report Share Posted September 18, 2008 amm nju es nepamaniju jusu postus tapec improvizeju un pats uztaisiju ja nu gadam vajag function searchxml($what) { $xml->simplexml_load_file('xml/mans.xml'); $return=array(); foreach($xml->tags as $tags) { if(eregi($tags['kautkas'], $what)) { $i++; $return[$i]=$tags['kautkas']; } } return $return; } Link to comment Share on other sites More sharing options...
Recommended Posts