Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-26-2010, 12:02 PM   #1
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
Server array (mysql, php) -> gboolean array in c client


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.
Old 07-27-2010, 06:50 AM   #2
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: Converting a PHP array into an HTML array koosha Programming 4 08-11-2009 08:47 AM
send array of string from server to client tqa Programming 2 11-20-2008 08:21 PM
PHP SOAP server returns array using NuSOAP Library mohtasham1983 Programming 2 11-18-2007 09:27 PM
problem in sending array of structures in client/server program soumya_b Programming 5 01-21-2007 03:53 AM
PHP to mySQL array problem mounters Programming 3 02-17-2002 04:20 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration