User Profile
Collapse
-
Yah i tried \' same problem. it has me stumped. It should work, but doesnt. Especially since when i do it direct it works. really wierd. i also tried \\"%s\\" and that gives errors on compile...... -
I get a segmentation fault then the program aborts. only when i add the \" or '.
I did print out the string query and it contains the correct data which is:
SELECT lat,longitude FROM airportslocatio n WHERE icao ="find"
thanks for the quick reply.....
also if i just send
SELECT lat,longitude FROM airportslocatio n WHERE icao =find
it will get a...Leave a comment:
-
Segmentation fault problem with mysql_query
hello all just wondering if anyone can help me with this problem. Ii has to do with a simple mysql_query. i have tried so many different ways of doing it, but it wont work. here is the code:
[code=c]
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <mysql.h>
main() {
MYSQL *conn;
MYSQL_RES *res;
MYSQL_ROW row;...
No activity results to display
Show More
Leave a comment: