Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Correction of the PHP code

Translated
PHP

Client's review of cooperation with Stanislav Fedorenko

Quality
Professionalism
Cost
Contactability
Deadlines

I recommend a great freelancer! Instantly insisted in the essence of the work, quickly and professionally determined the lines with errors and corrected! I will cooperate in the future.

Freelancer's review of cooperation with Roman Bondar

Payment
Task setting
Clarity of requirements
Contactability

A good customer. He clearly set a task. I paid the job immediately after performing. It was pleasant to work.The !

Client does not wish to make a prepayment? Payment through Safe helps avoid potential fraud.
  1. 13056
     266  0

    Winning proposal1 day

    Ready to do

  2. Another 2 proposals concealed
    1 proposal concealed
  • Denis Voloshin
    6 October 2014, 1:42 |

    50р?

  • Profile blocked
    6 October 2014, 9:59 |

    да человек считает что 50 руб это круто, а я думаю это уже оскорбление таких заказчиков надо сразу банить

  • Illia Tsypin
    6 October 2014, 2:39 |

    100 грн, нужно смотреть сайт...

  • Roman Bondar
    6 October 2014, 2:44 |

    Там просмотреть строк 20-30 которые отвечают за выборку и вывод, я даже скажу какие, где-то банальная ошибка

  • Illia Tsypin
    6 October 2014, 3:01 |

    Ну пишите сюда эти самые строки... 

  • Denis Voloshin
    6 October 2014, 3:10 |

    +1 Строки в студию.

  • Roman Bondar
    6 October 2014, 3:11 |

    хорошо. вот сама выборка - отрабатывает четко

    function showSpecOffers ($subcategory, $order, $all='') {

    global $wpdb;

    if ($order=="name") $o="order by name";

    else $o='';

    $category = $subcategory;

    if(!$all){

    $all=$wpdb->get_var ($wpdb->prepare('select isAll from le_categories where Id=%d', $subcategory));

    $category=$wpdb->get_var ($wpdb->prepare('select category from le_categories where Id=%d', $subcategory));

    }

    $subcategories=$this->getSubcategories($subcategory);

    $subCatIds=array();

    foreach($subcategories as $subcat){

    array_push($subCatIds, $subcat->id);

    }

    $in = '';

    if($subCatIds){

    $subCatIds= join(',',$subCatIds);

    $in = 'or subcategories IN ('. $subCatIds .')';

    }

    if ($all==0)

    $result=$wpdb->get_results ("select o.name, o.link, comment1, comment2,comment3, comment4, comment5,

    o.image, buttonname, b.name as bankname, offerlink

    from le_offers o

    join le_banks b on b.id=o.bank

    where concat(',',o.subcategories,',') like '%,$subcategory,%' $o");

    else {

    $result=$wpdb->get_results ("select o.name, o.link, comment1, comment2,comment3, comment4, comment5,

    o.image, buttonname, b.name as bankname, offerlink

    from le_offers o

    join le_banks b on b.id=o.bank

    where category=$category $in or subcategories = $category $o ");}

    return $result;

    }

    вот в дальнейшем как передается

    function leoffers_specoffers($page, $all, $order) {

    if(!$page)

    $page=(get_page_by_path($_SERVER['REQUEST_URI'])->ID);

    $subcategoryId=$this->getCategoryByPage($page);

    if($subcategoryId)

    $specOffers=$this->showSpecOffers($subcategoryId, $order, 1);

    ob_start();

    include(ABSPATH . 'wp-content/plugins/leoffers/leoffers_mq_specoffers.php');

    $content = ob_get_contents();

    ob_end_clean();

    return $content;

    }

    тут (если вместо 1 выделенной ) товар появляется в подкатегориях, но соответсвенно пропадает в основной категории

  • Roman Bondar
    6 October 2014, 3:19 |

    тут (если вместо 1 выделенной )

    имелось ввиду 0 поставить

  • Roman Bondar
    6 October 2014, 3:17 |

    ну а на саму страницу выводится через цикл перебора массивов foreach

    <ul>

    <?php

    foreach ($specOffers1 as $specOffer) {?>

    <li>

    код....................................

    </li>

    <?}?>

    </ul><!--special-->

  • Profile blocked
    6 October 2014, 9:56 |

    тут бабка на двое сказала может 5-10 минут а может 2-3 дня за 50 руб вооще отлично

Current freelance projects in the category PHP

Horoshop Specialist

Need a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different…

PHPWebsite Maintenance ∙ 19 hours 4 minutes back ∙ 16 proposals

Make sure that order emails from the store do not go to spam.

Currently, there is a store on OpenCart, and order emails are landing in spam. We need to ensure they go to Inbox (ukr.net gmail) and check it. The hosting provider wrote: Poor email delivery may be related to a low sender reputation - IP or domain. In this case, we can advise…

PHPWeb Programming ∙ 1 day 20 hours back ∙ 47 proposals

Transfer the fully ready adaptive HTML5 structure to WordPress.

267 USD

I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are…

Content Management SystemsPHP ∙ 4 days 21 hours back ∙ 69 proposals

GoPos Integration

Hello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their…

PHPWeb Programming ∙ 5 days 13 hours back ∙ 26 proposals

Write meta data for ALT using AI

A website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification.

AI & Machine LearningPHP ∙ 6 days 11 hours back ∙ 35 proposals

Client
Roman Bondar
Ukraine Kharkiv  3  0
Project published
11 years back
373 views