Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/06/2020 in all areas

  1. This XPath expression will find a product if it is is stock and return no items if it's not. $items = $xml->xpath( "/ STOREITEMS / PRODUCT [ @ITEM = '$product_queried' and STOCK / text() = 'In Stock' ] " ); Regards, Phill W.
    1 point
  2. try $product_queried = '09shjk1'; $xml=simplexml_load_string($xmlstr) or die("Error: Cannot make object"); $items = $xml->xpath("//PRODUCT[@ITEM='$product_queried']"); if ($items) echo $items[0]['ITEM'] . ' - ' . $items[0]->STOCK . '<br>'; else echo "Not found";
    1 point
  3. Next time, please let people know you figured out that json_decode was the answer.
    1 point
  4. https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_from-unixtime
    0 points
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.