hi!!   i wrote a simple function that returns a string in C
the function fetches values from a table and stores all the value in a string variable 
and then returns it ...This is small  part inside the function i wrote!



 while((row = mysql_fetch_row(res)))
        {
        unsigned long *lengths;
        lengths = mysql_fetch_lengths(res);
        for(i=0;i        {
        str = strcat(str,row[i]);
        }
        str = strcat(str,"\n");
        }

but i know that the content in red would rerturn an error!!
how to convert the output of mysql_fetch_row() function to an equivalent string ?

---------------------------------
Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger

Reply via email to