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

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
buck1942
Veteran Member
Posts: 31
Joined: 2016-08-04 02:38

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

Post by buck1942 » 2016-08-31 06:27

I see this, $eo, at the end of some (maybe all) SQL statements, but what does it mean?

Buck

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

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

Post by DevGiu » 2016-08-31 08:34

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.
		*/
/Giuseppe
Professional Outsourcing Services

buck1942
Veteran Member
Posts: 31
Joined: 2016-08-04 02:38

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

Post by buck1942 » 2016-08-31 12:46

DevGiu...

Thank you,

Buck

User avatar
jmcgov
Veteran Member
Posts: 81
Joined: 2018-12-19 01:31
Location: Northern Ireland

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

Post by jmcgov » 2024-03-20 00:05

Can someone show me the usage of this
Maybe
$res = sql($query, $eo);
Becomes
$res = sql($query, 'silentErrors');

User avatar
a.gneady
Site Admin
Posts: 1287
Joined: 2012-09-27 14:46
Contact:

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

Post by a.gneady » 2024-03-24 22:59

Code: Select all

$eo = ['silentErrors' => true];
$res = sql($query, $eo);
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

User avatar
jmcgov
Veteran Member
Posts: 81
Joined: 2018-12-19 01:31
Location: Northern Ireland

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

Post by jmcgov » 2024-04-01 03:52

Thanks @agneady

Post Reply