Quantcast
Channel: User andrewsi - Stack Overflow
Viewing all articles
Browse latest Browse all 51

Answer by andrewsi for php - xml parser Notice: Trying to get property of non-object

$
0
0

If it works with integers, but not with strings, you probably just need to quote your variable in your query:

 $result2= $xpath2->query('/root[@name="gf"]/node1[@id="'. $id2.'"]');

Viewing all articles
Browse latest Browse all 51

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>