<React.Fragment key={...}>
{idx >= 1 && <div> / </div>}
<Crumb path={crumb.path} title={crumb.title} style={styles.crumbs} />
</React.Fragment>
import express from 'express';
import cors from 'cors';
import axios from 'axios';
const app = express();
app.use(cors());
app.get('/getBooks', async (req, res) => {
try {
const result = await axios.get('https://www.googleapis.com/books/v1/users/1112223334445556677/bookshelves&key=myKeyApi');
res.json(result.data);
} catch (error) {
console.error(error);
res.status(500).send(error);
}
});
app.listen(4000, () => {
console.log('Proxy server running on http://localhost:4000');
});
{"proxy": "https://www.googleapis.com"}
$("html, body").animate({scrollTop: $(".error_list_icon").offset().top - 90}, 800);
SELECT a.*, ai.name_img_file, ai.src, ai.title as img_title
FROM adverts as a
join advert_imgs as ai on a.id = ai.id_adv
WHERE 1 = 1
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'storey_apartament' AND af.field_value = '58')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'condition_house' AND af.field_value = '13')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'Sleeping'AND af.field_value = '38')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'Availability' AND af.field_value = '48')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'Bathroom' AND af.field_value = '77')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'Heating'AND af.field_value = '26')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'Furnished' AND af.field_value = '14')
AND exists( select 1 from adverts_fields af where a.id = af.id_advert and af.field_name = 'kitchen_area' AND af.field_value = '34')
ORDER BY `title` DESC
$('#upload').on('click', function() {
var file_data = $('#file_id').prop('files')[0]; //Берем Файл
var form_data = new FormData();
form_data.append('file', file_data);
alert(form_data); //Выводим инфо по файлам которые будут отправлены на сервер
$.ajax({
url: 'ajax/save-photo.php',
dataType: 'text',
cache: false,
contentType: false,
processData: false,
data: form_data,
type: 'post',
success: function(php_script_response){
alert(php_script_response); // Выводим ответ от сервера
}
});
});
if ( 0 < $_FILES['file']['error'] ) {
echo 'Error: ' . $_FILES['file']['error'] . '<br>';
}
else {
move_uploaded_file($_FILES['file']['tmp_name'], 'uploads/' . $_FILES['file']['name']);
}