note 81415 deleted from function.mysql-real-escape-string by danbrown
| From: | danbrown@php.net | Date: | Sat, 14 Mar 2009 15:03:15 +0000 |
| Subject: | note 81415 deleted from function.mysql-real-escape-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151916@lists.php.net to get a copy of this message | ||
Note Submitter: gth
----
Example #3's IF statement could be improved -
<?php
if (isset($_POST['product_name']) &&
isset($_POST['product_description']) && isset($_POST['user_id'])) {
...
// should instead be
if (isset($_POST['product_name'], $_POST['product_description'],
$_POST['user_id'])) {
...
?>
as per http://au2.php.net/manual/en/function.isset.php