Response title
This is preview!
inside mysql db which is table employe in coloumn id_employee, some data have a leading zero, etc :
id_employee : 0378192919
empy_name : Jack
i need to get id_employee for delete employe in my aplication, then i using ajax method like this :
the delete employe cant run because ajax function return id_employee without leading zero ..
the problem solved , it was the quotes that must surround all part of number. so reffer to article that i found in internet just add backslash.
$id = $row['nip']; // 0378192919
onclick="editEmploy(\''.$id.'\')"> //'0378192919'
btw many thanks for ur time and effort to help me out of here, the first clue that u ever said to me is The Quotes
© 2013 jQuery Foundation
Sponsored by and others.