Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = $cl->Query($q);
- if ($result === false) {
- echo "Query failed: " . $cl->GetLastError() . ".\n"; //
- } else {
- if ($cl->GetLastWarning()) {
- echo "WARNING: " . $cl->GetLastWarning() . ";"; //
- }
- $count = 0;
- if (!empty($result["matches"])) {
- foreach ($result["matches"] as $product => $info) {
- $count++;
- echo $count . " - ";
- //echo $product;
- echo "id is: ".$info["attrs"]["data_id"];
- echo "; type is: " . $info["attrs"]["type"] . "<br/>";
- //echo "<pre>";
- //print_r($info);
- echo "</pre>";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement