Page 1 of 1

What is the purpose of this little guy... "$eo"

Posted: 2016-08-31 06:27
by buck1942
I see this, $eo, at the end of some (maybe all) SQL statements, but what does it mean?

Buck

Re: What is the purpose of this little guy... "$eo"

Posted: 2016-08-31 08:34
by DevGiu
From incCommon.php

Code: Select all

function sql($statment, &$o){

		/*
			Supported options that can be passed in $o options array (as array keys):
			'silentErrors': If true, errors will be returned in $o['error'] rather than displaying them on screen and exiting.
		*/

Re: What is the purpose of this little guy... "$eo"

Posted: 2016-08-31 12:46
by buck1942
DevGiu...

Thank you,

Buck

Re: What is the purpose of this little guy... "$eo"

Posted: 2024-03-20 00:05
by jmcgov
Can someone show me the usage of this
Maybe
$res = sql($query, $eo);
Becomes
$res = sql($query, 'silentErrors');

Re: What is the purpose of this little guy... "$eo"

Posted: 2024-03-24 22:59
by a.gneady

Code: Select all

$eo = ['silentErrors' => true];
$res = sql($query, $eo);

Re: What is the purpose of this little guy... "$eo"

Posted: 2024-04-01 03:52
by jmcgov
Thanks @agneady