Jump to content


Member Since 30 Mar 2012
Offline Last Active Private

Topics I've Started

db-insert with added field

30 September 2012 - 07:15 AM

Hi there again,

i have a callback_add_field, which looks like this
$this->grocery_crud->fields(.... , 'Test', ...);

function getSpiele() {
$out = "<input id='field-Test' type='text' name='Test' />";
return $out;

And a callback_after_insert:

$this->grocery_crud->callback_after_insert(array($this, 'getTest'));

function getTest($post_array,$primary_key) {
$test = array(
"id" => $primary_key,
"test" => $post_array['Test']

$this->db->insert('test', $test);

using this, works fine, but the $post_array['Test'] doesn't work, why, how can it be solved?
$test = array(
	 "id" => $primary_key,

Thanks in advance,

Add field with related values

29 September 2012 - 09:49 AM

Hey guys,

I am sure it isn't that hard to solve my issue, but I couldn't find anything helpfull so far :(

I want to set a relation to a specific ID and display more than just 1 information from that related table.




This gets me just the home team

Now i want to display the away team too, but how?

Thanks in advance,

where > / <

27 April 2012 - 04:15 PM

Hi again,

I think the title is quite obvious,
is it possible to set bigger/less than clauses in the where statement?

$crud->where('status','active'); // status > 2 or < 5 etc. possible?



Join Tables

30 March 2012 - 06:49 PM

Hi everyone,

I am not familiar with grocery crud, I have just uploaded everything i needed and everything works fine so far,
i get my tables from the database, everythings working fine

but now I want to display some tables with joins ...
how does that work?

i have a table named "players", now i want some additive information from the table "persons"
I couldn't find anything helpful so far, maybe i have overlooked a page on grocerycrud.com?
google isn't helping much :(

Thanks in advance!