All Questions
4,118 questions
0
votes
2
answers
66
views
How can I show/hide a DIV after selecting a SELECT option from the database?
This is the code for Select options:
<div class="modal-body row">
<form role="form" action="patient/addNew" class="clearfix" method="post" ...
0
votes
0
answers
14
views
Select where a column value is included in a string (or array) [duplicate]
js
let ids = $.map($('.atitle'), (e) => $(e).attr('data-id'));
console.log(ids);
// ['6493e687161e0', '64a6776077613', '6489c85b3e6b1']
$.post('index_pro.php', {fn: 'btn_mails', args: [ids]}, ...
-1
votes
1
answer
41
views
JSON data undefined after ajax calling
problem facing to show the name in maindata, whereas maindata is showing perfectly
but maindata->name : undefined. maindata is longtext column in MySQL
//this is the jQuery code section below
//...
0
votes
1
answer
36
views
Jquery issue with dynamic added rows in html table
I am trying to autofill my PHP form by retrieving data from mysql table. Its work fine on one row. The problem which I am facing is that : When I dynamically add new rows using java script, than auto ...
0
votes
0
answers
59
views
autofill (jQuery) not working with dynamic added rows in HTML Form
I am trying to autofill my PHP form by retrieving data from mysql table. It works fine on one row. The problem which I am facing is that when I dynamically add new rows using Javascript, then the auto ...
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 ...
0
votes
1
answer
73
views
Three dropdown selection
I want to create three dropdown selections of names using php, javascript and jquery and get the data from mysql. So if I select a certain name on the first selection then it wont show on other ...
0
votes
0
answers
22
views
jQuery get two different values from dynamic table [duplicate]
I managed to get the first values of the dynamic table. But the code needs to get the element(values) from the table column that is clicked and edited.
//this is dynamic table
//UPDATED
$(receipts)....
1
vote
3
answers
66
views
How to get value from Encode json data on php pages
I try to take object from my controller, when I console.log(response) it show the value correctly which is in
[
{
"itemValue":100,
"itemUnit":"2"
}
]
...
0
votes
1
answer
46
views
I'm using YII2, I'm displaying a list of inactive users. I'm using the checkbox to select the user. I'm going to send an email to the user I tagged
$user
id
name
001
user 1
002
User 2
<ul>
<?php foreach($user as $user( { ?>
<input class="is-selected" type="checkbox" value="<?= $value->user->id ?...
0
votes
1
answer
93
views
How to sort rows based on a column that contains array values (PHP/MySQL/jQuery)
First i should say that I'm looking for a solution with php/mysql and JS/jQuery, but i don't know what would be the best general approach for larger datasets (40.000+).
Imagine you have a database and ...
1
vote
1
answer
63
views
How to serialize just one value of input via jQuery?
I started to do dropdown list instead select bcz it is not possible to stylize but I did not think to future and now I found that if I want to save data from form to db I need to get ids via $_POST ...
0
votes
1
answer
39
views
Code not executing after second request to server
I make two requests to the server using $.post. After executing the first request, i call the second request, passing the information received from the first. The problem is that after the second ...
1
vote
1
answer
79
views
Auto hide Row / Column of Table if specific field exists in MySQL Database using Django
I am working on a Django project and I am stuck in a situation where I want to hide a row in a table if specific entity exists in column in database. I am using MYSQL database. I want auto hide row ...
1
vote
0
answers
498
views
PHP AJAX Load previous data on Scroll Top
How can I load more (previous) data when the page is scrolled to top? I am creating a chat app where by default I am loading last 20 messages only, to avoid heavy load on the server. When the chat box ...