help with php, ajax and mysql (small task)

i need help with a code that will pull records from the database, and will echo them to a php variable using ajax.

i have a <select> code that have onchange="getData([url removed, login to view]);"

then a script that will look something like this


function getData(val) {


url : "includes/[url removed, login to view]",

dataType: 'json',

type: 'POST',

data: "datasent="+val,

success : function(data) {

receivedData = [url removed, login to view](data);

$('#internal').val([url removed, login to view]);

$('#customer').val([url removed, login to view]);





the #internal is an input

<input type="text" id="internal" placeholder="2">

i would like to have the "[url removed, login to view]" to be showed as the value of the input.

same as the customer, only with another input for the customer.

the php code is something like

$Number = $_POST['datasent'];

$query = "SELECT * FROM table WHERE item_number = $Number";

$results = mysqli_query($connection, $query);

$row = mysqli_fetch_array($results);


what am i missing and it is really important for me to have the multiple variables pulled in one function instead of having multiple different functions for each input.

i expect getting this code to work shouldn't take more than half an hour. so my budget for this is 5$.

Kemahiran: AJAX, MySQL, PHP, Kejuruteraan Perisian, XML

Lihat lebih lanjut: live search php mysql database, ajax search jquery, ajax search in php demo, ajax search box php mysql like google, php mysql ajax search autocomplete, ajax php mysql search example, jquery ajax live search, ajax live search php mysql, drag drop php ajax mysql, php ajax mysql tag, php ajax mysql barcode reader, php ajax mysql admin console sample, php ajax mysql live search, looking php ajax mysql services freelance, php ajax mysql login form

Tentang Majikan:
( 11 ulasan ) Petah Tiqva, Israel

ID Projek: #15375234

37 pekerja bebas membida secara purata $11/jam untuk pekerjaan ini


Hello, I am a senior developer with extensive experience in building high quality Mobile apps & Web system. When I work on a project, I strive for excellence and 100% client satisfaction. Having an idea is easy, Lagi

$11 USD / jam
(55 Ulasan)

Hello , Greetings from Shopify. I hope you are doing fine. I read your project description and would like to work with you. I think you need developed new website for your business. I am here to provide you great Lagi

$15 USD / jam
(25 Ulasan)
$12 USD / jam
(54 Ulasan)

sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me .... sir pm me ....

$8 USD / jam
(114 Ulasan)

Hello We have a Skilled Team of Experts having a Strong 8 years of an Experience in Web & Mobile Application Designing & Development & have already completed more than 230 Projects successfully. Relevant Skills a Lagi

$16 USD / jam
(13 Ulasan)

Building long term business relationships is my highest priority. About Me : => Strong database knowledge specifically MySQL. => Extensive knowledge of PHP, Wordpress, Shopify, Magento, JavaScript, CSS and HTML. Lagi

$10 USD / jam
(81 Ulasan)

Hello, I have strong skills at php, ajax and mysql. Your task is very simple, so I can handle it. Please let me know if you want to work with me. Thx.

$12 USD / jam
(6 Ulasan)

Hi, I can definitely help you with your requirements. I am a full time developer working "8 hours a day" 40 hours per week. I have limited space here to write please message for more discussion. Waiting for yo Lagi

$8 USD / jam
(61 Ulasan)
$15 USD / jam
(22 Ulasan)

hello sir i am expert in AJAX, MySQL, PHP, Software Architecture, XML i can do this work you will satisfy with my work i can do this work asap thank you

$10 USD / jam
(59 Ulasan)

Hi, I have the able to can do your task. I would do my best on your task. You can see also my France client e-commerce site url [url removed, login to view] and [url removed, login to view] site Lagi

$12 USD / jam
(22 Ulasan)

Hello there! I can take a look at it before getting awarded, hit me up in the chat if you're interested :=)

$10 USD / jam
(32 Ulasan)

I can solve this ajax error of getting data, you are making mistake while sending a request Contact me i will solve it soon

$8 USD / jam
(32 Ulasan)

hiii there i am interested in your projecjt and gone through your post let me are u able able to share your that part of code so can fix it within an hour contact me for further chat

$12 USD / jam
(8 Ulasan)
$8 USD / jam
(31 Ulasan)

Hello Man, i'm a PHP expert having participate in many web projects i have a good experience using jquery and javascrpt trust me i can complete your work quickly in 1 hours max regards Omar

$13 USD / jam
(14 Ulasan)

Hello, Hope you are doing Great!! As i got you need code that will pull records from the database, and will echo them to a php variable using ajax. I also analyze your given code and i need to discuss in deep for Lagi

$14 USD / jam
(3 Ulasan)

Hi brother, Lets come to chat i can fix this easily. Our Portfolio: [url removed, login to view] Skills Required=> php javascript

$8 USD / jam
(9 Ulasan)
$11 USD / jam
(19 Ulasan)

Hi, I went through your requirement and feel comfortable to do this job. I have good experience in website design & development. Please initiate chat to discuss further.

$12 USD / jam
(16 Ulasan)