@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.
@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.
@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.
Try using $_GET
I should give that a go. Thanks for sharing this piece of information with us, buddy.
We sometimes learn from others .
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.
@ pro_learner.. That's exactly what I said. Thanks for stressing a little more on the point. ROFL!
Obviously, the thread is directed to our friend Priteas. Therefore, we aren't supposed to help ya in any way.. ROFL!
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.
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.
Can't you just use a translator or something>? Copy and paste the sentence in google and look for its translation.
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.
Cool. We need to know what the exception is. Thanks.
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.
:)
Are you having a problem with the code? Any errors at all?
Relational Algebra sounds like fun! it's also used in relational DBs.
Thanks guys for your comments/advice. All appreciated.
@ 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.
Being more specific about the code would save us lots of time and we can easily help you debug the code..
Wow.. That's a big number.. I think You should have a look at PHP site that is posted up there.. .
Thanks guys for the explanation..
I want to develop desktop applications in java.
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..
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)..
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!");
}
}
You need to be more specific with the thing you need help with.
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.
You may as well look at these options(drupal framework and wordpress) I think wordpress offers shopping cart.
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,
It's solved and the thread is marked as solved too.
Thanks buddy. This seems to be working. it's a simple mistake that ruins a whole idea..
Sorry. I missed the variable w in my previous comment..
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.
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..
As this thread has been answered, could you just mark it as solved.
Cheers,
Is there any problem with the code? or Is it working perfectly?
Damn, That's only for Android users. I use Iphone only. I guess that wouldn't be useful for me!!
@owaisbashir.. The best place to get started with is to go to Microsoft site and here is a link to it
Cheers,
@ 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.
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.
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!
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,
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?
Start with w3schools. Once you get the basics, then hit PHP academy (my favorite)
PHP academy
Good luck!
@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.
People seem not to pay a lot of attention to previous posts. ROFL!!
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?
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..