adamd

May 21

_mysql() - Select data from rows, grouped by column

This allows for chained queries/linking with other tables, for example, to select `applications` that match the first query.

Code
<?php
	$applications_assigned=_mysql(
		'select',
		'computers_applications_assigned',
		array(
			'fields'=>array( //fields you want to return
				'application',
				'license'
				),
			'where'=>array( //query for selection
				'active'=>1,
				)
			),
		array(
			'return-only'=>array('application','license') //fields you want uniques for
			)
		);
?>
Output
Array (
    [query] => SELECT `application`, `license` FROM `computers_applications_assigned` WHERE `active`='1'
    [result] => Array (
            [application] => Array ( //all values in the 'application' column matching the query
                    [0] => 61
                    [1] => 77
                )
            [license] => Array ( //all values in the 'license' column matching the query
                    [0] => 61
                    [1] => 77
                )
        )
    [results_count] => 2
    [startfrom] => 0
    [remaining] => 0
    [affected_rows] => 2
    [error] => 
)

May 17

Making #radio (at Radio Fremantle)

Making #radio (at Radio Fremantle)

May 09

Who knew supporting kids football teams could be so delicious? #krispykreme

Who knew supporting kids football teams could be so delicious? #krispykreme

“K: Tri colour taxi? Seems ironic cos all I see is a gunmetal grey taxi…” — (via nerdsontheroad)

May 07

#taxi #boredwhilewalking #perth

#taxi #boredwhilewalking #perth

Apr 28

(via prguitarman)

(via ryanhasabutt)

lovequotesrus:

EVERYTHING LOVE

lovequotesrus:

EVERYTHING LOVE

Apr 21

[video]

Apr 18

#marshmallow #cafe

#marshmallow #cafe

Apr 11

Will you sit with me and watch the world go by?

Will you sit with me and watch the world go by?

Apr 06

#lunch #allbymyself #sammichshop

#lunch #allbymyself #sammichshop

Mar 31

#easter #bunny #rabbits

#easter #bunny #rabbits

#bike #ride #cousin

#bike #ride #cousin

#bbq #flames #uncle #easter

#bbq #flames #uncle #easter