All Questions
109 questions
1
vote
1
answer
197
views
PHP MySQL Query for jQuery Live Search Box - Unable to Output from Different Columns Based on Input Type
I'm fairly new to PHP/MySQL/jQuery and I'm stuck on this one piece of a large project.
Coding a live seach box that I'd like to return Names or Phone Numbers already in the database based on user ...
-2
votes
1
answer
59
views
PHP dropdown populated from MySQL database won't POST selection to PHP query
Scenario:
I am populating a dropdown menu with data from MySQL database. Upon clicking submit button, script should take the user to the results page and show data based on their selection.
Problem:
...
0
votes
1
answer
512
views
How to use innerHTML by Id or class in php echo and get value from database?
I'm using javascript to replace the validation code value after pressing the button, the code looks like this:
document.getElementById('showCode').addEventListener('click', function() {
const ...
-1
votes
1
answer
254
views
Refresh div every time a MySQL table refreshes [duplicate]
I have a website which is a messaging application.
Currently, it refreshes every 500ms by reading the outputs of the refresh.php file.
I would want to know if it is possible to call the refresh ...
0
votes
1
answer
923
views
How can I get the data from MySQL database based on the selected ID using bootstrap and Ajax?
I have two php pages, the first php page contains the table which has the selection to which record will be edited using a Bootstrap Modal, the second php page process the data to update in MySQL ...
-1
votes
1
answer
101
views
Trouble displaying SQL AJAX call results from jQuery onto HTML
I am currently trying to display data returned from my database onto my php display page. I have been following along this tutorial:
https://www.phpzag.com/ajax-drop-down-selection-data-load-with-php-...
3
votes
1
answer
63
views
Database generated dropdown giving more variables a value from the same database when selected
I hope the title wasn't too cryptic, and I am sure there will be other threads like this one but cannot seem to put my finger on the correct terminology.
I have a form that has 3 dropdowns. Let's ...
3
votes
2
answers
103
views
image is inserted twice in the table when i upload one time only
Here I Upload Two Code one is Index.php and Another One is ImageUpload.php when i upload the image the file is move into uploads folder and the image name is twice store in the database i want only ...
1
vote
2
answers
1k
views
How to disable certain days of the week on a jQuery datepicker based on a result in a database with PHP
I have a mySQL database with a table of staff information and what days of the week they work i.e Tuesday, Wednesday, Friday.
I have an HTML from which allows user to book an appoint, the idea is ...
1
vote
3
answers
1k
views
How to create clean url fetching data from mysql in php?
I want to know how to create url directly dynamically fetching data from mysql in php?
Let assume I have a database table named "Products":
1) id
2) seller_id
3) Product Code
4) Product Image
5) ...
0
votes
0
answers
54
views
Jquery to get group sum of same items in dynamic table
I have a form with dynamic rows in which I need to get group sum of all material blockwise to check the stock. If stock is there simply insert the record otherwise give the error. I have used for loop ...
2
votes
4
answers
1k
views
How to allow php files to only be called by site, not Inspect Element or by URL
I have a lot of php files updating my database, but I want these to only work when called in my code (usually by ajax).
Now, if I put the URL of the php file, it updates the database, and if I put ...
0
votes
1
answer
43
views
after submitting the values in the database table are not updated
I am new to PHP. When I am trying to update or modify my form then it is not getting updated in the phpmyadmin database table. I am using AJAX, jQuery, and PHP. I am badly stuck here so can anyone ...
0
votes
3
answers
1k
views
Displaying field data of mysql table with selecting field name from the drop down list
I have the following code to populate field names together in a drop down list. I'd like to be able to display the contents of the selected field in a table on the page. Only one field name will be ...
2
votes
1
answer
259
views
How to get all row data from a javascript array converted from a mysqli_fetch_array() fetched array
I am trying to convert an array from PHP to Javascript.
My table has a lot of columns. The first 2 are id (INT) and name (VARCHAR).
This is my PHP code:
$sql = 'select * from foodlist';
$query1 = ...