I have a MySQL table that displays on a web page. I have a button for each row that switches the function using the value from the row:
<button id="loginButtonSmall" onclick="resumeApplication(<?php echo $row['newApplicationNumb']; ?>)">
Pickup where we left off
</button>
The value is $row['newApplicationNumb']displayed correctly on the page up.
Here $row['newApplicationNumb']= 359786918929342363.
Then I:
function resumeApplication(applicationID) {
var newApplicationNumb = applicationID;
alert(newApplicationNumb);
}
Refund warning: 359786918929342340.
Thus, it changes the last 2 digits from 63 to 40 every time ...
I looked around and really do not understand how this can change a value like this ...
Any tips would be greatly appreciated!
source
share