Search Results

Showing results 1 to 40 of 42
Search took 0.01 seconds.
Search: Posts Made By: scias23
Forum: Java Oct 12th, 2009
Replies: 0
Views: 221
Posted By scias23
WHAT i want to happen is, when i click the CALCULATOR menu item, my separate Calculator.java will run on the MenuShortCut JFrame.

AGAIN, i want the separate .java file to appear on THE SAME JFrame...
Forum: PHP Oct 12th, 2009
Replies: 10
Views: 445
Posted By scias23
i have two separate insert query:

@mysql_query($sql);
@mysql_query($sql2);


but the data don't appear on the tables. why?
Forum: PHP Oct 11th, 2009
Replies: 10
Views: 445
Posted By scias23
i can't get this from working. i want to execute these two queries ebcause i want to insert data to two separate table.

is it possible to do this with one query?

this is what i've got so far:
...
Forum: MySQL Sep 30th, 2009
Replies: 0
Views: 272
Posted By scias23
i want to relate my tables, but i can't find out how to relate the tables.

how?
Forum: MS Access and FileMaker Pro Sep 24th, 2009
Replies: 0
Views: 815
Posted By scias23
how do i create a login dialog box in my database that does this,
1. there are two blank textboxes. one for username, and one for password.
2. when the user clicks the submit button, it will look...
Forum: PHP Sep 12th, 2009
Replies: 1
Views: 197
Posted By scias23
what are the three kinds of php functions? is it functions with params, function without it? what?
Forum: Java Sep 7th, 2009
Replies: 7
Views: 317
Posted By scias23
i'm writing a program that converts numbers to words.. from 0-9999. it's inefficient to convert the number to string for this purpose.
Forum: Java Sep 7th, 2009
Replies: 4
Views: 220
Posted By scias23
adamson university?
Forum: Java Sep 7th, 2009
Replies: 7
Views: 317
Posted By scias23
i can't think of a solution that uses the modulo operator
Forum: Java Sep 7th, 2009
Replies: 7
Views: 317
Posted By scias23
i want to extract

576

to

hundreds = 5
tens = 7
ones = 6
Forum: Java Sep 5th, 2009
Replies: 2
Views: 402
Posted By scias23
Forum: Java Sep 5th, 2009
Replies: 1
Views: 309
Posted By scias23
i have this code.


numberPlayers = 2;
players = new Player[numberPlayers];
setName();
setHand();

