How to manage multiple query requests from same endpoint with Express server
I have a react website that has a page (movie detail) from where I need to query mySQL tables in order to display content. I am using Express server as middlewhere to receive the calls, make DB query and send back result.
Как занести данные с формы и массив корзины в mysql с разными таблицами REACT TS EXPRESS MYSQL
Задача у меня такая, есть данные с формы (номер телефона, имя, адрес доставки), а также корзина массив с объектами (url картинки, название товара, цена, количество), создал две таблицы одна с данными с формы, другая корзины и выставил связь у таблицы с формой это поле “id” primary key, index, а у таблицы с товарами корзины “order_id” index, чтобы человек который оформил заказ были привязаны товар из корзины по id заказа, и все товары которые он заказа имели такой же “order_id”, как у заказа “id”, проблема в том, чтобы задать общий id между двумя таблицами разными запросами
How to host React app built with Expressjs?
I created a reactjs application with Expressjs and am using mysql database. I want to host this application probably on hostinger. So I need help on how to do so. Still about this I want to know whether I host the frontend(react) separately and the backend(express) separately
Created a table I cannot parse the blob data type fully in the image field of the table from backend to database (Nodejs ,react ,MySQL)
Createlaptop.Jsx file is frontend it has a form which passes all values (name, gen, sir, hasGraphicCard, price, image) to the server.Jsx backend where these query craete a newfield in table. Only issue is when i enter in imagefile textbox this value”LOAD_FILE(‘F:React_Internshipsof1.jpeg’)” it creates a 44butes of blob data in database table whereas if executing sql command it creastes 64kb of data