473,395 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Question about arrays

Following...

I have a roll-call of students to store in mysql database separated
by mounth:

student[1]
Present[1]
HalfTime[1]
Saturday[1]

student[2]
Present[2]
HalfTime[2]
Saturday[2]

student[3]
Present[3]
HalfTime[3]
Saturday[3]

...

I need a function to select: or all Present for all students, or
HalfTime or Saturday.

Someone to help me ?


--
Luciano Marinho (Programador PHP/C++) |ô_Ô|
www.lucianomarinho.com.br - www.racaboxer.com.br
Linux Registered User #433536
Adicione seus destinários só no BCC ou CCO.

♫ Amor é teu cão lamber a tua cara quando você chega,mesmo depois de
você deixá-lo só o dia todo! ♫
Mar 2 '08 #1
3 1135
VK wrote:

>
function Person() {
this.name = arguments[0];
this.SSN = arguments[1];
}
function Person() {
this.name = arguments[0];
this.SSN = arguments[1] || "NA";
}

Mick
Mar 3 '08 #2
Thomas 'PointedEars' Lahn wrote:
Michael White wrote:
>>function Person() {
this.name = arguments[0];
this.SSN = arguments[1] || "NA";
}


function Person(sName, sSSN)
{
this.name = sName;
this.ssn = sSSN || "NA";
}

A more flexible approach is presented in <47**************@PointedEars.de>.
Clicking the proscribed link "<47**************@PointedEars.de>"
brings up my email client!
Mozilla Thunderbird 0.5 , Mac OS 10.4.11
Mick
Mar 3 '08 #3
SAM
Michael White a écrit :
>>
Clicking the proscribed link "<47**************@PointedEars.de>" brings
up my email client!
Mozilla Thunderbird 0.5 , Mac OS 10.4.11
Thunderbird en est à la version 2.0.0.12 (20080213)

You need the add-on : "MessageID-Finder"
<http://messageidfinder.mozdev.org/>

--
sm
Mar 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: csx | last post by:
Hi everyone! two quick questions relating to arrays. Q1, Is it possible to re-assign array elements? int array = {{2,4}, {4,5}}; array = {2,3}
19
by: Method Man | last post by:
I understand that arrays and structs can't be passed by value into and out of functions since they can be arbitrarily big. My question is: Why are types allowed to be passed by value? Couldn't my...
35
by: David Cleaver | last post by:
Hello all, I was wondering if there were some sort of limitations on the "if" statement? I'm writing a program which needs to check a bunch of conditions all at the same time (basically). And...
5
by: Wajih-ur-Rehman | last post by:
The question is about C++ (since its the C family, i posted it on this newsgroup) Lets say i declare an array int a = {1,2,3,4}; int *p = a; //This is allowed because "a" returns the address of...
3
by: James dean | last post by:
I have created algorithms in C# unsafe code and have fixed the arrays in memory for optimum performance. I use multidimensional arrays rather than jagged arrays. The algorithms i use usually read a...
21
by: yeti349 | last post by:
Hi, I'm using the following code to retrieve data from an xml file and populate a javascript array. The data is then displayed in html table form. I would like to then be able to sort by each...
24
by: Michael | last post by:
Hi, I am trying to pass a function an array of strings, but I am having trouble getting the indexing to index the strings rather than the individual characters of one of the strings. I have...
7
by: heddy | last post by:
I have an array of objects. When I use Array.Resize<T>(ref Object,int Newsize); and the newsize is smaller then what the array was previously, are the resources allocated to the objects that are...
2
by: phpCodeHead | last post by:
Hello fellow codemeisters! I am needing to parse through two lists of serial numbers for parts being received into an inventory database. First, is the list of serial numbers already in the...
31
by: mdh | last post by:
I am still having a problem understanding K&RII on p 112. I have looked at the FAQs --which I am sure answer it in a way that I have missed, so here goes. A 2-dim array, (per K&R) is really a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.