diff --git a/get_events.php b/get_events.php index 24f2929..4328998 100644 --- a/get_events.php +++ b/get_events.php @@ -12,8 +12,9 @@ foreach(srowforeach("SELECT * from `ritzenbergen-events`",[]) as $key => $value) $datum=$value[2]; $type=$value[3]; $content=$value[4]; - $link=$value[5]; - $foto=$value[6]; + $minitext=$value[5]; + $link=$value[6]; + $foto=$value[7]; array_push($result,[ "id" => $id, "eventname" => $eventname, @@ -21,8 +22,9 @@ foreach(srowforeach("SELECT * from `ritzenbergen-events`",[]) as $key => $value) "type" => $type, "content" => $content, "link" => $link, - "foto" => $foto + "foto" => $foto, + "minitext" => $minitext ]); } -echo json_encode($result,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); \ No newline at end of file +echo json_encode($result,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);