note 17531 added to function.is-int

From: Date: Thu, 13 Dec 2001 00:29:13 +0000
Subject: note 17531 added to function.is-int
Groups: php.notes 
Request: Send a blank email to php-notes+get-22565@lists.php.net to get a copy of this message
When validating sql results being integer or not i use the following: $fields = mysql_listfields($db,$tbl); //$data = mysqlQUERY; if (mysql_fieldtype($fields,$q) { //treat $data[$q] as integer } is there an easier way>? -- http://www.php.net/manual/en/function.is-int.php http://master.php.net/manage/user-notes.php?action=edit+17531 http://master.php.net/manage/user-notes.php?action=delete+17531 http://master.php.net/manage/user-notes.php?action=reject+17531

« previous php.notes (#22565) next »