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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -