15,611,656 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by SanjeevJayaram (Top 8 by date)
SanjeevJayaram
1-Aug-13 0:56am
View
Thanks bro it works.
SanjeevJayaram
29-Jul-13 8:26am
View
I am able to pass values to another html page to another and also image. But my problem is how to pass both at the same time.(ie) by clicking one button.
SanjeevJayaram
10-Jul-13 8:36am
View
What is the error are u getting.
SanjeevJayaram
2-Jul-13 3:16am
View
i didn't reset and finalize the query properly. Now i got it. Next time i will post the question with code :). And thanks for your advise bro :)
SanjeevJayaram
2-Jul-13 3:10am
View
Actually i tried to send mail through simulator so i didn't get mail. i tried in device and now it works.
I indent the code next time and thanks for your advice :)
SanjeevJayaram
6-Jun-13 0:49am
View
i tried single = in where clause but still the same error occurs.
"Failed to execute the query 5"
SanjeevJayaram
16-May-13 3:16am
View
- (IBAction)deletedata:(id)sender {
NSArray *data1 = [[DBManager getSharedInstance]deletebyregisterno: findByRegisterNumberTextField.text];
if (data1 == nil) {
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:
@"Data not found" message:nil delegate:nil cancelButtonTitle:
@"OK" otherButtonTitles:nil];
[alert show];
}
else
{
NSLog(@"delete success");
}
}
-(NSArray*) deletebyregisterno:(NSString*)registerNumber
{
NSLog(@"here");
const char *dbpath = [databasePath UTF8String];
if (sqlite3_open(dbpath, &database) == SQLITE_OK)
{
NSLog(@"here inside");
NSString *querySQL1 = [NSString stringWithFormat:@"delete from studentDetail where regno=\"%@\"",registerNumber];
const char *querySQL1_stat = [querySQL1 UTF8String];
if (sqlite3_prepare_v2(database, querySQL1_stat,-1, &statement, NULL)== SQLITE_OK)
{
if (sqlite3_step(statement) == SQLITE_DONE)
{
return YES;
NSLog(@"Deleted row");
}
}
else {
return NO;
}
sqlite3_reset(statement);
}
return nil;
}
whats wrong in this . it displays no data found? plz help me
SanjeevJayaram
13-May-13 8:41am
View
i need the code for deletion of tabledata for this table "create table if not exists studentsDetail (regno integer primary key, name text, department text, year text)" with regno as id
Show More