Skip to content

Tag: mysql

I have a problem with my laravel query builder

I’m using laravel as my web project, and I have an issue when I update my database. I have an error message on my postman after posting data. Here is the message. This is my function code to update a row on a database. I don’t know what’s going on with my code, i search for ‘transact_i…

how to Display dynamic dropdown using table data

I need to show state depending on country selected from drop down. It uses the table data to fetch and find the related data using AJAX Here is my HTML markup This is my javascript code to post the option value to action.php page This is my action.php page ?> The state doesn’t appear in my drop down …

mysql query dynamic update

RESOLVED I have a mysql table (table1) with many columns with a single ID. table name: table1 columns: from “pt1 to pt1000” id = 1 I have a query that updates the data in the columns, 10 data at a time I would need a unique and dynamic query that inserts the 10 values ​​in sequence at each submiss…

Fetch featured product only from product table in Api

Product Table where i want to fetch only featured product. I have defined a column in database product_type in which four types of products(hot deals, newly listed, deals of the day and featured product)strong text can be listed which is optional. Blockquote When i try to fetch whole product list in api i get…