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

  • SEARCH
  • Home
  • 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 6001275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:48:42+00:00 2026-05-23T00:48:42+00:00

I have a database called catalog, it has two three columns one is just

  • 0

I have a database called catalog, it has two three columns one is just the key field, the other is a integer called “code” and the other is a NSString called “make”.

My app allows the user to type in a code to search for any makes that have that code, so there is a uitextfield where they can type the code then the user presses a uitextfield cell that loads a new uitableview onto the navigation stack I want to display any makes that have the code that was entered in the previous view here.. I have most of the code done as I am following a great guide “professional iphone and ipad database application programing” however in the step I am doing they just show all the data not a restriction of data, I would like to know how to do this.

here is my sql request string

const char *sql = "SELECT catalog.make From catalog where catalog.code =???

I would like to know what should come next, how to I execute this statement with the code the user has entered in the uitextfield?

any help would be greatly appreciated.

  • 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-05-23T00:48:43+00:00Added an answer on May 23, 2026 at 12:48 am

    I’d just make the SQL statement into an NSString, it’s easier.

    Assuming the UITextField you’re collecting data from is an IBOutlet called myText:

    NSString *sql = [[NSString alloc] initWithFormat:@"SELECT catalog.make FROM catalog WHERE catalog.code = %@", myText.text];
    const char *cString = [sql cStringUsingEncoding:NSASCIIStringEncoding];
    [sql release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database table called users This table has two columns (that are
Ok... I have a database table called employees.. This has columns called ID, Name,
I have a database table called user where I have some columns. One of
Say I have a database called Poll and have these two table structures. poll
I have a database field called abCode , that I want to map to
Okay so I have a database field called moderated It is an ENUM with
I have a database called prices and there are 12 columns lets say. comp1,
I have a database table called posts that has 'id, title, slug and content'
I have a mysql database table called POST . One of the fields is
I have a MySQL database called bookfeather. It contains 56 tables. Each table has

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.