- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: You must refer to the user inputs as $_POST[aid] and $_POST[apass]. DO NOT refer to them as $aid and $apass (don't even save them as variables if possible). There are many situation where this will come back to bite you in the rear if you do. I will mention the … | |
Re: Not going to happen:'( . Javascript and PHP are two separate languages and they are not aware of each other's existence. However, javascript can work with php variables for the following reason. PHP code executes on the server and sends only the html to the browser. The client browser never … | |
Re: Try this: [code] lineStr = scanner.nextLine(); byte bytes[] = lineStr.getBytes(); char tab = 9; if((char)bytes[0]==((char)tab)) { lineStr = "NA" +lineStr; } [/code] simple :) | |
Re: try taking out the \ from first line. They don't belong there anymore. | |
Hello, I found this class at phpclasses dot org. It retrieves emails from pop3/imap servers. It works wonderfully. But I would like to learn how it works. I emailed the author but did not receive any response. So I'm placing my questions on daniweb because I know how intelligent this … | |
Re: Unless you WANT to code everything your self checkout vbulletin if you want a forum. They already have the database and php ready for you, you just need to load it on the server. | |
Re: Save the admin's selections in a database then load and display those events on the client's page when the client's page loads. | |
Re: Maybe you can try something like the following example: [CODE]$result = mysql_query("select * from name_table"); while ($row = mysql_fetch_array($result)) { echo"<label for=\"$row[id]\">$row[name]</label><input name=\"$row[id]\" type=\"text\"> </input>"; } [/CODE] | |
Re: Did you save the usernames passwords in a database already? | |
Re: Save all the texts displayed on the web pages in separate files. Save the English text in one file and Hindi text in another file. Include the right file depending on which language you want to display. For example, save define(HOME_TITLE, 'My Home Page Title') in a file called english.inc … | |
Re: Javac Example.exe ENTER This command must have failed. Did you not get any error message? Java source code files have the extension .java not exe. Check your book's example closely. | |
Re: Since the arrays are sorted, you can use a binary search for this problem. That would make the what method n(log n). Take the middle value of the array and compare it to the value you are searching for. You found your answer if the values match. Or the value … | |
Re: You should use the Scanner class to parse each line of the file. Then use the functionalities of the String class to separate the variables and values. | |
Re: The bubble sort would have to be in its own class(or file as you refer to it) in order for you to do this. You have to then create an object of the bubble sort class and pass in the values to be sorted. So your bubble sort class has … | |
Re: The variable date is an object of class Date not a string constant. The date object will give you the current date when ever you call on it. You should try to save the time stamp to a string variable. I like to use the Calender class since a lot … | |
Re: Umm.. what are you refering to when you say "class attributes"? Are you refering to instance variables? The following page has an example of how to read from text files: [URL]http://www.javacoffeebreak.com/faq/faq0004.html[/URL] Try it, then ask a more specific question about arrays of strings. | |
Re: All Hail the javaqueen. What is a chapter loop? This is only a guess, but I say that you are being taught about nested for loops. You should either look in your text book or google "nested for loop" then try to write some code yourself. If you are still … | |
Re: You need to give out more details. Do you wish learn how to write constructors in general or are having a particular problem with you Clock class? Constructor for you Clock class would look something like the following code: public Clock(int h) { this.hours = h; } | |
Re: The folllowing is some sudo code for addition through recursion: [code] int sum_recursion(array, size) { if (size equals to 1) then ( return 0) else ( array[size -1] + sum_recursion(array, --size) ); } [/code] You also have to type cast the the string numbers to integers while adding them, (if … |