Skip to content

Instantly share code, notes, and snippets.

View winex01's full-sized avatar
♥️
:)

Winnie A. Damayo winex01

♥️
:)
  • 21:00 (UTC -12:00)
View GitHub Profile
@winex01
winex01 / autocomplete.php
Created November 7, 2017 03:37 — forked from imranismail/autocomplete.php
Laravel And JqueryUI's Autocomplete Plugin
//SearchController.php
public function autocomplete(){
$term = Input::get('term');
$results = array();
$queries = DB::table('users')
->where('first_name', 'LIKE', '%'.$term.'%')
->orWhere('last_name', 'LIKE', '%'.$term.'%')
->take(5)->get();
-- Function: dtr.sp_process_log(integer)
-- DROP FUNCTION dtr.sp_process_log(integer);
CREATE OR REPLACE FUNCTION dtr.sp_process_log(var_log_id integer)
RETURNS integer AS
$BODY$
DECLARE
lkr dtr.log_keeper%ROWTYPE;