User Profile

Collapse

Profile Sidebar

Collapse
aerobat
aerobat
Last Activity: Mar 27 '08, 04:29 PM
Joined: Mar 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aerobat
    replied to Segmentation fault problem with mysql_query
    in C
    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......
    See more | Go to post

    Leave a comment:


  • aerobat
    replied to Segmentation fault problem with mysql_query
    in C
    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...
    See more | Go to post

    Leave a comment:


  • aerobat
    started a topic Segmentation fault problem with mysql_query
    in C

    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;...
    See more | Go to post
    Last edited by sicarie; Mar 22 '08, 06:20 PM. Reason: Friggin code tags
No activity results to display
Show More
Working...