yusufhermanto Posted May 26, 2007 Share Posted May 26, 2007 How to check data, if the data not numeric. and if the data is not numeric i want to display alert to not save this data. Link to comment https://forums.phpfreaks.com/topic/53038-check-numeric/ Share on other sites More sharing options...
chigley Posted May 26, 2007 Share Posted May 26, 2007 <?php $data = "hello"; if(!is_numeric($data)) { echo "Do not save this data"; } else { // Save the data } ?> Link to comment https://forums.phpfreaks.com/topic/53038-check-numeric/#findComment-261991 Share on other sites More sharing options...
yusufhermanto Posted May 26, 2007 Author Share Posted May 26, 2007 Thank you Link to comment https://forums.phpfreaks.com/topic/53038-check-numeric/#findComment-261994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.