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([login to view URL]);"

then a script that will look something like this


function getData(val) {


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

dataType: 'json',

type: 'POST',

data: "datasent="+val,

success : function(data) {

receivedData = [login to view URL](data);

$('#internal').val([login to view URL]);

$('#customer').val([login to view URL]);





the #internal is an input

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

i would like to have the "[login to view URL]" 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$.

Evner: AJAX, MySQL, PHP, Software Arkitektur, XML

Se mere: 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, real time order receiving php ajax mysql, php ajax mysql search form, php ajax mysql drill, php ajax mysql charts, izmir php ajax mysql

Om arbejdsgiveren:
( 26 bedømmelser ) Petah Tiqva, Israel

Projekt ID: #15375234

33 freelancere byder i gennemsnit $11/time for dette job


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, Flere

$11 USD / time
(55 bedømmelser)

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 Flere

$15 USD / time
(27 bedømmelser)

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 / time
(122 bedømmelser)
$12 USD / time
(77 bedømmelser)

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. Flere

$10 USD / time
(128 bedømmelser)

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 / time
(105 bedømmelser)

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 Flere

$8 USD / time
(75 bedømmelser)

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 / time
(171 bedømmelser)

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 Flere

$16 USD / time
(18 bedømmelser)

You have created project of minimum 8USD so we have to bid atleast 8 USD. I can get this done in next hour and available for work. For info I have 7+ years of working experience so be assured of the work

$8 USD / time
(138 bedømmelser)

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 [login to view URL] and [login to view URL] site Flere

$12 USD / time
(38 bedømmelser)

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 / time
(34 bedømmelser)

Kindly check our Best work samples: ----- a) Websites: [login to view URL] [login to view URL] b) Mobile Applications: [login to view URL] https://itunes Flere

$12 USD / time
(9 bedømmelser)
$15 USD / time
(22 bedømmelser)

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

$8 USD / time
(26 bedømmelser)

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 / time
(44 bedømmelser)

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 / time
(7 bedømmelser)

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 / time
(13 bedømmelser)

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

$10 USD / time
(32 bedømmelser)

Dear Sir I can assists you hourly for resolving issues as per your [login to view URL] initiate further conversation for better understanding and clarity

$8 USD / time
(39 bedømmelser)