mysql - Multi_query PHP MySQLi -


function search_admin($q) {     $db = load_db();     $sql = "select keyword keyword keyword = '%{$q}%'";     $sql .= " select title, status               title               concat(title, ' ', status)               '%{$q}%'";     $sql .= " select first_name, middle_name, last_name, cbemail               employees               concat(first_name, ' ' , middle_name, ' ' , last_name , ' ' , cbemail)               '%{$q}%'";     $sql .= " select username users username = '%{$q}%'";      $result = $db->multi_query($sql);  // missing code  } 

i can't seem understand explanation in php manual. hope can englighten me more. search bar, if example search "pending". code search on 3 tables title, employees , users. output results. problem after result query :/


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -