rotten69 20 Posting Whiz

@rahulroshan.. Sorry buddy. I must have misunderstood what you wanted to do. I thought you just wanted to translate only the string in that variable.

My apologies for any inconvenience, buddy.

rotten69 20 Posting Whiz

@swissknife007.. Yeah, I ain't being against anyone here. I just pointed something out. By all means, I do respect all people in the forums.

rotten69 20 Posting Whiz

Try using $_GET

rotten69 20 Posting Whiz

I should give that a go. Thanks for sharing this piece of information with us, buddy.

We sometimes learn from others .

rotten69 20 Posting Whiz

Here you've got a lot of sites to start with. Once you get the logic down, things will come smoothly. Firstly, You should do a research about the differences between POST and GET functions and what they do. They can make a big difference in your application as in the data being hidden or shown in a URL address.

Good luck.

rotten69 20 Posting Whiz

@ pro_learner.. That's exactly what I said. Thanks for stressing a little more on the point. ROFL!

rotten69 20 Posting Whiz

Obviously, the thread is directed to our friend Priteas. Therefore, we aren't supposed to help ya in any way.. ROFL!

rotten69 20 Posting Whiz

Do you have the privileges for creating new users? there must be something that you need to modify in order to create new users in your DB. Looking at the error message, it simply says that you aren't granted the CREATE USER privilege(s). Check if you are or not. If you're not privileged to create NEW USERS, then grant yourself.

I hope this helps a little bit.

rotten69 20 Posting Whiz

Wow. I never thought that we actually can test our queries in the Database like phpMyAdmin. Thanks for the advice, buddy. Will you please enlighten us on how you'd use the DB to test queries or what part of the DB you use to do that?

I know that missing a comma or apostrophe or anything in queries would waste heaps and heaps of one's time just to debug and see what the problem is.

rotten69 20 Posting Whiz

Can't you just use a translator or something>? Copy and paste the sentence in google and look for its translation.

rotten69 20 Posting Whiz

Aha. The problem is in your form. The attribute name in the input field is called nama.

Change this line.

Name : <input type="text" name="nama" value="<?php echo $row[1] ?>"/><br/>

To this line.

Name : <input type="text" name="name" value="<?php echo $row[1] ?>"/><br/>

This should solve your problem. Tell us how you go with it.

rotten69 20 Posting Whiz

Cool. We need to know what the exception is. Thanks.

rotten69 20 Posting Whiz

The main Microsoft website should be a good start for you. It's gonna introduce new concepts to you. I think it's worth learning ASP.NET rather than starting from scratch with ASP.

rotten69 20 Posting Whiz

:)

rotten69 20 Posting Whiz

Are you having a problem with the code? Any errors at all?

rotten69 20 Posting Whiz

Relational Algebra sounds like fun! it's also used in relational DBs.

Thanks guys for your comments/advice. All appreciated.

rotten69 20 Posting Whiz

@ bibiki... I did a course on discrete maths and thought,while doing it, the mathematical inductions introduced in the course were kindda useless. But then I realised that proving things is also done in many fields like IT, Business and engineering to name a few.

How are predicate statements used in programming languages? I don't think I'll struggle too much in discrete maths if I go back to it and revise a bit what I studied.

rotten69 20 Posting Whiz

Being more specific about the code would save us lots of time and we can easily help you debug the code..

rotten69 20 Posting Whiz

Wow.. That's a big number.. I think You should have a look at PHP site that is posted up there.. .

rotten69 20 Posting Whiz

Thanks guys for the explanation..

rotten69 20 Posting Whiz

I want to develop desktop applications in java.

rotten69 20 Posting Whiz

I also tried using Arabic characters but the compiler didn't seem happy to accept them. I wonder if I only need to change something in the compiler's settings or do something else..

rotten69 20 Posting Whiz

Yes, Databases do make sense to me and I love working with them. But, I want to learn a little bit of maths that will help me with programming(especially Java)..

rotten69 20 Posting Whiz

Yes, I forgot to say something. Like Cleo123 said, I do emphasize on the point that you should always look up functions on the PHP website and see how they work. If you can't find a good explanation, then you've got the forum or google.

rotten69 20 Posting Whiz

Hey everyone,


I was doing an exercise from Java book and I didn't get how this code works.. I know how the switch statement works. However, I don't understand why they pass a number to the Random class and also to the .nextInt() method on rand. And also, I am not sure where the alphabets are coming from. I'm assuming that the variable c converts the letter a to an integral value and adds 26 to it?

Would anyone be happy to walk me through the code? This will be GREAT.

Thanks, folks.

Random rand = new Random(47);
	for(int i=0; i < 100; i++){
		int c = rand.nextInt(26) + 'a';
		println((char) c + ", " + c + ": ");
		switch(c){
			case 'a':
			case 'e':
			case 'i':
			case 'o':
			case 'u': 
				println("vowel \n");
				break;
			case 'y':
			case 'w': 
				println("Sometimes a vowel \n");
				break;
			default: println("consonant!");
		}
	}
