getting a value from a php return in javascript

Xidos

New Member
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.\[code\]var num = checksize();function checksize(){ $.get("../php/checktablezie.php", function(data){ return data; });}\[/code\]
 
Back
Top