Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:16:30+00:00 2026-06-15T06:16:30+00:00

In my android application, I am querying a mysql database for a specific food

  • 0

In my android application, I am querying a mysql database for a specific food id.

Example:

Food A - (food_id 5)

Food A is part of three food groups, each with their own unique ID.

Example:

Meal A - (meal_id = 3), 
Meal B - (meal_id = 8),
Meal C - (meal_id = 20)

I am currently connecting to the mysql database via php, and can successfully query for the food_id in question and receive the JSON response into my android application.

I am stuck how to then pass it back through php/JSON to create three mysql rows (one for each meal returned) which will include some extra information added onto it in some new fields. Would I best be served by passing an array from android to my php service? How would this look?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:16:31+00:00Added an answer on June 15, 2026 at 6:16 am

    Just use an HttpClient to make a request back to the PHP application endpoint where you want to handle the incoming data, POSTing the data you want to work with on the server. You can post in whatever format suits you – query string, JSON, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my android application I am querying a database. I am only able to
I'm making an android application using phonegap. I'm using phonegap's Storage api for querying
My android application is saving some stats to internal storage. Each file name is
My android application needs frequent access to sqlite database. I was thinking if there
I'm having trouble querying my SQLite database using Android. I keep getting either an
In android application i have a custom listview and sqlite database. I want to
I have an android application with a SQLite database and I am trying to
The android application having a toolbar with three buttons of three different implementations. The
I'm working on this tutorial, it's about querying the mysql database by using Json
I have a part of code which returns an array after querying the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.