Hi,
I am inserting data using while onclick event in href using jquery post method, it works successfully, 
But in controller  after insertion, I wrote 
 $this->load->view('viewnames');
 But it is not loading that viewnames.php
 It displays nothing

Hi, codeIgniter can log errors. If enabled set it to max verbosity (through application/config/config.php) and see if it gives you some additional information.

As cereal says, php displays a blank page for fatal errors, if logging is not set to output them to the screen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.