I'm using jquery's $.get() to find out how many entries are in a table. I want the returned value to be an Int but it seems to be something else. How do I work with this? this is the code I have. I'm sure I'm just going about this wrong. My background is many java.
var num = checksize();
function checksize(){
$.get("../php/checktablezie.php", function(data){
return data;
});
}