LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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

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.
 
  


Reply


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


All times are GMT -5. The time now is 02:21 AM.

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