LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Server array (mysql, php) -> gboolean array in c client (https://www.linuxquestions.org/questions/programming-9/server-array-mysql-php-gboolean-array-in-c-client-822261/)

kalleanka 07-26-2010 12:02 PM

Server array (mysql, php) -> gboolean array in c client
 
hi,

I got a cient in c and a server using lamp(linux, apache, mysql and php). I need to fill an stastic gboolean arr[12]; in the client from server using a socket. Now i send the string in a format like this myarr=0:0:0:1:0:1:0:0:0:1:0:1 . Here mysql is using bool in the table whitch is a tinyint, 0 for false and 1 for true.

Do i have to loop every value to set the array(client) or is ther a direct way? I can ofcourse change the format.

kalleanka 07-27-2010 06:50 AM

well i just looped it. But it would be nice with some way to make a string set all the values in an array.


All times are GMT -5. The time now is 11:21 PM.