All Questions
8,048 questions
-5
votes
0
answers
58
views
PHP Guestbook form returns 200 OK, but data is not inserted into MySQL database [duplicate]
I'm building a simple guestbook using PHP and MySQL, and hosting it on a server.
When I submit the form, the network tab (F12) shows 200 OK, and the JSON response is {"status":"success&...
2
votes
0
answers
71
views
How to update my cart database on click of plus minus button in cart on ecommerce website with session_id()
I want to be able to update my cart table in the MySQL database when you click the plus or minus button in the cart of my e-commerce website. I want to be able to do this with session_id(), so no ...
0
votes
0
answers
44
views
Timer Continues in Background but Does Not Update Backend Data - PHP Session and AJAX Issue
I have developed a PHP application where a timer on a web page continues to run even when the browser tab is in the background, particularly on mobile devices. The timer updates visually, but I'm ...
1
vote
2
answers
53
views
Modal will show success message if the form is empty without checking the data in table in Laravel
Problem is the modal will show success message whether the form is empty . I wish to get the success message only if data entered in database otherwise show error message. here is my blade page. ...
0
votes
0
answers
70
views
PHP MySQL Data Not Pulling Up on HTML Page
I'm completely new to PHP and I'm trying to pull up info data from phpmyadmin when the user clicks the link in the side navbar and show it on my html page using Ajax replacing the image I originally ...
0
votes
1
answer
107
views
window.location.href redirects but is causing problems on the webpage
I'm struggling with sessions and need some help. The following is my processing.php file which starts the session and assigns session variables for a user. If the user is a participant, then they are ...
0
votes
2
answers
56
views
Blob image displaying from database
I'm literally going crazy. I can't figure out where is the error in the code below whose purpose is to retrieve an image from a database and display it in a frame with id 'img1'. I've tried every way ...
1
vote
0
answers
38
views
specializing the selection inside database by particular order
your friend is a beginner in coding here,
i need your help for getting my desired demand.
Actually, i'm creating my own inventory management system, and just stuck up with creating a condition in my ...
1
vote
0
answers
43
views
how to create a dependent drop-down for classes based on the selected college
I want to create a dependent drop down list on the other dropdown, when the user click the college of students the class belong to that college only display in the dropdown
<!-- class list -->
...
1
vote
1
answer
71
views
Runnig a mysql query using ajax or sendBeacon from window.onbeforeunload
I need to run a query when the page is closed by the user. Apparently; window.onbeforeunload us the correct event. In fact I can see that it triggers.
Now, the problem is that for some reason (unknown ...
0
votes
0
answers
93
views
php form still refreshing with ajax
this is my html form
<form action="" method="post" id="form">
<input type="text" placeholder="Name..." name="name"id="name&...
0
votes
1
answer
83
views
i want to disable options that are not matched with the data from database
i have this list of days of doctor's practice days in database
<select class="form-control select2" name="hari_praktek" style="width: 100%;">
<option value=&...
0
votes
1
answer
91
views
Search while typing and passing info into to multiple HTML form elements
I've managed to cut and past my way this far !
I have a customer database. I have this nice HTML form to fill out. When I click submit, it populates a fillable PDF on the server.
When you start ...
-1
votes
1
answer
70
views
Mysql insert return not getting back to ajax
Well I am trying to insert data to a MySQL database. The data is getting inserted successfull. But I am not getting back the return msg after the successful insertion back to ajax. Also I am using the ...
1
vote
1
answer
99
views
Why am I getting double reply after submitting in AJAX?
I am trying to do a comment reply system for my blog.Commenting works good.When I press the reply button for the first time it works normally.If I press it the second time it doubles my reply on the ...