Win a copy of Head First Android this week in the Android forum!

Hardik Jani

+ Follow
since Jul 21, 2016
Hardik likes ...
Android PHP AngularJS
Esprit Solutions Pvt. Ltd. is one of the pioneer mobile app development company located at Ahmedabad, India. We do android app development, iphone app development and PHP web development that includes LAMP solutions, MEAN stack solutions and various PHP based frameworks. We have provided best in class offshore development service in mobile app development and web development. Our armchair addict mobile app developers and web developers are experienced, proficient and tech-savvy. These mobile app developers and web developers are led by iOS experts, android experts and PHP (LAMP & MEAN) experts.

Being a mobile app development company for Android, iPhone, iPad and Android Phone and Android Tablet, we develop enterprise apps, eCommerce apps and other business apps for mobile and tablets. We develop customized native, iOS, Android apps and cross platform apps and responsive web applications.
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hardik Jani

Right now I can not test your code but want to ask where is your Main class? Primarily, it seems there are so many changes.
5 years ago
Query on the Primary Key Constraint and Unique Key Constraint along with Where Conditional Claus will help to filter the data
There are many reasons for the error "This site can't be reached". One of them is related to network issue. There must be some firewall settings or something restricting to your site.

Below is the example, Through help of this example you can solve your problem.

-- Now, insert a record

Query OK, 1 row affected (0.00 sec)
Records: 1  Duplicates: 0  Warnings: 0

| id | name   | address   | tele |
|  1 | Rupert | Somewhere | 022  |

Hope, it can useful to you.
Do something like below or directly use below code:

Sample example - 1:

public static void main(String[] args) {
       int n = 10;
       int sum = 0;
       for(int e = 1; e <=n; e++)          
           sum = sum + e;

Sample Example - 2:

int sum = 0;     // 1 time
int i = 0;       // 1 time
while (i < n) {  // n+1 times
 sum++;         // n times
 i++;           // n times

Sample Example - 3:

int counter = 1

for(int i=1;i<20;i++) {
if (i%2==0) //Match for 2

Hope, this can helpful to you.
5 years ago
It is sure that you are violating reference key rule. There are two column(fields) of the table, order_id and product_id. There is possibility that there is a null value coming from your front end code function and trying to insert into your data table but you have set Not Null constraint. It is better to print or observe the value of the each field through debug, you will definitely solve your problem.