1 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
3 <title>CarbonPHP Documentation
</title>
4 <style type=
"text/css">
11 font-family: "Lucida Sans Unicode", "Lucida Grande";
33 margin: 10px 0 10px 0;
34 list-style-position: inside
;
42 border: 1px dotted
#444;
50 border: 1px solid
#ccc;
61 <h1>Custom Function Calls
</h1>
63 <p>CarbonPHP provides a method that allows you to manually call a database function that are not implemented
64 in the CarbonPHP database classes. For example if you wish to call the MySQL function
65 <b>mysql_get_client_info()
</b> which is not implemented in CarbonPHP you can do so using the following
69 $this-
>db-
>call_function('
<b>get_client_info
</b>');
72 <p>You have to supply the function name without the
<b>mysql_
</b> prefix as CarbonPHP will automatically
73 prepend this to the function call based on the database driver being used.
</p>
75 <p>If you need to pass parameters to the function you can add them by passing them as a second parameter and
79 $this-
>db-
>call_function('some_function', $param1, $param2, ...);
82 <p>You may also need to pass the result ID or connection ID to the function, these can be access by doing the
89 <p>The result ID can be accessed by doing the following.
</p>
92 $query = $this-
>db-
>query('SQL QUERY');
<br />
94 <b>$query-
>result_id;
</b>