Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_research_request()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/research_functions.php lines 113 to 127

Definition

 
function get_research_request($ref)
    {
    
$rr_sql="SELECT rr.ref,rr.name,rr.description,rr.deadline,rr.email,rr.contact,rr.finaluse,rr.resource_types,rr.noresources,rr.shape,
                    rr.created,rr.user,rr.assigned_to,rr.status,rr.collection,rr.custom_fields_json,
                    (select u.username from user u where u.ref=rr.user) username, 
                    (select u.username from user u where u.ref=rr.assigned_to) assigned_username from research_request rr where rr.ref=?"
;
    
$rr_parameters=array("i",$ref);

    
$return=ps_query($rr_sql$rr_parameters);
    if (
count($return) == 0)
        {
        return 
false;
        }
    return 
$return[0];
    }

This article was last updated 26th June 2022 02:35 Europe/London time based on the source file dated 17th June 2022 13:40 Europe/London time.