Skip to content

Tag: php

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 …

How to save data to db using laravel import?

I have prepared code below, and I’m using the dump to trace if it passed to models’ create function. When I checked in the database there is no data added, I’m just wondering why it does not have when it is already passed in User::create function (verified by string “created” bel…

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…