Results 1 to 2 of 2
Thread: Passing parameters via AJAX
Feb 16, 2014, 01:06 #1
Passing parameters via AJAX
we have a position name in database like 'Technician, Instrument & Electronics'
$query_sal="SELECT * FROM salary_scale WHERE position='$position_name'";
SELECT * FROM salary_scale WHERE position='technician, instrument '
Feb 16, 2014, 01:09 #2
i found the problem now. actually the variable $position_name holds only the 'technician, instrument' part which was returned by an ajward post before the query.
This code in ajax file did the fix
params = params + "&position=" + encodeURIComponent(position);