parachute/phpMyAdmin/test/libraries/PMA_relation_cleanup_test.php
/**
     * returns only the first row from the result
     *
     * <code>
     * $sql = 'SELECT * FROM `user` WHERE `id` = 123';
     * $user = $GLOBALS['dbi']->fetchSingleRow($sql);
     * // produces
     * // $user = array('id' => 123, 'name' => 'John Doe')
     * </code>
     *
     * @param string|mysql_result $result query or mysql result
     * @param string              $type   NUM|ASSOC|BOTH
     *                                    returned array should either numeric
     *                                    associative or booth
     * @param resource            $link   mysql link
     *
     * @return array|boolean first row from result
     *                       or false if result is empty
     */


@param string|mysql_result $result query or mysql result
@param string              $type   NUM|ASSOC|BOTH
returned array should either numeric
associative or booth
@param resource            $link   mysql link

@return array|boolean first row from result
or false if result is empty
@param string|mysql_result $result query or mysql result @param string $type NUM|ASSOC|BOTH returned array should either numeric associative or booth @param resource $link mysql link @return array|boolean first row from result or false if result is empty
public function fetchSingleRow($result, $type = 'ASSOC', $link = null)
    {
        return array(
            'display_field' => "PMA_display_field"
        );
    }
public function fetchSingleRow ( $ result , $ type = 'ASSOC' , $ link = null ) { return array ( 'display_field' => " PMA_display_field " ) ; }
returns only the first row from the result
 <code>
 $sql = 'SELECT * FROM `user` WHERE `id` = 123';
 $user = $GLOBALS['dbi']->fetchSingleRow($sql);
 // produces
 // $user = array('id' => 123, 'name' => 'John Doe')
 </code>
returns only the first row from the result <code > $sql = ' SELECT * FROM ` user ` WHERE ` id ` = 123 ' ; $user = $GLOBALS [ ' dbi ' ] - > fetchSingleRow ( $sql ) ; // produces // $user = array ( ' id ' = > 123 ' name ' = > ' John Doe ' ) < / code >