Image upload with Codeigniter

1) Create upload.php file inside controller, copy and past the following code into. Also create an ‘uploads’ folder inside the codeigniter root folder.

2) Create the upload_view and upload_success files inside view folder and insert the below codes into upload_view

Upload Success

If you have any question regarding the codes above, you …

Check if a record exist in a specific table of database in MySQL

You can check if a record exist in a specific table of database in MySQL with the code block below: