PHP MYSQL запросы в скрипте пхп
22 USDPHP MYSQL запросы в скрипте пхп.
Поменяли базу данных надо написать новые запросы через тимвивер или без доступа к базе.
Задачу буду решать вместе с вами.
Для решения достаточно базовых навакав и знания синтексов.
Задача не сложная просто надо немного вникнуть. тут работы на 1 день.
Образци до и после
До исправления
public static function GetManufs($CType){
if ($CType == 0) {$WHERE = "MFA_PC_CTM>0";
} else {if ($CType == 2) {$WHERE = "MFA_CV_CTM>0";
} else {$WHERE = "MFA_PC_CTM>0 OR MFA_CV_CTM>0";}
}
$SQL = "SELECT MFA_ID, MFA_BRAND, MFA_MFC_CODE, MFA_PC_CTM, MFA_CV_CTM FROM MANUFACTURERS WHERE " . $WHERE . " ORDER BY MFA_BRAND ASC";
$resDB = new TDSQLQuery();
$resDB->QuerySelect($SQL);
return $resDB;
}
Это уже один готовый запрос
public static function GetManufs($CType){
if ($CType == 0) {$WHERE = "MFA_PC_MFC>0";
} else {if ($CType == 2) {$WHERE = "MFA_CV_MFC>0";
} else {$WHERE = "MFA_PC_MFC>0 OR MFA_CV_MFC>0";}
}
$SQL = " SELECT DISTINCT MFA_BRAND, MFA_ID
FROM
MANUFACTURERS
INNER JOIN COUNTRY_RESTRICTIONS ON COUNTRY_RESTRICTIONS.CNTR_ID = MANUFACTURERS.MFA_PC_CTM
WHERE
MANUFACTURERS.MFA_PC = 1
ORDER BY MFA_BRAND ASC";
$resDB = new TDSQLQuery();
$resDB->QuerySelect($SQL);
return $resDB;
}
-
163 1 0 Добрый вечер. Работаю с Laravel 5 лет, опыт работы со стеком PHP+JavaScript+CSS+HTML+MySQL более 7 лет.
Мои последние проекты на Laravel:
https://duckdice.io
https://tower.bet
Оба открываются под ВПН
https://beauty-pos.com
Почасовый рейт 15$/час. Для точной оценки нужно видеть подробное описание объема работ.
…
Если заинтересует предложение - пишите, обсудим детально
-
94 Здравствуйте, готов выполнить данную задачу.
Есть опыт в работе с MYSQL и PHP
-
Добрый день,
Возможно было бы проще получить хотя бы структуру новой БД, раз к ней есть доступ в виде запросов? А после вы уже на этой структуре объясните что и откуда вытягивать.
-
Current freelance projects in the category Databases & SQL
It is necessary to check the scripts and update the data in the Postgres database.It is necessary to correct the SQL scripts for the Postgres database. It is required to check the scripts and update data from external Excel tables and between two Postgres databases (different servers). Scripts will be run through AnyDesk using Navicat. List of data for… Databases & SQL ∙ 1 day 21 hours back ∙ 18 proposals |
Need an Airtable architect to build a relational schema and a new clean Airtable base.Need help rethinking and building a clean relational schema for an internal operational system on Airtable. The current database is already in use by the team, but it has grown organically: the structure is partially flat, some tables/views are actively used, while others are… Databases & SQL, Desktop Apps ∙ 2 days 14 hours back ∙ 9 proposals |
Basketball Coaching Education Platform + Custom CMSBasketball Coaching Education Platform + Custom CMSProject Overview We are looking for an experienced web development team or full-stack developer to build a modern basketball coaching education platform. The website will provide basketball coaches with access to educational… Databases & SQL, Web Programming ∙ 3 days 8 hours back ∙ 89 proposals |
Integration of Viber in 8.3
223 USD
Need Viber integration into own CRM (1C 8.3)About the Company The company "Domofon System" is engaged in the installation and maintenance of intercom systems. Base of over 40,000 subscribers. We work on our own customized system based on 1C 8.3. We are looking for a specialist… Databases & SQL, Bot Development ∙ 3 days 11 hours back ∙ 16 proposals |
Refinement of 1C UT 11 for Zebra TSD (RDP): different sound signals when scanning
22 USD
Configuration: 1C UT 11 Address warehouse Zebra TC26 TSD Work via RDP Product scanning is performed in receiving, placement, picking documents, and other warehouse operations. Current problem: Warehouse workers operate through the Zebra TSD. When scanning, they do not always… C#, Databases & SQL ∙ 5 days 9 hours back ∙ 6 proposals |