<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Fri, 16 May 2008 10:41:15 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/forums/myimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums</link>
		</image>
		<item>
			<title>Need to save my files…..</title>
			<link>http://www.daniweb.com/forums/thread124531.html</link>
			<pubDate>Fri, 16 May 2008 10:41:00 GMT</pubDate>
			<description>Hi everyone, I have a problem that I would like to share with you. I recently bought a hard disk and had formatted it on my friends system. The installation had no problems and I copied some software in that. But later I found that I could not read some of the files and without my knowing my friend...</description>
			<content:encoded><![CDATA[<div>Hi everyone, I have a problem that I would like to share with you. I recently bought a hard disk and had formatted it on my friends system. The installation had no problems and I copied some software in that. But later I found that I could not read some of the files and without my knowing my friend formatted the disk. Now I have lost some important data and need to get back that in any case. Please do suggest some good tools which can help me get them back without much hassle.<br />
<br />
Thanks in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum51.html"><![CDATA[Techies' Lounge]]></category>
			<dc:creator>tulip_45</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124531.html</guid>
		</item>
		<item>
			<title><![CDATA[Strange value of "this"]]></title>
			<link>http://www.daniweb.com/forums/thread124530.html</link>
			<pubDate>Fri, 16 May 2008 10:33:22 GMT</pubDate>
			<description>Hi,

I am debugging with gdb a huge program on HP-UX. It has a very strange behaviour and I could not identify the cause. Have a look at this for example:
(gdb) c
Continuing.

Breakpoint 2, CExtract::extractDAT (this=0x80000001007bb9d8, user=@0x80000001004d4670) at Extract.cpp:1761
1761            ...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am debugging with gdb a huge program on HP-UX. It has a very strange behaviour and I could not identify the cause. Have a look at this for example:<br />
(gdb) c<br />
Continuing.<br />
<br />
Breakpoint 2, CExtract::extractDAT (this=0x80000001007bb9d8, user=@0x80000001004d4670) at Extract.cpp:1761<br />
1761                meas.getSumMethodName   (   sCol.meas_sum_method_name   );<br />
(gdb) p &amp;meas<br />
$9 = (class CMeasurement *) 0x800003ffbfb1f358<br />
(gdb) s<br />
CMeasurement::getSumMethodName (this=0x800003ffbfb20198, sum_method_name=@0x800003ffbfb204d0) at Measurement.cpp:1020<br />
1020        sum_method_name = m_sum_method_name;<br />
(gdb)<br />
<br />
I'm printing the address of meas before calling meas.getSumMethodName. After stepping inside the method, gdb prints the value of &quot;this&quot;. Shouldn't &quot;this&quot; inside CMeasurement::getSumMethodName have the same value as &amp;meas?<br />
If yes, any idea why it doesn't?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>putagunta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124530.html</guid>
		</item>
		<item>
			<title>Swap an array...</title>
			<link>http://www.daniweb.com/forums/thread124528.html</link>
			<pubDate>Fri, 16 May 2008 10:13:01 GMT</pubDate>
			<description><![CDATA[hi guys, it's been a while since i used c for anything so here goes a question tha may seem silly.


I have 2 variable length arrays....



int main()
{
	int n = 5;]]></description>
			<content:encoded><![CDATA[<div>hi guys, it's been a while since i used c for anything so here goes a question tha may seem silly.<br />
<br />
<br />
I have 2 variable length arrays....<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="kw4">int</span> main<span class="br0">&#40;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">int</span> n = <span class="nu0">5</span>;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">int</span> m = <span class="nu0">6</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">int</span> before<span class="br0">&#91;</span>n<span class="br0">&#93;</span><span class="br0">&#91;</span>m<span class="br0">&#93;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">int</span> after<span class="br0">&#91;</span>n<span class="br0">&#93;</span><span class="br0">&#91;</span>m<span class="br0">&#93;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; array_function<span class="br0">&#40;</span> <span class="nu0">5</span>, <span class="nu0">6</span>, before, after <span class="br0">&#41;</span>;</div></li><li class="li2"><div class="de2"><span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="kw4">void</span> array_function<span class="br0">&#40;</span><span class="kw4">int</span> rows, <span class="kw4">int</span> cols, <span class="kw4">float</span> after<span class="br0">&#91;</span>rows<span class="br0">&#93;</span><span class="br0">&#91;</span>cols<span class="br0">&#93;</span> , <span class="kw4">float</span> before<span class="br0">&#91;</span>rows<span class="br0">&#93;</span><span class="br0">&#91;</span>cols<span class="br0">&#93;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//for some iterations&nbsp; &nbsp; &nbsp; &nbsp; </span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span>;;<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//for all the elements int the array</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span>i=<span class="nu0">1</span>; i&lt;rows; i++<span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span>j=<span class="nu0">1</span>; j&lt;cols; j++<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; after<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#91;</span>j<span class="br0">&#93;</span> = <span class="nu0">4</span> * before<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#91;</span>j<span class="br0">&#93;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//afterwards prepare for the next iteration [1]</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span>i=<span class="nu0">1</span>; i&lt;rows; i++<span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span>j=<span class="nu0">1</span>; j&lt;cols; j++<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; before<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#91;</span>j<span class="br0">&#93;</span>=after<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#91;</span>j<span class="br0">&#93;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li></ol></pre></code> </div>
<br />
...What i want to do is find a way to swap the pointers to the arrays. So that i can get rid of the last loop.<br />
I figured that since i only need to calculate &quot;after&quot; based on &quot;before&quot; and then make &quot;after&quot;-&gt;&quot;before&quot; and recalculate &quot;after&quot;.<br />
It would save a lot of time if i just swapped the 2 pointers.<br />
<br />
i tried the following but with no luck:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="co1">//define function like this:</span></div></li><li class="li1"><div class="de1"><span class="kw4">void</span> array_function<span class="br0">&#40;</span><span class="kw4">int</span> rows, <span class="kw4">int</span> cols, <span class="kw4">float</span> &amp;after<span class="br0">&#91;</span>rows<span class="br0">&#93;</span><span class="br0">&#91;</span>cols<span class="br0">&#93;</span> , <span class="kw4">float</span> &amp;before<span class="br0">&#91;</span>rows<span class="br0">&#93;</span><span class="br0">&#91;</span>cols<span class="br0">&#93;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">//call it like this:</span></div></li><li class="li2"><div class="de2">array_function<span class="br0">&#40;</span> <span class="nu0">5</span>, <span class="nu0">6</span>, &amp;before, &amp;after <span class="br0">&#41;</span>;</div></li></ol></pre></code> </div>
<br />
thanks in advance<br />
-nicolas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>n.aggel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124528.html</guid>
		</item>
		<item>
			<title>Forcing Advertisements onto a web page</title>
			<link>http://www.daniweb.com/forums/thread124527.html</link>
			<pubDate>Fri, 16 May 2008 10:12:07 GMT</pubDate>
			<description>Hello Daniweb Community,

I was just pondering through thoughts as one does, when I couldnt answer my own question. How do you force adverts onto a page.

The scenerio is, I will have people uploading there sites to my site, as free hosting and free subdomain name. But, as it is all free for them,...</description>
			<content:encoded><![CDATA[<div>Hello Daniweb Community,<br />
<br />
I was just pondering through thoughts as one does, when I couldnt answer my own question. How do you force adverts onto a page.<br />
<br />
The scenerio is, I will have people uploading there sites to my site, as free hosting and free subdomain name. But, as it is all free for them, I wish to include advertisements.<br />
<br />
Companies like Piczo force an advertisement at the top of the page.<br />
<br />
Can anyone tell me how this is done.<br />
<br />
Thank you,<br />
Grant</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum143.html">HTML and CSS</category>
			<dc:creator>Grantmitch1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124527.html</guid>
		</item>
		<item>
			<title>exit (0)</title>
			<link>http://www.daniweb.com/forums/thread124526.html</link>
			<pubDate>Fri, 16 May 2008 09:49:40 GMT</pubDate>
			<description>Hi,

What is the difference between using exit 0 and exit (0) in the shell script?

Thanks
Saurya</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
What is the difference between using exit 0 and exit (0) in the shell script?<br />
<br />
Thanks<br />
Saurya</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum113.html">Shell Scripting</category>
			<dc:creator>saurya1979</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124526.html</guid>
		</item>
		<item>
			<title><![CDATA[how do i add "extras" to comment box]]></title>
			<link>http://www.daniweb.com/forums/thread124525.html</link>
			<pubDate>Fri, 16 May 2008 09:40:30 GMT</pubDate>
			<description><![CDATA[Hi! How do i add "extras" to comment boxes like is done in the comment box, which you will use to reply this post? You know, the "change font color" icon, "bold", "italics", etc...

i checked daniweb's source code and i saw <script> tags and an array within a variable containing the font types. Is...]]></description>
			<content:encoded><![CDATA[<div>Hi! How do i add &quot;extras&quot; to comment boxes like is done in the comment box, which you will use to reply this post? You know, the &quot;change font color&quot; icon, &quot;bold&quot;, &quot;italics&quot;, etc...<br />
<br />
i checked daniweb's source code and i saw &lt;script&gt; tags and an array within a variable containing the font types. Is there a particular name for this type of comment box?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mikki2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124525.html</guid>
		</item>
		<item>
			<title>PR 2 Clothing Links</title>
			<link>http://www.daniweb.com/forums/thread124524.html</link>
			<pubDate>Fri, 16 May 2008 09:36:51 GMT</pubDate>
			<description>We have clothing related website, whose link page is having PR 2. I would like to exchange links. I also need PR 2 clothing related links.

Anybody can contact me at Khushi Web Services At Gmail Dot Com</description>
			<content:encoded><![CDATA[<div>We have clothing related website, whose link page is having PR 2. I would like to exchange links. I also need PR 2 clothing related links.<br />
<br />
Anybody can contact me at Khushi Web Services At Gmail Dot Com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>eccraze</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124524.html</guid>
		</item>
		<item>
			<title>Icon</title>
			<link>http://www.daniweb.com/forums/thread124522.html</link>
			<pubDate>Fri, 16 May 2008 09:02:27 GMT</pubDate>
			<description><![CDATA[Hi there i've just known how to make an exe file now what am asking is how to change the icon of the exe from the default one to one of you choise like in the one cd access program.]]></description>
			<content:encoded><![CDATA[<div>Hi there i've just known how to make an exe file now what am asking is how to change the icon of the exe from the default one to one of you choise like in the one cd access program.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>K-Dave</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124522.html</guid>
		</item>
		<item>
			<title>Max date to max date</title>
			<link>http://www.daniweb.com/forums/thread124521.html</link>
			<pubDate>Fri, 16 May 2008 09:01:51 GMT</pubDate>
			<description>Hi all,

I wonder if it is possible that someone can drop me a code or something on this particular problem which I am currently dealing with.

in_date           out_date
18/03                30/04
20/04

So how am i supposed to pair up 30/04 and 20/04 as 1 pair and show it up in the table? Many...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I wonder if it is possible that someone can drop me a code or something on this particular problem which I am currently dealing with.<br />
<br />
in_date           out_date<br />
18/03                30/04<br />
20/04<br />
<br />
So how am i supposed to pair up 30/04 and 20/04 as 1 pair and show it up in the table? Many thanx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>stonyheng</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124521.html</guid>
		</item>
		<item>
			<title>Contents of DAT file are not in binary format</title>
			<link>http://www.daniweb.com/forums/thread124520.html</link>
			<pubDate>Fri, 16 May 2008 08:52:39 GMT</pubDate>
			<description>Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file....
My problem is username and password details are getting stored in dat file in readable text format NOT IN...</description>
			<content:encoded><![CDATA[<div>Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file....<br />
My problem is username and password details are getting stored in dat file in readable text format NOT IN BINARY..<br />
<br />
Writing into file part is<br />
 dname = My.DataFile(&quot;ADMIN.DAT&quot;)<br />
      fnum = FreeFile<br />
    Open dname For Binary Access Write As #fnum<br />
               Put #fnum, , uname<br />
            Put #fnum, , pwd<br />
<br />
    Close #fnum<br />
<br />
Reading from file part is<br />
  dname = My.DataFile(&quot;ADMIN.DAT&quot;)<br />
       fnum = FreeFile<br />
    Open dname For Binary Access Read As #fnum<br />
   <br />
                Get #fnum, , uname<br />
                Get #fnum, , pwd<br />
   <br />
    Close #fnum<br />
<br />
Any suggestions plz...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>kousarrabiya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124520.html</guid>
		</item>
		<item>
			<title>Good morning from the UK</title>
			<link>http://www.daniweb.com/forums/thread124518.html</link>
			<pubDate>Fri, 16 May 2008 08:37:24 GMT</pubDate>
			<description><![CDATA[Good morning. I found this site when searching for solutions to a Dreamweaver project (incorporating some ASP) I've inherited from someone who has left our company. I'm definitely trying to run before I can walk as I've been given this project, one in VB6 and another in Flash! I'm fine with the...]]></description>
			<content:encoded><![CDATA[<div>Good morning. I found this site when searching for solutions to a Dreamweaver project (incorporating some ASP) I've inherited from someone who has left our company. I'm definitely trying to run before I can walk as I've been given this project, one in VB6 and another in Flash! I'm fine with the logic of programming, it's just trying to find out what does what within the program.  Anyway, I think I may just punt around the forum and see what I can find. Nice to be aboard, Des.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>des.lavender</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124518.html</guid>
		</item>
		<item>
			<title>javascript variale does not pass in url please help me to find out the solution</title>
			<link>http://www.daniweb.com/forums/thread124517.html</link>
			<pubDate>Fri, 16 May 2008 08:36:44 GMT</pubDate>
			<description>hi to all
 my problem 
 when i add form field dynamically to the page in java script (form method is get )it is well worked in IE but not working in mozilla fire fox problem is ,does not pass the form field element value to the url for the use of next page how to solve it please help me im new to...</description>
			<content:encoded><![CDATA[<div>hi to all<br />
 my problem <br />
 when i add form field dynamically to the page in java script (form method is get )it is well worked in IE but not working in mozilla fire fox problem is ,does not pass the form field element value to the url for the use of next page how to solve it please help me im new to java script<br />
and my code is<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var limit_number=&lt;? echo $num;?&gt;;<br />
		var fileId = 2;<br />
			function addElement(parentId, elementTag, elementId, html) {<br />
				// Adds an element to the document<br />
				var p = document.getElementById(parentId);<br />
				var newElement = document.createElement(elementTag);<br />
				newElement.setAttribute('id', elementId);<br />
				newElement.setAttribute('name', elementId);<br />
				<br />
				newElement.innerHTML = &quot;Invitation EmailID &quot;+ fileId+&quot; : &quot;+ html;<br />
				<br />
				p.appendChild(newElement);<br />
				fileId++;<br />
			}<br />
<br />
			function removeElement() {<br />
			if(fileId&gt;2){<br />
				// Removes an element from the document<br />
				var element = document.getElementById(&quot;invite&quot;+(fileId-1));<br />
				element.parentNode.removeChild(element);<br />
				fileId--;<br />
				}<br />
			}<br />
				<br />
			function addFile() {<br />
			if((limit_number+fileId)&lt;11){<br />
				//<br />
				// Example function showing how to add a file input box to an existing form<br />
				//<br />
				 // increment fileId to get a unique ID for the new element<br />
				var html = '&lt;input type=&quot;text&quot; name=&quot;invite'+fileId+'&quot; class=&quot;txtbox&quot;/&gt; ' +<br />
						   '';<br />
				addElement('files', 'p', 'invite' + fileId, html);<br />
			<br />
				}<br />
				else<br />
				{<br />
				alert(&quot;you can't invite more than 10&quot;);<br />
				}<br />
			}<br />
			<br />
 function setavalue() {<br />
 <br />
document.getElementById('burns').value=fileId<br />
}<br />
<br />
<br />
<br />
<br />
  <br />
       <br />
  /*Start of form validation:*/<br />
 <br />
&lt;/script&gt;<br />
and the html form is<br />
&lt;table width=&quot;70%&quot; align=&quot;center&quot;&gt;<br />
  <br />
  &lt;tbody onClick=&quot;setavalue()&quot;&gt;<br />
  &lt;form enctype=&quot;multipart/form-data&quot; action=&quot;members.php&quot; method=&quot;get&quot; on&gt;<br />
		&lt;tr&gt;<br />
		  &lt;td class=&quot;bluebar&quot;&gt;Send Invitation&lt;/td&gt;<br />
		&lt;/tr&gt;<br />
		&lt;tr class=&quot;box&quot;&gt;<br />
		  &lt;td style=&quot;padding-top:15px&quot;&gt;<br />
		  Invitation EmailID 1 : &lt;input name=&quot;invite1&quot; type=&quot;text&quot; class=&quot;txtbox&quot; /&gt;&lt;/td&gt;<br />
		&lt;/tr&gt;<br />
		&lt;tr&gt;&lt;td&gt;<br />
			&lt;div id=&quot;files&quot;&gt;<br />
				&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;<br />
		&lt;tr&gt;<br />
		  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
		 <br />
    &lt;/tr&gt;<br />
		&lt;tr&gt;&lt;td width=&quot;51%&quot;&gt;	&lt;a href=&quot;#&quot; onclick=&quot;removeElement(); return false;&quot;&gt;Remove&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;input class=&quot;button&quot; type=&quot;button&quot; value=&quot;Add another ID&quot; <br />
        onclick=&quot;addFile();&quot; /&gt;<br />
			&lt;input class=&quot;button&quot; type=&quot;submit&quot; value=&quot;Submit&quot;  name=send/&gt;&lt;input type=hidden name=burns  /&gt;&lt;/td&gt;<br />
		&lt;/tr&gt;<br />
	&lt;/form&gt; &lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/tbody&gt;&lt;/table&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>freshface001</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124517.html</guid>
		</item>
		<item>
			<title>JComboBox</title>
			<link>http://www.daniweb.com/forums/thread124516.html</link>
			<pubDate>Fri, 16 May 2008 08:34:42 GMT</pubDate>
			<description><![CDATA[Hello. I'm having troubles with my JComboBox calculations. For example, if the strings in my JComboBox were String[] name = { "John", "Tom" }; And Tom was assigned 15% to his name. How can I have the cases in my action performed reach out to a calculation class to perform the calculation. What I...]]></description>
			<content:encoded><![CDATA[<div>Hello. I'm having troubles with my JComboBox calculations. For example, if the strings in my JComboBox were String[] name = { &quot;John&quot;, &quot;Tom&quot; }; And Tom was assigned 15% to his name. How can I have the cases in my action performed reach out to a calculation class to perform the calculation. What I want to do is have a total of the percent and amount added in a JTextfield to display in another JTextField. So basically the user is selecting a person, which has a certain percent assigned to the name depending on the person. Then the % is multiplied by a number from another textfield. The part I'm trying to figure out is how to display the total in another JTextfield depending on the person selected. If they pick case 0, it will only show John's amount in the totalField or if they pick Tom, it will only show Tom's amount in the totalField. What is the best way I can do this. I know how to do the calculations, it's the displaying part that I'm finding difficult. I left out alot of stuff, I'm just using this as an example. Thanks for hearing me out. <br />
<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">public void actionPerformed(ActionEvent e)<br />
{<br />
&nbsp;  if(e.getSource() == nameCombo)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch(nameCombo.getSelectedIndex())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
}<br />
<br />
&nbsp;private void calc()<br />
&nbsp; &nbsp;  {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double dollarNumber = 00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double totalNumber = 00;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dollarNumber = Double.parseDouble(dollarField.getText());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = dollarNumber * johnPercent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = dollarNumber * tomPercent;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalField.setText(&quot;$&quot; + totalNumber);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; damtDisplay.setText(&quot;&quot; + total);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>NycNessyness</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124516.html</guid>
		</item>
		<item>
			<title>problem with connecting jsp page with mysql</title>
			<link>http://www.daniweb.com/forums/thread124514.html</link>
			<pubDate>Fri, 16 May 2008 08:09:07 GMT</pubDate>
			<description><![CDATA[I have written this code in Jsp file .
<% 
Connection con=null;
Statement st=null;
PreparedStatement ps;

String nm=request.getParameter("tnm");
String loc=request.getParameter("tlc");

  try]]></description>
			<content:encoded><![CDATA[<div>I have written this code in Jsp file .<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">&lt;% </div></li><li class="li1"><div class="de1"><span class="kw3">Connection</span> con=<span class="kw2">null</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">Statement</span> st=<span class="kw2">null</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">PreparedStatement</span> ps;</div></li><li class="li2"><div class="de2">&nbsp;</div></li><li class="li1"><div class="de1"><span class="kw3">String</span> nm=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;tnm&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">String</span> loc=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;tlc&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; <span class="kw2">try</span></div></li><li class="li2"><div class="de2"> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw2">Class</span>.<span class="me1">forName</span><span class="br0">&#40;</span><span class="st0">&quot;com.mysql.jdbc.Driver&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; con=<span class="kw3">DriverManager</span>.<span class="me1">getConnection</span><span class="br0">&#40;</span><span class="st0">&quot;jdbc:mysql://localhost:3306/rahul&quot;</span>,<span class="st0">&quot;root&quot;</span>,<span class="st0">&quot;root&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;  st=con.<span class="me1">createStatement</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="kw2">try</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps=con.<span class="me1">prepareStatement</span><span class="br0">&#40;</span><span class="st0">&quot;insert into dept(deptname,location) values(?,?)&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps.<span class="me1">setString</span><span class="br0">&#40;</span><span class="nu0">1</span>,nm<span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps.<span class="me1">setString</span><span class="br0">&#40;</span><span class="nu0">2</span>,loc<span class="br0">&#41;</span>;</div></li><li class="li2"><div class="de2">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps.<span class="me1">executeUpdate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;Value inserted &quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="kw2">catch</span><span class="br0">&#40;</span><span class="kw3">SQLException</span> e<span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;sql is not executed&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;  <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">catch</span><span class="br0">&#40;</span><span class="kw3">Exception</span> ex<span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; out.<span class="me1">println</span><span class="br0">&#40;</span>ex.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2"> %&gt;</div></li></ol></pre></code> </div>
i have made proper connection with mysql-bin jar file.<br />
one day before 1 prg of dbase was running but today<br />
But its giving this error <br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) at com.mysql.jdbc.Connection.(Connection.java:491) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.jsp.insert_jsp._jspService(insert_jsp.java:63) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) ** END NESTED EXCEPTION **</code> </div>
<br />
<br />
If there is any problem with setting of Webapps folder.<br />
plz help me any body.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Rahul17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124514.html</guid>
		</item>
		<item>
			<title>University Management System</title>
			<link>http://www.daniweb.com/forums/thread124512.html</link>
			<pubDate>Fri, 16 May 2008 07:55:43 GMT</pubDate>
			<description><![CDATA[Hi everyone.
I am a student at University of Eastern Africa, Baraton. I'm majoring in Mathematics and Minoring in Computer Science. I have been given a project to develop in Visual Basic and I am like, I have no idea of how to begin or how to do that question. 
The question is, Develop a visual...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone.<br />
I am a student at University of Eastern Africa, Baraton. I'm majoring in Mathematics and Minoring in Computer Science. I have been given a project to develop in Visual Basic and I am like, I have no idea of how to begin or how to do that question. <br />
The question is, Develop a visual Basic Program of a University Management System which will incorporate the payroll system for the University employees' and an enrollment system for the students. The program should have at least 9 forms and should be able to run successfully.<br />
Please assist me in developing this program. Thanks in advance.<br />
<br />
yours,<br />
<br />
Eliphas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>kigams</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124512.html</guid>
		</item>
	</channel>
</rss>
