note 14620 added to function.settype.php

From: Date: Mon, 06 Aug 2001 18:59:03 +0000
Subject: note 14620 added to function.settype.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16407@lists.php.net to get a copy of this message
To: neoja@hotmail.com I believe in this case testing the $id using is_numeric() would be the better solution. E.g something like this: <?php if (is_numeric($id)) { $db->query($sql); } ?> Roman Schechtel http://www.php.net/manual/en/function.settype.php

« previous php.notes (#16407) next »