I have a MySQL table that is being displayed on a webpage. I have a button for each row that toggles a function using a value from the row :
<button id="loginButtonSmall" onclick="resumeApplication(<?php echo $row['newApplicationNumb']; ?>)">
Pickup where we left off
</button>
Value of $row['newApplicationNumb']
displays correctly further up on the page.
Here $row['newApplicationNumb']
= 359786918929342363.
Then I have :
function resumeApplication(applicationID) {
var newApplicationNumb = applicationID;
alert(newApplicationNumb);
}
The alert returns : 359786918929342340.
So it changes the last 2 digits from 63 to 40 each time...
I've looked around and really don't understand how it could change the value like this...
Any clues would be very much appreciated!