rotten69 20 Posting Whiz

You need to be more specific with the thing you need help with.

rotten69 20 Posting Whiz

What branch of maths would be more useful for an IT guy who is majoring in database system? I ain't good at maths but I'd like to improve my mathematical knowledge.

rotten69 20 Posting Whiz

You may as well look at these options(drupal framework and wordpress) I think wordpress offers shopping cart.

rotten69 20 Posting Whiz

You're trying to access the MySql local server on your machine or something else? and I think you've changed the default password or you didn't specify that you're using a password..

OK. Can you tell us what it is you're trying to access? so we can help you with the problem. if it was MySQL local server, then I want you to open these files: Wamp-->alias--> phpmyadmin.conf... and tell me what you've got in the phpmyadmin file..

cheers,

rotten69 20 Posting Whiz

It's solved and the thread is marked as solved too.

rotten69 20 Posting Whiz

Thanks buddy. This seems to be working. it's a simple mistake that ruins a whole idea..

rotten69 20 Posting Whiz

Sorry. I missed the variable w in my previous comment..

rotten69 20 Posting Whiz

yeah but What I have in my program is

int [] a = {1,2,3}
int [] b = doubleMe(a);

But this won't work if I have w as just int and the return value is int.

rotten69 20 Posting Whiz

Hi everyone,
Could anyone please tell me why that line in the if-statement body is breaking the method?

static int [] doubleMe(int [] list){
    	int [] y= list;
    	int c = 0;
    	int [] w;
		for (int i= 0; i < list.length; i++){
    		 c = list[i];
			if (c % 2 == 0)
				w = c * 3;
		}
		return w;
    }

Thanks..

rotten69 20 Posting Whiz

As this thread has been answered, could you just mark it as solved.

Cheers,

rotten69 20 Posting Whiz

If you want a handy site to learn and use what you're learning to see the results in action. w3schools

Good luck.

rotten69 20 Posting Whiz

Maybe, you should try this website Here.

Good luck with your learning.

rotten69 20 Posting Whiz

Is there any problem with the code? or Is it working perfectly?

rotten69 20 Posting Whiz

Damn, That's only for Android users. I use Iphone only. I guess that wouldn't be useful for me!!

rotten69 20 Posting Whiz

@owaisbashir.. The best place to get started with is to go to Microsoft site and here is a link to it

Cheers,

rotten69 20 Posting Whiz

@ Webmastergrace ... That's ok. It is not necessary to know the history of ASP in order to learn how to make sites in ASP.NET.

rotten69 20 Posting Whiz

You may also have a look at LINQ to SQL if you plan on making a big game. LINQ to SQL is a very elegant way of retrieving data from a database. You'd only need to interact with database objects rather than using SQL queries.

Try these sites: 1- Intro to C#
2-Microsoft's website(should be your reference site for functions/ APIs..)

Good luck.

rotten69 20 Posting Whiz

Well, if you do copy the code you've just posted, it won't run and will give an error message because you missed giving the counter "i" a name in your loop.

See below:

for ( int = 10; i > 0; i--) -->  int i, not just int

Ok. What's happening in the loop is that i is going to decrement by 1 as long as it's greater than 0 and then be multiplied by 2.

1st iteration:   i = 10 and 10 > 0  --->> output: 10*2 = 20
 2st iteration:   i = 9 and 9 > 0  --->> output: 9*2 = 18

it will keep going until the condition is met in your loop. That'll be the 10th iteration when the condition is met. 

10th iteration:                ---->> output: 1*2 = 2

I hope this helps you with understanding for-loops.. They can be quite tricky!

rotten69 20 Posting Whiz

Cool. That's good to hear that you've tried fixing the problem/s with your code. That'd be great if you just mark the thread as solved.

Cheers,

rotten69 20 Posting Whiz

Your query looks fine and should display dates (if they're selected as inputs in your form). Unless, you have fixed dates. For example, startDate begins from 1-12-2011 and endDate is only specified by your clients.

So What's up with your piece of code? Is it doing what it is expected to do or you have problems with it?

rotten69 20 Posting Whiz

Start with w3schools. Once you get the basics, then hit PHP academy (my favorite)
PHP academy


Good luck!

rotten69 20 Posting Whiz

@ardav.. Good pick-up on the code. That code just makes me laugh for a bit lol. Surprisingly enough, I didn't bother going through the code line by line because it was NOT readable enough.

rotten69 20 Posting Whiz

People seem not to pay a lot of attention to previous posts. ROFL!!

rotten69 20 Posting Whiz

Thanks folks for passing by and commenting on this thread.

@James.. I know this question might sound a little strange, but I'd like to know. How can programming logic be improved? Reading books? Keep practising?

rotten69 20 Posting Whiz

That'll be easier for us to help you if you just do us a favor. Please try including the queries in the code tags..


Thanks..