How To Post Instagram Photos From A Desktop Web Browser

A recent update to Instagram’s website has just enabled a feature which users of iPads and desktop PCs everywhere have been crying out for since the start. You can now upload images directly from a browser without the need to use the Instagram app and it’s trivially easy for Chrome users.

Continue reading “How To Post Instagram Photos From A Desktop Web Browser”

Advertisements

How To Call Controller In Helper File In Codeigniter

In this tutorial, we will learn how to call controller in helper file inCodeIgniterr and render anywhere, whenever you want to do that.

In CodeIgniter PHP framework we can call controller in helper file and render in app/errors/error_404.php file.

Follow steps below:

Continue reading “How To Call Controller In Helper File In Codeigniter”

Stored procedure in codeigniter

Steps To Call Stored Procedure In Codeigniter:

The way you call a stored procedure can depend on how you create it. It’s time to discuss three common ways to create and call a stored procedure in CodeIgniter.

1. Create a stored procedure for select operation.


CREATE PROCEDURE Select_first ()
BEGIN
SELECT * FROM table_name;
END

Now that the Select_first procedure has been created and defined, we can call this procedure at any time in CodeIgniter. In this example, we create a variable, $data, by pointing to the procedure above after loading and initializing the database class in CodeIgniter.

To call this specific procedure within a query:-

       $data = $this->db->query(“CALL Select_first ()”);
       mysqli_next_result($this->db->conn_id);
       $result = $data->result();

Continue reading “Stored procedure in codeigniter”