Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a table called invoice_details consisting of :
id
invoice_id
product_id
product_name
quantity
price
I have a form field that allows input of the product name,qty,etc.
I want to add a column that will be called "room". The script I have now auto generates more form fields as I need them, in which I could add "room" and specify within the form field, but I want to have the following workflow :
Page loads Rooms(or lack of)
click a button to add a room(or
multiples)
ability to search products, and click and drag products
to specific rooms
have all data saved correspondingly in sql
database
What web technologies do I need to research to be able to achieve the above result?
JavaScript/jQuery to handle the front end clicking dragging
PHP (I assume you're already using it) to handle the database queries
PDO - a function in PHP for writing to databases
AJAX - a way of getting data from your JavaScript front end to the PHP backend
Incidentally - you might want to look at InteractJS which is designed to handle the drag and drop your're looking for - you just have to then AJAX the data back to your PHP server for processing.
Good luck!
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am in need of creating a table that will get its data from a database (this is done:) ).
The users must be able to filter the table if they want to find specific rows based on the their input.
The table will have around 33 columns which not all of them will be visible, but the user can drag and drop new columns whenever he likes. and be able to filter the table using values from these columns as well.
The table will look like this and every time the user inputs something on the top of a column then the table will get filtered based on that column. also multiple filters can be placed.
Any suggestions on how to do this? is it even possible?
I would like suggest you to use http://yadcf-showcase.appspot.com/DOM_source_chosen.html jquery plugin for datatable also it works with ajax source
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to think about how I would go about creating a link to something based on a data in another table on another website.
I have the following table on the other website:
https://i.imgur.com/Hlemt1y.jpg
so basically columns: Order #, Status, customer P-O
What I am trying to do is create a url based on "customer PO" that links to the Order #. So it would find the customer PO, then check the value on the same row of Order #, and then once I have that value I can create the URL using that order #.
I've never done anything that takes a value from another website so I guess that is what I am after?
If the other web page doesn't have an API that you can use to retrieve that data in a more usable format, you will have to use a technique known as scraping. you would likely use curl or wget to fetch the web page and then parse the resulting html page to pull the data you need out of it. an xml library would be able to assist in parsing, but you may be able to get away with a shortcut by searching the string for a common beginning and ending string.
so for example, if there is only one html table on the page, you can search for
<table>
and the matching
</table>
Then parsing the tr and td tags is a little more manageable than dealing with the entire page. In the end it just depends on what this is being used for and how robust it needs to be.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i am building an ecommerce app for my website. This is the first time i am developing an app. As of now i am making use of phone gap to do the work for me. But i am stuck at this particular place, i have made the cart and it is working fine and i have made the checkout form also separately. But i don't know how to pass the product information from the cart to the checkout flow and then update it in the database. As of now i am sending the product parameters through the url but i know it is not safe. and i make use of
location.search.string(1)
to get all product parameter from the cart and then attach these to the form data and send it to the php file and from there i add it to the database. Again in the database i am having another problem. I am maintaining two different table, one for the orde information and the other for products. But here the problem is i don't know how to link the two table i.e when a new order is created an order id is assigned to it, now i don't know how to get that order id and use that order id to update the product information in product table. So can some one help me out with these two problems.
I am using jquery and html to create the app and php and mysql for the server side.
thanks in advance.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a form that can add information in database using php/mysql. I can make that form to show in pop up window and can insert data in database. Suppose I have city form which have city_id, city_name, city_abbreviation. I have create a html form that can insert data in city table using php/mysql. Now I want to make pop up form and insert data in database.
The easiest way to do this is to use jQueryUI's dialog() widget. It's unbelievably simple:
$('#someDivID').dialog();
The above command takes whatever it inside the div containing the attribute id="someDivID" and displays it in a pop-up. The displayed DIV works exactly the same as it would without being in a pop-up.
Note that you must have both the jQuery library and the jQueryUI library referenced in your document, as per > this other question < with a more complete explanation of the jQueryUI dialog widget.
Since you already know how to create a form and submit it to a PHP file for entry into a MySQL database, I won't repeat that here -- but if you need help with that, leave a comment.
Next, you might wish to know how to input the form data into the database without leaving the page you are on. That is, the popup will close and you want the data to be placed into the database "behind the scenes", without changing to a different page.
That is done via AJAX -- also unbelievably simple. Please see these additional posts for information:
A simple example
More complicated example
Populate dropdown 2 based on selection in dropdown 1
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How would I go about creating a table that is linked to a specific user that can be edited by that user? Basically a user would log in, and they would see a button that took them to a page with a bunch of specifically labeled input boxes. They could put the appropriate data into the boxes and save it. There should also be a drop down menu that contains presets for the data. At first I thought to use a database, but here's the kicker: They need to be able to add and delete input boxes. To recap, the user needs to have their own specific page that allows them to change data in input boxes, as well as add more fields if they require it. This all needs to be stored and linked to their user. How can I do this?
You should realize that in PHP / MySQL. I do not know where you are in your project, if you have already achieved your login pages / sing_up / index ... etc.. but you should start with that. There are good tutorials on the subject, like this one.
http://net.tutsplus.com/tutorials/php/user-membership-with-php
EDIT:
To let user edit their info, look at this tutorial:
http://www.webestools.com/scripts_tutorials-code-source-14-members-area-system-in-php-mysql-members-users-system-area-log-sign.html
After, you will have to ajust your actual structure to the one they give.