Categories CodeIgniter

Validation in CodeIgniter

Step 1 : Make View in view folder as “myform.php” Step 2 : Make controller in controller folder as “Form.php” Step 3 : Make another view in view folder as formsuccess.php to show after successful validation. myform.php file <html> <head> <title>My Form</title> </head> <body> <?php echo form_open(‘form’); ?> <h5>Username</h5> <input type=”text” name=”username” value=”<?php echo set_value(‘username’); […]

Read More
Categories laravel Tutorial

Events in laravel ?

An event is an action or occurrence recognized by a program that may be handled by the program or code. Events provides a simple observer implementation, that allowing you to subscribe and listen for various events/actions that occur in your application. All Event classes are generally stored in the app/Events directory, while their listeners are […]

Read More
Categories Android Studio Tutorial

Show data from mysql database to android fragment

There are two files. 1] java file. 2] fragment file. 1] Java file code package com.example.clinicmgmt; import android.os.AsyncTask; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; public class fetchData extends AsyncTask { public fetchData() { } String data = “”; String dataParsed = […]

Read More
Categories Android Studio Tutorial

Insert data from android app to mysql database

Write this code into fragment file like AddExpensesFragment package com.example.clinicmgmt; import android.os.Bundle; import android.os.StrictMode; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; /** * A simple {@link Fragment} subclass. […]

Read More
Categories OpenCart Tutorial

How to Install OpenCart ?

Step 1 :  Open URL (https://www.opencart.com/),then click on Free Download button. then click DOWNLOAD NOW button. Step 2 : After downloading, Extract the folder, then open the Upload folder, copy all files and folders and past it in xampp >> htdocs >> make new folder  like shoppingProject. Step 3 : Rename config-dist.php file to config.php Step […]

Read More