I work with medoo library. Tell me how to get the value of price, where itemId = $ itemId?
$db_site = $this->Connect(self::$_conf['icon_db']); $price = $db_site->get("shop", "price", "itemId" => $itemId); I work with medoo library. Tell me how to get the value of price, where itemId = $ itemId?
$db_site = $this->Connect(self::$_conf['icon_db']); $price = $db_site->get("shop", "price", "itemId" => $itemId); $db_site->get("shop", "price", [ "itemId" => $itemId ]); In medoo, you need to pass an array with conditions
decided so:
$price = $db_site->select('shop','*' ,array('itemId'=>$itemId)); if($price !== false and count($price) > 0 and $price[0]['price'] != ''){ echo $price[0]['price']; } Source: https://ru.stackoverflow.com/questions/591124/
All Articles