Jump to content


how to fetch search result

php html jquery mysql css

  • Please log in to reply
No replies to this topic

#1 dhoni223

dhoni223

    Member

  • Members
  • PipPip
  • 13 posts

Posted 12 February 2018 - 04:32 AM

       public function printing()
    {
             
        $crud = new RMCL_grocery_CRUD();
        $crud->set_table('wp_rmcl_pub_subscription');
        $this->load->library('labels');  
        $config['format'] = 'word';  
        $config['layout'] = "subscriber_name<br />house_number,road<br />layout,city<br />state-pincode";  
        $this->labels->initialize($config);  
        $connect=mysqli_connect('localhost','root','123456','armdb');
        $result=mysqli_query($connect,"select * from wp_rmcl_pub_subscription");
        while($row=mysqli_fetch_array($result))
        {
        $addresses[] = array(  
                         'subscriber_name'=>$row['subscriber_name'],  
                         'road'=>$row['road'],
                         'layout'=>$row['layout'],
                         'house_number'=>$row['house_number'],
                         'state'=>$row['state'],
                         'pincode'=>$row['pincode'],
                         'city'=>$row['city'],
                         'pincode'=>$row['pincode'],
            );  
    }
// Ou

i want to store search result in $addresss







Also tagged with one or more of these keywords: php, html, jquery, mysql, css

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users