Skip to content

Tag: php

RUN API inside SQL database upload

I have an API to do an action for a site. The API works and does what it needs to be done. The API information is populated from a form I have. the form also needs to upload information to MYSQL database using SQL I have the following SQL The above works as the header runs the API, but once

Upload, resize and send images to server with javascript

After struggling with this issue for 2 days, reading a lot of material online, here I am begging for your help. I’m trying to resize some images uploaded via FileReader, resize with canvas and send to my server with php. Everything works as expected, except when I try to upload multiple files. The scrip…

Combining multiple queries into an output

With a feedback survey they can select bad, neutral or good. I want to compile the bad and good into a table. I am trying to create a tally “table” output from an ajax request to replace a …

PHP inserting value only once

I am trying to add categories in a database. Things is the script is reading the categories from a product list, therefore there are duplicate values as it’d be like reading PRODUCT NAME – DETAIL 1 – DETAIL 2 – CATEGORY Rinse and repeat. I have my code down and the insert works but it …