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. 12412    264  0   1
    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

Parser expireddomains.net

113 USD

A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write.

PHPWeb Programming ∙ 1 day 13 hours back ∙ 48 proposals

Integration of payment service with Sales Force

70 USD

There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce.

PHPWeb Programming ∙ 1 day 17 hours back ∙ 40 proposals

Intercom systems

90 USD

We are looking for an experienced BAS (1C 8.3) programmer to refine a custom configuration for the business processes of our company. What is needed: — Study the current custom BAS 8.3 configuration — Refine and adjust it to our processes — Accounting: clients, contracts,…

PHPDatabases & SQL ∙ 4 days 16 hours back ∙ 13 proposals

Exporting goods from 1C to prom.ua

Create and configure an API export module for products from 1C to the cabinet and to the site prom.ua, rozetka, or another marketplace of your choice, including stock, names, images from 1C, prices, automatic export, automatic updates.

PHPDatabases & SQL ∙ 5 days 8 hours back ∙ 21 proposals

Fix the WPML translation issue

The website has product translation set up through the Advanced Editor. The translations in the editor are correct, but the incorrect text is displayed on the site. If you go to the page editor (in the language we are translating to), that is exactly the text indicated (in…

PHPWeb Programming ∙ 6 days 9 hours back ∙ 37 proposals

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