cvs: php-bugs-web /include functions.inc

From: Date: Tue, 30 Apr 2002 00:31:38 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9951@lists.php.net to get a copy of this message
jimw Mon Apr 29 20:31:38 2002 EDT Modified files: /php-bugs-web/include functions.inc Log: whoops, forgot to check this in Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.28 php-bugs-web/include/functions.inc:1.29 --- php-bugs-web/include/functions.inc:1.28 Sun Apr 28 20:53:42 2002 +++ php-bugs-web/include/functions.inc Mon Apr 29 20:31:37 2002 @@ -19,6 +19,15 @@ } } +function mysql_get_one($query) +{ + $res = mysql_query($query); + if ($res && mysql_num_rows($res)) { + return mysql_result($res,0); + } + return false; +} + function show_byage_options($current) { $opts = array(

« previous php.mirrors (#9951) next »