note 49928 added to function.mysql-query
| From: | onlywhenitscold at doglover dot com | Date: | Sat, 12 Feb 2005 06:57:44 +0000 |
| Subject: | note 49928 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84893@lists.php.net to get a copy of this message | ||
I use this for fast debugging:
<?
function myq($query){ //mysql_query() shortcut with error handling
$sqlout=mysql_query($query);
if (mysql_error()) die("</script><br>myq:
".mysql_error()."<br>query: ".$query);
else return $sqlout;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49928
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49928&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49928&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49928&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49928&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49928&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49928&report=yes
Search -- http://master.php.net/manage/user-notes.php