Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: Rayhan Muktader
Forum: Java Jul 26th, 2009
Replies: 4
Views: 1,124
Posted By Rayhan Muktader
Try this:


lineStr = scanner.nextLine();

byte bytes[] = lineStr.getBytes();
char tab = 9;
if((char)bytes[0]==((char)tab)) {
lineStr = "NA"...
Forum: PHP Jan 9th, 2009
Replies: 7
Views: 859
Posted By Rayhan Muktader
try taking out the \ from first line. They don't belong there anymore.
Forum: PHP Nov 13th, 2008
Replies: 1
Views: 532
Posted By Rayhan Muktader
Forum: PHP Nov 12th, 2008
Replies: 1
Views: 532
Posted By Rayhan Muktader
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...
Forum: PHP May 11th, 2008
Replies: 8
Views: 885
Posted By Rayhan Muktader
Here is user.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"...
Forum: PHP May 9th, 2008
Replies: 8
Views: 885
Posted By Rayhan Muktader
For loop is not a function and therefore does not return anything and thats why you are getting a syntax error. I am having a difficult time understanding your code though. On the admin form you...
Forum: PHP May 8th, 2008
Replies: 12
Views: 4,158
Posted By Rayhan Muktader
I thought redirection was an option. You could reload the same page with the code I posted instead of loading another page. This wouldn't be 'redirection' from the user's point of view. You should...
Forum: PHP May 8th, 2008
Replies: 8
Views: 885
Posted By Rayhan Muktader
PHP doesn't support enumerations. Do you mean arrays? You would have to use the insert command to insert the values and select command to retrieve the values.
Forum: PHP May 8th, 2008
Replies: 4
Views: 1,755
Posted By Rayhan Muktader
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...
Forum: PHP May 8th, 2008
Replies: 4
Views: 789
Posted By Rayhan Muktader
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.
Forum: PHP May 8th, 2008
Replies: 12
Views: 4,158
Posted By Rayhan Muktader
There are many ways you can do this if it is OK to display the resulting html on a different page.
Here is an example:

<script type="text/javascript">
var myvar= "hello world";...
Forum: PHP May 8th, 2008
Replies: 12
Views: 4,158
Posted By Rayhan Muktader
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. ...
Forum: PHP May 8th, 2008
Replies: 3
Views: 782
Posted By Rayhan Muktader
Maybe you can try something like the following example:

$result = mysql_query("select * from name_table");
while ($row = mysql_fetch_array($result)) {
echo"<label...
Forum: PHP May 5th, 2008
Replies: 4
Views: 697
Posted By Rayhan Muktader
Did you save the usernames passwords in a database already?
Forum: PHP May 5th, 2008
Replies: 8
Views: 885
Posted By Rayhan Muktader
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.
Forum: PHP May 3rd, 2008
Replies: 3
Views: 1,834
Posted By Rayhan Muktader
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...
Forum: PHP May 1st, 2008
Replies: 8
Views: 853
Posted By Rayhan Muktader
I am assuming that you have the urls saved in the database.
echo "<td><a href=\"$row[url]\"> $row['club_id'] </a></td>";
Forum: PHP May 1st, 2008
Replies: 8
Views: 853
Posted By Rayhan Muktader
Forum: PHP May 1st, 2008
Replies: 8
Views: 853
Posted By Rayhan Muktader
Is this what you want?
<a href="http://www.google.com/"><?php echo "$club_id" ?></a>

Maybe I will understand your question better if you elaborate on what you are trying to do.
Forum: PHP May 1st, 2008
Replies: 8
Views: 853
Posted By Rayhan Muktader
What do you mean by 'linking'?
Forum: Java Jun 29th, 2007
Replies: 17
Views: 2,584
Posted By Rayhan Muktader
Copy and paste the java code here. Then someone can easily point out the errors. Your error message states that it did not find a compiled file called Example.class. Did you see a file called...
Forum: Java Jun 29th, 2007
Replies: 17
Views: 2,584
Posted By Rayhan Muktader
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.
Forum: Java Jun 2nd, 2007
Replies: 2
Views: 931
Posted By Rayhan Muktader
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...
Forum: Java May 19th, 2007
Replies: 4
Views: 1,171
Posted By Rayhan Muktader
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.
Forum: Java May 18th, 2007
Replies: 1
Views: 737
Posted By Rayhan Muktader
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...
Forum: Java May 8th, 2007
Replies: 1
Views: 662
Posted By Rayhan Muktader
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...
Forum: Java Oct 11th, 2006
Replies: 1
Views: 1,046
Posted By Rayhan Muktader
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...
Forum: Java Oct 11th, 2006
Replies: 3
Views: 1,352
Posted By Rayhan Muktader
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:...
Forum: Java Oct 7th, 2006
Replies: 3
Views: 2,429
Posted By Rayhan Muktader
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...
Forum: Java Oct 5th, 2006
Replies: 2
Views: 3,586
Posted By Rayhan Muktader
The folllowing is some sudo code for addition through recursion:

int sum_recursion(array, size)
{
if (size equals to 1) then ( return 0)
else ( array[size -1] + sum_recursion(array,...
Showing results 1 to 30 of 30

 


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

©2003 - 2009 DaniWeb® LLC