private static void setName() {
for(int...
Forum: Java Sep 4th, 2009
Replies: 2
Views: 402
Posted By scias23
i just can't figure out what's wrong with this.

1. suppose i enter 9-3-1991 as the birthdate, this should return 18. but it returns 17. //wrong
2. suppose i enter 2-9-1991 as the birthdate, this...
Forum: Java Aug 31st, 2009
Replies: 10
Views: 844
Posted By scias23
thanks for your help, hand comparison is working now.

now, i want to set how many rounds the player will play.

look at this..

private static void twoPlayer() {
int count;
...
Forum: Java Aug 31st, 2009
Replies: 10
Views: 844
Posted By scias23
but how can i compare each player's hand?

i call the Player = one.setHand() in the main method -- how can i compare two objects of setHand() in a function?
Forum: Java Aug 30th, 2009
Replies: 6
Views: 331
Posted By scias23
i can't get the comparison to work.


birthDate.set(yyyy, mm, dd);

age = currentDate.get(Calendar.YEAR) - birthDate.get(Calendar.YEAR);

if(currentDate.compareTo(new...
Forum: Java Aug 30th, 2009
Replies: 10
Views: 844
Posted By scias23
how can i compare two instances of a class?

i have, Player class, it has getHand() method.

suppose i create two instances of player

Player one = new Player();
Player two = new Player();
Forum: Java Aug 30th, 2009
Replies: 6
Views: 331
Posted By scias23
hmm what method in the gregoriancalendar class should i use to compare user input date with the current date?
Forum: Java Aug 29th, 2009
Replies: 6
Views: 331
Posted By scias23
i'll research about that. thanks.

but is it possible to do this without using that class?
Forum: Java Aug 29th, 2009
Replies: 6
Views: 331
Posted By scias23
i just dont know how to convert this.

i have three integers for month, date and year. year is a two digit input.

i want to convert these three into one variable type long.. but i dont know how...
Forum: Java Aug 27th, 2009
Replies: 7
Views: 398
Posted By scias23
EDIT: i mean "parsing number from a string?" sorry.



what should i do to parse a number from a string?

i tried this.

Double leap = Double.parseDouble(this.yyyy);
Forum: Java Aug 22nd, 2009
Replies: 10
Views: 844
Posted By scias23
Forum: Java Aug 21st, 2009
Replies: 10
Views: 844
Posted By scias23
i'm thinking how to do this since last week.

i can make a rps game in java, BUT not in OO way. just the simple ones.

what i want to do is a rps game - the OO way.

i planning this program to...
Forum: PHP Aug 16th, 2009
Replies: 12
Views: 1,124
Posted By scias23
my problem is partially solved. thanks guys. i'm learning.

but please somebody answer my question haha.

shrek
Forum: PHP Aug 16th, 2009
Replies: 12
Views: 1,124
Posted By scias23
it appears that no one is replying to this thread anymore. but anyways, i hope somebody answers my question above.
Forum: PHP Aug 16th, 2009
Replies: 12
Views: 1,124
Posted By scias23
i thought i'd be enlightened by this code i made.

if(isset($_POST['em'])) {
foreach($_POST['em'] as $rec) {
foreach($rec as $key => $value) {
if($value==''){
...
Forum: PHP Aug 16th, 2009
Replies: 12
Views: 1,124
Posted By scias23
hey thanks! this works. :)

but would you mind? how'd i do this validation using php?
Forum: PHP Aug 16th, 2009
Replies: 12
Views: 1,124
Posted By scias23
oh, another problem. i want to validate the form values. but i can't get the validation message to show up.


<?php

if(!isset($_POST['noRec']) || (isset($_POST['noRec']) &&...
Forum: PHP Aug 15th, 2009
Replies: 12
Views: 1,124
Posted By scias23
oh nevermind. problem solved. i just changed $em to $_POST['em']

thanks guys!
Forum: PHP Aug 15th, 2009
Replies: 12
Views: 1,124
Posted By scias23
thanks. it works. but what if i do this using foreach?

i tried this one but it won't work.

foreach($em as $record) {
foreach($record as $key => $value) {
echo "$key is $value<br/>";
}
}
Forum: PHP Aug 15th, 2009
Replies: 12
Views: 1,124
Posted By scias23
but how will i output those form fields? i dont know how. i tried to use print_r($_POST), it works. but i want to present the values like:

Employee NUmber: 1
FIrst name: Michael
Last name:...
Forum: PHP Aug 14th, 2009
Replies: 12
Views: 1,124
Posted By scias23
i'm generating a dynamic form using php. but my problem is how to store each field values into a multidimension array of unknown size.

to be clear:
1. i enter the number of entries i wish to...
Forum: Computer Science Mar 1st, 2009
Replies: 4
Views: 1,301
Posted By scias23
i have this question..

show the state of the stack and the value of each variable after execution of the following statements.

let A=5, B=3, C=7

push A onto stack
push C*C onto stack
pop...
Forum: C++ Feb 18th, 2009
Replies: 11
Views: 918
Posted By scias23
im witing this program in borland turbo c++, because that is the compiler we use at school. any suggestions about my code?
Forum: C++ Feb 17th, 2009
Replies: 11
Views: 918
Posted By scias23
i need to create a palindrome program. in our computer lab, this program works but here at home, it doesn't. help..


#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>...
Forum: C++ Jan 31st, 2009
Replies: 2
Views: 475
Posted By scias23
i have written this program, it's nearly finished, but i didn't found out right away that my code has bug..

once i enter number of students i wish to add, the value goes to the for loop, i think i...
Forum: C++ Jan 2nd, 2009
Replies: 12
Views: 1,246
Posted By scias23
Forum: C++ Jan 1st, 2009
Replies: 12
Views: 1,246
Posted By scias23
help here again... if i enter AaBbCc the output should be CcBbAa or cCbBaA.. but the output appears cbaCBA.. help!!! heres the code..


#include<iostream.h>
#include<conio.h>
#include<string.h>...
Forum: C++ Jan 1st, 2009
Replies: 12
Views: 1,246
Posted By scias23
Forum: C++ Jan 1st, 2009
Replies: 12
Views: 1,246
Posted By scias23
THANK YOU VERY MUCH!!! IT WORKS!! but can you please explain to me how this code works.?
Showing results 1 to 40 of 42

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC