Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

Using a variable in const char *sqlStatement

User Post

1:20 pm
October 7, 2008


bobcubsfan

iCoder

Los Angeles

posts 33

1

In PHP, I have used the following:

           $query=”SELECT * FROM `zipcodes` WHERE zip =  '$czip'”;

The table is zipcodes, zip is a field in the table. czip is a variable from input. So, I can retrieve all the instances of czip from zipcodes by using the construct '$czip'.

How can this be done in XCode in a const char statement?


About the iCodeBlog forum

Currently Online:

2 Guests

Maximum Online: 14

Forums:

Groups: 2

Forums: 6

Topics: 118

Posts: 394

Members:

There are 225 members

There are 1 guests


Brandon has made 73 posts

Top Posters:

bobcubsfan - 33

crazyiez - 30

Uhu - 17

Nick - 15

corey - 10

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: