<?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet type="text/xsl" href="http://www.daniweb.com/js/rss.xsl"?><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/</link>
		<description>Online discussion community for IT professionals and enthusiasts. Technology publication meets social media.</description>
		<language>en-US</language>
		<ttl>60</ttl>
		<!-- PubSubHubbub Discovery -->
		<link rel="hub" href="http://daniweb.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="self" href="http://www.daniweb.com/rss/pull" xmlns="http://www.w3.org/2005/Atom" />
		<!-- End Of PubSubHubbub Discovery -->
				<item>
			<title>category and subcategory in oracle</title>
			<link>http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</link>
			<pubDate>Fri, 24 May 2013 03:50:42 +0000</pubDate>
			<description>what is the SQL command (Query) to create category and subcategory in oracle thanks for your time.</description>
			<content:encoded><![CDATA[ <p>what is the SQL command (Query) to create category and subcategory in oracle</p>

<p>thanks for your time.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/oracle/129">Oracle</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</guid>
		</item>
				<item>
			<title>Left Speaker is not working</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</link>
			<pubDate>Fri, 24 May 2013 03:48:11 +0000</pubDate>
			<description>hi, I am using Acer aspire 4730z and Ubuntu 12.04 LTS left speaker is not working and it is working in windows 7 give me valueable tips thanks in advance</description>
			<content:encoded><![CDATA[ <p>hi,<br />
I am using Acer aspire 4730z and Ubuntu 12.04 LTS</p>

<p>left speaker is not working and it is working in windows 7<br />
give me valueable tips</p>

<p>thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</guid>
		</item>
				<item>
			<title>computer logging on and off in safe mode</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</link>
			<pubDate>Fri, 24 May 2013 02:50:43 +0000</pubDate>
			<description>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen ...</description>
			<content:encoded><![CDATA[ <p>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen incident only happens once now he says when he logs on it logs right back off and he is even logging in safe mode. what could be his problem and how should he fix it. also does it matter if its on a tower pc vs a lap top?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/10">Windows NT / 2000 / XP</category>
			<dc:creator>maracuya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</guid>
		</item>
				<item>
			<title>Android and Python and Games</title>
			<link>http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</link>
			<pubDate>Fri, 24 May 2013 01:53:27 +0000</pubDate>
			<description>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java. I was curious if python is used for android games and if so some basic points of advice.</description>
			<content:encoded><![CDATA[ <p>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java.  I was curious if python is used for android games and if so some basic points of advice.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>reddsoxy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</guid>
		</item>
				<item>
			<title>Internet Explorer keeps starting on its own.  HELP!</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</link>
			<pubDate>Fri, 24 May 2013 01:46:31 +0000</pubDate>
			<description>Okay, so I am horrible with computers so this may be just an easy fix. For the past two days Internet Explorer keeps on starting on its own. It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent ...</description>
			<content:encoded><![CDATA[ <p>Okay, so I am horrible with computers so this may be just an easy fix.  For the past two days Internet Explorer keeps on starting on its own.  It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent example: <a href="http://nskduikwwxzkok/" rel="nofollow">http://nskduikwwxzkok/</a>).  It's my laptop for class so it is unbelievably annoying.</p>

<p>Please, please help me out.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/64">Viruses, Spyware and other Nasties</category>
			<dc:creator>kays109</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</guid>
		</item>
				<item>
			<title>toggle buton problem</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</link>
			<pubDate>Fri, 24 May 2013 00:25:47 +0000</pubDate>
			<description> html &lt;div class=&quot;example2&quot;&gt; &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt; &lt;/div&gt; Css .button{ -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 1px rgba(0, ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-js">html


&lt;div class="example2"&gt;
    &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text
    This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt;
&lt;/div&gt;


Css


.button{
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px  1px rgba(0, 0, 0, 0.2);box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);
    background:#eee;
    border:0;
    color:#333;
    cursor:pointer;
    font-family:"Lucida Grande",Helvetica,Arial,Sans-Serif;
    margin:0;padding:6px 4px;
    text-decoration:none;
    position:relative
}
.example1 p, .example2 p{
    border:1px solid #eee;background:#eee;
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    width:400px;
    padding:10px;
    margin:10px 0
}




Javascript code


$(document).ready(function() {
    $('.example2').hide().before('&lt;a href="#" id="toggle-example2" class="button"&gt;Open/Close&lt;/a&gt;');
    $('a#toggle-example2').click(function() {
        $('.example2').slideToggle(1000);
        return false;
    });
});
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>andi.andiiimintoyouu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</guid>
		</item>
				<item>
			<title>Need to know font name from picture</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</link>
			<pubDate>Fri, 24 May 2013 00:01:15 +0000</pubDate>
			<description>Hi, I'm suppose to design a page based on this image: http://postimg.org/image/il4632gjh/ I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out? Thanks</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm suppose to design a page based on this image: <a href="http://postimg.org/image/il4632gjh/" rel="nofollow">http://postimg.org/image/il4632gjh/</a><br />
I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out?</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>louie540</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</guid>
		</item>
				<item>
			<title>compare $_GET with array existence</title>
			<link>http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</link>
			<pubDate>Thu, 23 May 2013 23:49:27 +0000</pubDate>
			<description>If I have a array: $myarray = array(&quot;10&quot;=&gt;&quot;apple&quot;, &quot;20&quot;=&gt;&quot;banana&quot;, etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance &quot;10&quot; How do I echo $myarray to be &quot;apple&quot;?</description>
			<content:encoded><![CDATA[ <p>If I have a array:<br />
$myarray = array("10"=&gt;"apple", "20"=&gt;"banana", etc..) up to 15 values.</p>

<p>and I use $_GET['category'] to get my value from url for instance "10"</p>

<p>How do I echo $myarray to be "apple"?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</guid>
		</item>
				<item>
			<title>how to delete a token when cancel is clicked</title>
			<link>http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</link>
			<pubDate>Thu, 23 May 2013 23:13:38 +0000</pubDate>
			<description>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to ...</description>
			<content:encoded><![CDATA[ <p>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to start so bear with me thanks anyway below is the token.php</p>

<pre><code>&lt;?php
error_reporting(0);
session_start();
$token=$_GET['token'];
include("settings.php");
connect();
if(isset ($_POST['submit'])){
$q="select email from tokens where token='".$token."' and used=0";
$r=mysql_query($q);
while($row=mysql_fetch_array($r))
   {
$email=$row['email'];
   }
If ($email!=''){
          $_SESSION['email']=$email;
}
else die("Invalid link or Password already changed  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;");}

$pass=$_POST['password'];
$email=$_SESSION['email'];

if(isset($_POST['password'])&amp;&amp;isset($_SESSION['email']))
{
$q="update registration set password='".md5($pass)."' where email='".$email."'";
$r=mysql_query($q);
if($r)mysql_query("update tokens set used=1 where token='".$token."'");echo "Your password is changed successfully  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;";
if(!$r)echo "An error occurred";
    }
</code></pre>

<p>and below is the formreset.php</p>

<pre><code>&lt;h3&gt;&lt;strong&gt;Forgot Password&lt;/strong&gt;&lt;/h3&gt;
      &lt;form name="forgot" method="POST" id="forgot" action="includes/reset.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;
        &lt;div align="center"&gt;
          &lt;table width="372" border="0"&gt;
            &lt;tr&gt;
              &lt;td width="181"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td width="181"&gt;&lt;span id="sprytextfield1"&gt;&lt;span id="sprypassword1"&gt;
              &lt;label for="password2"&gt;&lt;/label&gt;
              &lt;br /&gt;
            &lt;input type="password" name="password" id="password2" /&gt;
                &lt;br /&gt;
                &lt;span class="passwordRequiredMsg"&gt;Your PASSWORD is need&lt;/span&gt;&lt;/span&gt;
&lt;label for="label"&gt;&lt;/label&gt;
              &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
            &lt;tr&gt;
              &lt;td height="22"&gt;&lt;p&gt;&amp;nbsp;
              &lt;p&gt;&lt;strong&gt;Confirm Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td&gt;&lt;span id="spryconfirm2"&gt;
              &lt;label for="password"&gt;&lt;/label&gt;
              &lt;span id="spryconfirm1"&gt;
              &lt;label for="password1"&gt;&lt;/label&gt;
              &lt;br /&gt;
              &lt;input type="password" name="password1" id="password1" /&gt;
              &lt;br /&gt;
              &lt;span class="confirmRequiredMsg"&gt;Please re-confirm your PASSWORD&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The PASSWORDS don't match.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt;
          &lt;th width="132" scope="row"&gt;&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;a href="includes/cancel.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;Cancel&lt;/a&gt;&lt;/td&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;input type="reset" name="clear" id="clear" value="Clear" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/table&gt;

    &lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt; &lt;/tr&gt;
        &lt;tr&gt; &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;thanks in advance
  &lt;/form&gt;
</code></pre>

<p>so how do i go about this</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>php.coder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</guid>
		</item>
				<item>
			<title>&lt;unresolved overloaded function type&gt; on supposed bool</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</link>
			<pubDate>Thu, 23 May 2013 23:09:26 +0000</pubDate>
			<description>Please consider the code below. This is a smaller version of what I'm trying to accomplish. Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in `positions`. `ret` pair is used by me in order to know ...</description>
			<content:encoded><![CDATA[ <p>Please consider the code below.  This is a smaller version of what I'm trying to accomplish.</p>

<p>Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in <code>positions</code>.</p>

<p><code>ret</code> pair is used by me in order to know whether a new element was inserted (<code>ret.second == true</code>) or not (<code>ret.second == false</code>).</p>

<p>The problem is that I get the message:</p>

<pre><code class="language-cpp">a.cpp:59:77: error: invalid operands of types 'bool' and '&lt;unresolved overloaded function type&gt;' to binary 'operator&lt;&lt;'
</code></pre>

<p>when try to compare <code>ret.second</code> with <code>true</code> or <code>false</code>.</p>

<p>What am I doing wrong?</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
using std::cout; using std::cerr; using std::endl; using std::cin;
#include &lt;string&gt;
using std::string;
#include &lt;vector&gt;
using std::vector;
#include &lt;map&gt;
using std::map;
#include &lt;set&gt;
using std::set;
#include &lt;utility&gt;
using std::pair; using std::make_pair;
#include &lt;cmath&gt;
#include &lt;cstdlib&gt;


class Point
{

public:
    unsigned int x_pos;
    unsigned int y_pos;
};

int main ()
{
    std::vector&lt;Point *&gt; stream;
    std::set&lt;std::pair&lt;unsigned int, unsigned int&gt; &gt; positions;
    pair&lt;set&lt;pair&lt;unsigned int, unsigned int&gt; &gt;::iterator, bool&gt; ret;

    Point * p = new Point;
    p-&gt;x_pos = 3;
    p-&gt;y_pos = 4;
    stream.push_back(p);

    p-&gt;x_pos = 1;
    p-&gt;y_pos = 1;
    stream.push_back(p);

    unsigned int x_rand;
    unsigned int y_rand;

    unsigned int i (0);    // Assign a position for every point in the stream not yet assigned to the 2D world.               
    for (vector&lt;Point *&gt;::iterator it = stream.begin(); it != stream.end(); ++it) {

        cout &lt;&lt; "iteration: " &lt;&lt; i &lt;&lt; endl;
        ret.second = false;

        while ( ret.second == false ) {
            x_rand = rand() % 2;
            y_rand = 0; // this would be another nr.                                                                          

            pair &lt;unsigned int, unsigned int&gt; p (x_rand, y_rand);
            cout &lt;&lt; "    try to insert pair x,y = " &lt;&lt; x_rand &lt;&lt; "," &lt;&lt; y_rand &lt;&lt; endl;
            ret = positions.insert (p);

            if (ret.second == false) { cout &lt;&lt; "element already present: " &lt;&lt; endl; }
            else { cout &lt;&lt; "   just inserted new element. " &lt;&lt; ret.second==true &lt;&lt; endl; }   // ERROR IN THIS LINE.
        }
        ++i;
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>luislupe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</guid>
		</item>
				<item>
			<title>Interpreting pseudocode to Flowchart</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</link>
			<pubDate>Thu, 23 May 2013 22:49:05 +0000</pubDate>
			<description>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example, a1 if c1 { a2 while c2 { a3 } } else { a4 } is the else statement connected to the if statement or the while statement and if ...</description>
			<content:encoded><![CDATA[ <p>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example,</p>

<pre><code class="language-cpp">a1 
if c1
{
    a2
    while c2
      {
          a3 
      }
}
else 
{ 
    a4
}
</code></pre>

<p>is the else statement connected to the if statement or the while statement and if it is connected to the if statement what happens to false output for the while statement. I am new here so my apologies if this is in the wrong forum.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>pipsy17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</guid>
		</item>
				<item>
			<title>if certain words are in url</title>
			<link>http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</link>
			<pubDate>Thu, 23 May 2013 22:38:05 +0000</pubDate>
			<description>My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains &quot;category,xxx&quot; then echo &quot;category is xxx&quot;. (xxx can be anything) I found this code: ...</description>
			<content:encoded><![CDATA[ <p>My url's are similar like this:</p>

<p>website/search/category,Room/region,Oregon/<br />
website/search/category,Room/<br />
website/search/category,Room/city,Palm Bay/<br />
website/search/city,Palm Bay/<br />
website/search/region,Florida/</p>

<p>It always contains single or combination of CATEGORY CITY REGION</p>

<p>I want to echo in an if statement, for example:<br />
if url contains "category,xxx" then echo "category is xxx".<br />
(xxx can be anything)</p>

<p>I found this code:</p>

<pre><code>                &lt;?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
                if (false !== strpos($url,'Room')) {
                    echo 'Room';
                } 
                    echo 'No Room';
                } ?&gt;
</code></pre>

<p>But this method is large when I have 12 or more category words, 50 region names, and hundreds of city words to compare. How to make this more easy?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</guid>
		</item>
				<item>
			<title>SQL Databases</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</link>
			<pubDate>Thu, 23 May 2013 21:50:32 +0000</pubDate>
			<description>Hey all, Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google. I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided ...</description>
			<content:encoded><![CDATA[ <p>Hey all,</p>

<p>Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google.<br />
I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided this isnt very practical if: a) They have a ton of information they want to be secure (Access Databases can be cracked in seconds!) and b) If I were to market the software (it's a very unique idea which could be popular), access isnt the best to go with.</p>

<p>So i've been rewriting it to use SQL databases. However! When the software is given to the client, would they need to configure a SQL server on their PC etc? I basically want it so they can install it (using a prebuilt installer), and then they're literally good to go. With access they just need to install the Access Runtime (which I made the installer install) and then the program is able to communicate with the .mdb file in the files. What needs to be packaged with it, so even a complete idiot on a PC could use the program. If it starts asking them about MySQL configs they'll probably be stumped? I'm only just learning to use SQL, so i'm not sure if there's some runtime equivalent? Also, is SQL the best way to even do this? It's my first experience with something like this so im a bit stumped.</p>

<p>Sorry if i havent explained it brilliantly!</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Ariah17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</guid>
		</item>
				<item>
			<title>HELP -Two Monitors - Indepedent Display connected only to one tower/desktop</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</link>
			<pubDate>Thu, 23 May 2013 20:55:25 +0000</pubDate>
			<description>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me ...</description>
			<content:encoded><![CDATA[ <p>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me out with this one?</p>

<p>Also. Software or hardware that i need to be able to do this and use two keyboards and two mouse for each display.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>ToiNKieZ</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</guid>
		</item>
				<item>
			<title>cfselect and cfinput type date</title>
			<link>http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</link>
			<pubDate>Thu, 23 May 2013 20:44:31 +0000</pubDate>
			<description>Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</description>
			<content:encoded><![CDATA[ <p>Is it possible to display a text box next to a cfselect upon selection in the cfselect.</p>

<p>If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/coldfusion/19">ColdFusion</category>
			<dc:creator>jencinas69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</guid>
		</item>
				<item>
			<title>CyberzHub is Mining Daniweb Data</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</link>
			<pubDate>Thu, 23 May 2013 20:41:09 +0000</pubDate>
			<description>To Daniweb Administrators, I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content. The website is [Cyberzhub.com](http://www.cyberzhub.com) I thought I probably should ...</description>
			<content:encoded><![CDATA[ <p>To Daniweb Administrators,</p>

<p>I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content.</p>

<p>The website is <a href="http://www.cyberzhub.com" rel="nofollow">Cyberzhub.com</a></p>

<p>I thought I probably should notify you, as I'm sure it is rather stressful on your servers and is potentially stealing visitors.</p>

<p>From what I can gather, the content is posted as a Guest username of the account. Simply searching for Daniweb on the website brings up just a handful of articles originally posted on Daniweb.com but replicated on this other website.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>AHarrisGsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</guid>
		</item>
				<item>
			<title>Wrap or Split DataGrid View Rows?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455197/wrap-or-split-datagrid-view-rows</link>
			<pubDate>Thu, 23 May 2013 20:30:46 +0000</pubDate>
			<description>I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this ...</description>
			<content:encoded><![CDATA[ <p>I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this is possible with the DataGridView control or if a custom control needs to be built for this:</p>

<p><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzBmOWUxZWU2MWJlZWU2ZDJjNDljNjFlOWU0MDkxYjJhLlBORw%3D%3D/500" alt="0f9e1ee61beee6d2c49c61e9e4091b2a" title="0f9e1ee61beee6d2c49c61e9e4091b2a" /></p>

<p>I have looked online for this, and maybe I'm searching for the wrong thing because everything talks about wraping text in a cell, I don't care about that, I'm after wraping cells in a row.</p>

<p>Forgive the black marks, they are there to protect the innocent and to hide irrelevant stuffs.</p>

<p>I appreciate any feedback.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>zachattack05</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455197/wrap-or-split-datagrid-view-rows</guid>
		</item>
				<item>
			<title>PC will not start</title>
			<link>http://www.daniweb.com/hardware-and-software/pc-hardware/threads/455196/pc-will-not-start</link>
			<pubDate>Thu, 23 May 2013 19:47:30 +0000</pubDate>
			<description> I will start this story from the beginning. My buddy gave me his pc to work on with the issues being it will no longer turn on. You push the power button and nothing happens. 1st I bench tested his PSU and it worked properly. Just to make sure I ...</description>
			<content:encoded><![CDATA[ <p>I will start this story from the beginning. My buddy gave me his pc to work on with the issues being it will no longer turn on. You push the power button and nothing happens. 1st I bench tested his PSU and it worked properly. Just to make sure I installed a known good PSU and still would not fire up. I swapped out all of his RAM with known good RAM. Still nothing, I even went as far as to swap CPU's and again still nothing. At this point I had decided on a Mobo issue as he has stated it had overheated in the past.</p>

<p>So I order him a new old mobo. Swap it all in and the issue still remains the same. At this point I realize I had overlooked the fact that it had a aftermarket GPU. I removed it and PC fired right up. He had a 9800GT and it was pretty scorched once pulled apart. I plugged a monitor directly to the board and recieved no signal to the monitor. I installed a known good GPU into the board and used that and still no signal going to the monitor. (light never turns green)</p>

<p>At this point I figure I am either clearly looking over something or the issue is just beyond my grasp. Either way it is frustrating. I will appreciate any attempt at a response if it leads me the right way.</p>

<p>Specs:<br />
Mobo - Asus M4A77<br />
PSU  - OCZ 500w also tested silverstone 500w<br />
CPU  - AMD Athlon II x2<br />
RAM  - Corsair 1gb x 4 also tested Ballistix 2gb x 2 DDR2<br />
HDD  - (1) 500gb Seagate (2) 50gb Seagate<br />
GPU  - 8500GT also tested a GTS250</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/pc-hardware/7">PC Hardware</category>
			<dc:creator>darksyderydaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/pc-hardware/threads/455196/pc-will-not-start</guid>
		</item>
				<item>
			<title>[ASK] Postfix login first before</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/455195/ask-postfix-login-first-before</link>
			<pubDate>Thu, 23 May 2013 18:59:11 +0000</pubDate>
			<description>hello all, how to configuring postfix to login valid account first before sending mail ? thanks before</description>
			<content:encoded><![CDATA[ <p>hello all,<br />
how to configuring postfix to login valid account first before sending mail ?<br />
thanks before</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>goesseog</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/455195/ask-postfix-login-first-before</guid>
		</item>
				<item>
			<title>WPF ImageBrush TileMode question</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455194/wpf-imagebrush-tilemode-question</link>
			<pubDate>Thu, 23 May 2013 18:32:56 +0000</pubDate>
			<description>I've created my first WPF form, and the ImageBrush XAML is giving me trouble. The XAML I have is: &lt;Grid.BackGround&gt; &lt;ImageBrush ImageSource=&quot;ImageFile.png&quot; TileMode=&quot;Tile&quot; /&gt; &lt;/Grid.Background&gt; It displays the correct image - but it's stretched instead of tiled! The image is 127x127; the window is 660x808; a single instance of the ...</description>
			<content:encoded><![CDATA[ <p>I've created my first WPF form, and the ImageBrush XAML is giving me trouble.</p>

<p>The XAML I have is:</p>

<pre><code class="language-cs">&lt;Grid.BackGround&gt;
    &lt;ImageBrush ImageSource="ImageFile.png" TileMode="Tile" /&gt;
&lt;/Grid.Background&gt;
</code></pre>

<p>It displays the correct image - but it's stretched instead of tiled!  The image is 127x127; the window is 660x808; a single instance of the image is stretched to fill the window instead of multiple tiles of the image filling the window.</p>

<p>What am I doing wrong?!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>GhostWolf</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455194/wpf-imagebrush-tilemode-question</guid>
		</item>
				<item>
			<title>Programming in C</title>
			<link>http://www.daniweb.com/software-development/c/threads/455193/programming-in-c</link>
			<pubDate>Thu, 23 May 2013 18:32:05 +0000</pubDate>
			<description>(i)Write a function in C Programming Language, isEven(), that takes an integer value as argument and returns 1 if the latter is even, otherwise returns 0 (zero). (ii)The function isEven() is saved to the file 'usefulfunctions.h'. You are required to write a C program that allows the user to enter ...</description>
			<content:encoded><![CDATA[ <p>(i)Write a function in C Programming Language, isEven(), that takes an<br />
integer value as argument and returns 1 if the latter is even, otherwise<br />
returns 0 (zero).</p>

<p>(ii)The function isEven() is saved to the file 'usefulfunctions.h'. You are<br />
required to write a C program that allows the user to enter integer<br />
numbers. To end we use 0 (zero) as the last number. Your program<br />
should make use of the isEven() function from 'usefulfunctions.h' and print<br />
the odd numbers on screen.</p>

<p>I am having difficuty to answer the second part. I can not even start it. Help?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455193/programming-in-c</guid>
		</item>
				<item>
			<title>Find sub image in a large image using JAVA and FAST algorithm</title>
			<link>http://www.daniweb.com/software-development/java/threads/455192/find-sub-image-in-a-large-image-using-java-and-fast-algorithm</link>
			<pubDate>Thu, 23 May 2013 18:17:52 +0000</pubDate>
			<description>Hi All, I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc. Follwing link ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc.</p>

<p>Follwing link is from jfeaturelib which explaing how to get features of a image using decriptors and I cound run this code and get the features of both the images.<br />
<a href="https://github.com/locked-fg/JFeatureLib-Demo/tree/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples" rel="nofollow">https://github.com/locked-fg/JFeatureLib-Demo/tree/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples</a></p>

<p>But as jfeaturelib documention didn't provide sufficient information on useage of the API I feel helpless.<br />
It would be a great help if some one can guide me on how to use these set of APIs to achive my requiement.</p>

<p>If some one can atleast tell me the major steps which are requied to deal with this task.( That is getting the images features etc.)</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>emily.webb.9026</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455192/find-sub-image-in-a-large-image-using-java-and-fast-algorithm</guid>
		</item>
				<item>
			<title>Anyone recovered from Panda after March 2013??</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455191/anyone-recovered-from-panda-after-march-2013</link>
			<pubDate>Thu, 23 May 2013 18:01:19 +0000</pubDate>
			<description>As we all know, the latest version of Panda (hit in March 2013) was the last one to be pushed out manually. Google announced that from now on, Panda will be integrated into the main Google algorithm and will be a rolling update. As someone who was hit in November ...</description>
			<content:encoded><![CDATA[ <p>As we all know, the latest version of Panda (hit in March 2013) was the last one to be pushed out manually. Google announced that from now on, Panda will be integrated into the main Google algorithm and will be a rolling update.</p>

<p>As someone who was hit in November (Panda 22) and hasn't recovered since, I was just wondering if anyone actually recovered in April or May with this new Panda format?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455191/anyone-recovered-from-panda-after-march-2013</guid>
		</item>
				<item>
			<title>MSIL</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455190/msil</link>
			<pubDate>Thu, 23 May 2013 18:00:55 +0000</pubDate>
			<description>I know that C# is translated to MISL which is run by the CLR into machine code. .Net provides different languages such as VB and F# and C++. Are the different high level languages translated into the same MSIL language? Is there a difference between MSIL of C# and MISL ...</description>
			<content:encoded><![CDATA[ <p>I know that C# is translated to MISL which is run by the CLR into machine code.</p>

<p>.Net provides different languages such as VB and F# and C++.</p>

<p>Are the different high level languages translated into the same MSIL language?</p>

<p>Is there a difference between MSIL of C# and MISL of VB or other languages?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>treasure2387</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455190/msil</guid>
		</item>
				<item>
			<title>Lycos anyone?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455189/lycos-anyone</link>
			<pubDate>Thu, 23 May 2013 17:56:54 +0000</pubDate>
			<description>Recently read somewhere that some sites are starting to see Lycos.com (yes, the one that fell off the face of the earth a decade ago) pop up as a main referer for them according to G Analytics. I'm not seeing ANY traffic at all from them, but was wondering if ...</description>
			<content:encoded><![CDATA[ <p>Recently read somewhere that some sites are starting to see Lycos.com (yes, the one that fell off the face of the earth a decade ago) pop up as a main referer for them according to G Analytics. I'm not seeing ANY traffic at all from them, but was wondering if anyone else has and I'm just in the wrong niche?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455189/lycos-anyone</guid>
		</item>
				<item>
			<title>NetShelter sold to Ziff Davis</title>
			<link>http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/455188/netshelter-sold-to-ziff-davis</link>
			<pubDate>Thu, 23 May 2013 17:50:35 +0000</pubDate>
			<description>Anyone around here own a tech publication and use NetShelter. They just announced earlier this week that they were sold to Ziff Davis. They're a big player in the industry so just wondering if it impacts anyone out there in Internet land?</description>
			<content:encoded><![CDATA[ <p>Anyone around here own a tech publication and use NetShelter. They just announced earlier this week that they were sold to Ziff Davis. They're a big player in the industry so just wondering if it impacts anyone out there in Internet land?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/advertising-sales-strategies/30">Advertising Sales Strategies</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/455188/netshelter-sold-to-ziff-davis</guid>
		</item>
				<item>
			<title>&lt;m /&gt; or michael</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/455187/m-or-michael</link>
			<pubDate>Thu, 23 May 2013 17:37:27 +0000</pubDate>
			<description>Anyone seen or heard from him lately? I was just thinking, since I saw on the BBC about the California fires, he hasn't been as prolific, hopefully just exams or something mundane......</description>
			<content:encoded><![CDATA[ <p>Anyone seen or heard from him lately? I was just thinking, since I saw on the BBC about the California fires, he hasn't been as prolific, hopefully just exams or something mundane......</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>TonyG_cyprus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/455187/m-or-michael</guid>
		</item>
				<item>
			<title>uncaught TypeError: Cannot read property &#039;0&#039; of null HELP</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455186/uncaught-typeerror-cannot-read-property-0-of-null-help</link>
			<pubDate>Thu, 23 May 2013 17:02:26 +0000</pubDate>
			<description>Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null. I have use the same code other places, same array but never got this error. I dont know why am having this error here. this.addEventListener(&quot;message&quot;,function(e){ importScripts('test.js'); var object=e.data; object=JSON.parse(object); mArray=object.array; var ...</description>
			<content:encoded><![CDATA[ <p>Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null.<br />
I have use the same code other places, same array but never got this error. I dont know why am having this error here.</p>

<pre><code class="language-js">this.addEventListener("message",function(e){
    importScripts('test.js');
    var object=e.data;
    object=JSON.parse(object);

    mArray=object.array;
    var test=new test();
    for (var y=0;y&lt;8;y++){
        for (var x=0;x&lt;4;x++){
            word="" + mArray[y][x]+ mArray[y][x+1] + mArray[y][x+2] + mArray[y][x+3] + mArray[y][x+4];
            var object={test:word}
            this.postMessage(JSON.stringify(object));
        }
    }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>techyworld</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455186/uncaught-typeerror-cannot-read-property-0-of-null-help</guid>
		</item>
				<item>
			<title>form validation: php validates for email, but not database submissions</title>
			<link>http://www.daniweb.com/web-development/php/threads/455184/form-validation-php-validates-for-email-but-not-database-submissions</link>
			<pubDate>Thu, 23 May 2013 16:26:05 +0000</pubDate>
			<description>Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. ...</description>
			<content:encoded><![CDATA[ <p>Hi:<br />
i have contact form that i thought the validation (.js + php) worked fine because i received emails<br />
that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then<br />
found out that empty fields were being submitted to database -- but not email..<br />
this is how validation behaves::</p>

<p>fill in name only == js blocks</p>

<p>fill in valid email only == js blocks</p>

<p>fill in bad email format == js doesnt block</p>

<p>fill in name + email wrong format == js blocks</p>

<p>fill in name + email correct format == js blocks</p>

<p>this link has both .js and php validation files..<br />
<a href="http://jsbin.com/ixupuk/1/edit" rel="nofollow">http://jsbin.com/ixupuk/1/edit</a></p>

<p>i dont understand how validation would work for email but not database...<br />
thanx for any help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>amkaos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455184/form-validation-php-validates-for-email-but-not-database-submissions</guid>
		</item>
				<item>
			<title>My date picker</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455183/my-date-picker</link>
			<pubDate>Thu, 23 May 2013 15:40:54 +0000</pubDate>
			<description>Hello, Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others... I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others...</p>

<p>I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents 3 drop down boxes, 1 for day, 1 for month and 1 for year. If you select an invalid date (eg 30th feb), it automatically updates itself to a near correct date (eg 28th feb) the class handles leap years.</p>

<p>This sadly doesn't work in chrome and I'd appreciate if anyone is interested could offer some small amount of guidance to get me going in the right direction....</p>

<p>You add your date picker to your form like this:</p>

<pre><code class="language-js">        &lt;script type="text/javascript"&gt; 
            var processDateVbl = new dateDropper('processDate', "&lt;?php echo $currentDate; ?&gt;");
        &lt;/script&gt;
</code></pre>

<p>The class definition itself is pretty weird and works perfectly on IE.</p>

<p>Its constructor sets a few variables like how many days there are in each month and the min and max years to be added to the year select box etc and does some validation on the date string passed to it (in the php echo). Importantly, the constructor uses the first parameter (processDate) and suffixes it with Vbl and stores it as a parameter so that it can call itself later on...</p>

<p>It then calls a method called drawFields()</p>

<p>drawFields uses document.write to output form elements to the page;</p>

<pre><code class="language-js">    document.write ("&lt;input type=\"hidden\" name=\"" + this.formId + "\" value=\"" + this.defaultDate + "\"&gt;");
</code></pre>

<p>This line in particular creates a hidden form element with the name from the first parameter used to call dateDropper, so, when the form is submitted, the next page's php can use $_POST['processDate'] to reference the whole date and not access all 3 fields separately.</p>

<p>Next is where the class can 'call itself' for want of a better expression...</p>

<pre><code class="language-js">    document.write ("&lt;select name=\"" + this.formId + "Day\" onchange=\" " + this.variableName + ".dayChange() \"&gt;");
</code></pre>

<p>this.formId is processDate and this.variableName is processDateVbl.</p>

<p>So when the object is instantiated it creates select boxes whose onchange command is to refer back to the object's dayChange method. This works fine.</p>

<p>however, the first thing that the dayChange (also monthChange and yearChange) does when you change the select box value is to getElementById("processDateDay").options to find what you have changed it to.</p>

<p>This is where things go wrong. This works fine in internet explorer (7 and 8) but does not work in chrome or firefox. The javascript console there essentially tells me that getElementById("processDateDay") is null.</p>

<p>At this point I realised I was searching by element ID and had defined element names... What a twit.</p>

<p>I updated my drawFields() method to output like so:</p>

<pre><code class="language-js">        document.write ("&lt;select id=\"" + this.formId + "Day\" onchange=\" " + this.variableName + ".dayChange() \"&gt;");
</code></pre>

<p>now it all works!</p>

<p>I'm unsure where else anyone might want to do this, it's a pretty unusual concept so far as I know.</p>

<p>Hope this is of assistance!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>BenWard</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455183/my-date-picker</guid>
		</item>
				<item>
			<title>CRM integration and SEO impact</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455182/crm-integration-and-seo-impact</link>
			<pubDate>Thu, 23 May 2013 15:13:44 +0000</pubDate>
			<description>If I integrate a CRM (customer relationship managementn program) with my exisitng website, would its serp be affceted? How to save curent rankibng? The professional of a company says it would not be; is he right?</description>
			<content:encoded><![CDATA[ <p>If I integrate a CRM (customer relationship managementn program) with my exisitng website, would its serp be affceted? How to save curent rankibng? The professional of a company says it would not be; is he right?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>samyakonline</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455182/crm-integration-and-seo-impact</guid>
		</item>
				<item>
			<title>dbonekrosha</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/455181/dbonekrosha</link>
			<pubDate>Thu, 23 May 2013 14:45:11 +0000</pubDate>
			<description>hello...my name is bennett,i've got time,a PC and determination,i want to learn php...i'ld appreciate help/mentorship from anyone.Thanks!</description>
			<content:encoded><![CDATA[ <p>hello...my name is bennett,i've got time,a PC and determination,i want to learn php...i'ld appreciate help/mentorship from anyone.Thanks!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>dbonekrosha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/455181/dbonekrosha</guid>
		</item>
				<item>
			<title>Penguin 2.0</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455180/penguin-2.0</link>
			<pubDate>Thu, 23 May 2013 14:28:24 +0000</pubDate>
			<description>In case you've missed the news, Google finished rolling out Penguin 2.0 yesterday. They're expecting the algorithm change to have a noticeable affect on 2.3% of US English queries. Further info on Google's Webmaster Central Blog: [Another step to reward high-quality sites](http://googlewebmastercentral.blogspot.hk/2012/04/another-step-to-reward-high-quality.html) Do we have any winners and losers here?</description>
			<content:encoded><![CDATA[ <p>In case you've missed the news, Google finished rolling out Penguin 2.0 yesterday. They're expecting the algorithm change to have a noticeable affect on 2.3% of US English queries. Further info on Google's Webmaster Central Blog: <a href="http://googlewebmastercentral.blogspot.hk/2012/04/another-step-to-reward-high-quality.html" rel="nofollow">Another step to reward high-quality sites</a></p>

<p>Do we have any winners and losers here?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>LaxLoafer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455180/penguin-2.0</guid>
		</item>
				<item>
			<title>working slideshow killed when loaded</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455179/working-slideshow-killed-when-loaded</link>
			<pubDate>Thu, 23 May 2013 14:25:33 +0000</pubDate>
			<description>I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using &quot;Caroufredsel&quot;. Here's the main page, with script to load page based on which navigation selected. If the user selects ...</description>
			<content:encoded><![CDATA[ <p>I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using "Caroufredsel".</p>

<p>Here's the main page, with script to load page based on which navigation selected. If the user selects "portfolio" it should load a page that includes my slider. Below this is the loaded page.</p>

<pre><code class="language-js">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;


    &lt;link rel="stylesheet" href="css/styles_default.css" type="text/css" media="screen"/&gt;

    &lt;script type="text/javascript" language="javascript" src="js/jquery-2.0.0.js"&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

    &lt;!-- the beginning background, logo and "menu" link: this disappears to reveal full site //////////////////////////////////////// --&gt;

     &lt;div id="full-size-background"&gt;
        &lt;div id="starting_point"&gt;
            &lt;img id="start_logo" src="images/logo.png"&gt;
            &lt;a href="#" id="starting_point_link"&gt;MENU&lt;/a&gt;
            &lt;div id="rotated_text"&gt;Title&lt;/div&gt;
        &lt;/div&gt;
     &lt;/div&gt;

     &lt;!-- NAV  below //////////////////////////////////////////////////////////////////////////////////////////////////// --&gt;

    &lt;div class="header_content" style="opacity:0;display:none;"&gt;
        &lt;br/&gt;


        &lt;ul id="top_nav"&gt;
            &lt;li class="nav_item logo_li"&gt;
                &lt;a id="home" class="logo" href="index.php" name="index"&gt;
                    &lt;img src="images/logo.png"&gt;
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_item"&gt;
                 &lt;a  id="xx" class="link1" href="#" name="index" rel="address:/xx"&gt;xx&lt;/a&gt;
            &lt;/li&gt;            

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="new_sites" class="link1" href="#" name="new_sites" rel="address:/new_sites"&gt;
                NOW RELEASING
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="portfolio" class="link1" href="#"  name="portfolio" rel="address:/portfolio"&gt;
                PORTFOLIO
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="strategy" class="link1" href="#" name="strategy" rel="address:/strategy"&gt;
                STRATEGY
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="vip_first" class="link1" href="#" name="vip_first" rel="address:/vip_first"&gt;
                VIP FIRST
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="contact" class="link1" href="#" name="contact" rel="address:/contact"&gt;
                CONTACT
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; // &lt;/li&gt;   

            &lt;li class="nav_item"&gt;
                &lt;a id="login" class="link1" href="#" name="login" rel="address:/login"&gt;
                LOGIN
                &lt;/a&gt;
            &lt;/li&gt;


    &lt;/ul&gt;


    &lt;/div&gt;

         &lt;!-- MAIN SITE content below //////////////////////////////////////////////////////////////////////////////////////////////////// --&gt; 



     &lt;div id="main_center_box" class=""&gt;

        &lt;!-- here's where the content loads in //////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////--&gt;


        &lt;?php include 'inc/footer.php'; ?&gt;
    &lt;/div&gt;

    &lt;a id="walsh_link" href="<a href="http://www.thewalshgroup.ca/" rel="nofollow">http://www.thewalshgroup.ca/</a>" target="_blank"&gt;POWERED BY THE WALSH GROUP &lt;/a&gt;


&lt;script&gt;

$(document).ready(function() {

    // the script that determines which page to load.  My problem page is "portfolio"


    $("#top_nav li a, #footer_info").on("click", function(e){

                // prevent the a href from doing what it naturally does.
                e.preventDefault();

                // highlight active nav link &amp; turn off others              
                $('.current').attr('class','link1');
                $(this).attr('class','current');

                // set the hashtag in url
                window.location.hash = $(this).attr('name');

                // which page chosen?
                var loadpage = 'inc/'+$(this).attr('name')+'.php';
                var footer = 'inc/footer.php';

                // fade out the main box            
                $('#main_center_box').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                    $('#main_center_box2').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    // now load the page that matches navigation selected
                    $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });

                });

    });
});
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt; 

&lt;!-- include jQuery + carouFredSel plugin --&gt;
&lt;script type="text/javascript" language="javascript" src="jquery-1.8.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="jquery.carouFredSel-6.2.1-packed.js"&gt;&lt;/script&gt;

&lt;!-- optionally include helper plugins --&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.mousewheel.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.touchSwipe.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.transit.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.ba-throttle-debounce.min.js"&gt;&lt;/script&gt;

&lt;!-- fire plugin onDocumentReady --&gt;
        &lt;script type="text/javascript" language="javascript"&gt;
        (function($, window, document) {

    var $doc = $(document),
        $win = $(window);
        wWidth = $win.width();



    $win.on('load', function() {
        function move() {
            $paging.removeClass('selected');
            $current.addClass('selected');
            $carousel.stop().animate({left:-(index*(wWidth&lt;=1200?wWidth:1200))});
        }
        function reset() {
            if (timer!==false) {
                clearInterval(timer);
            }

            timer = setInterval(function(){
                index++;

                if (index&gt;=$img.length) {
                    index=0;
                }

                $current=$paging.eq(index);
                move();
            }, 8000);
        }


        if ( $('.slideshow').length ) {
            var h = 532;
            var $img = $('.slideshow .carousel img');
            var $paging = '';
            var $carousel = $('.slideshow .carousel div');

            if ( $('.residence-slideshow').length ) {
                h = 644;
            }


            $carousel.width(($img.length * 1200)+60);

            for (var i=0; i&lt;$img.length;i++) {
                var c = i===0?' class="selected" ':'';
                $paging += '&lt;a href="#" '+c+'&gt;&lt;/a&gt;';
            }

            $paging = $($paging);

            var index = 0;
            var $current = $paging.eq(index);
            var timer = false;

            $('.slideshow-paging').append($paging);


            $paging.on('click', function(e){
                e.preventDefault();
                index = $paging.index(this);
                $current=$(this);
                move();
                reset();
                return false;
            });

            $('.slideshow .arrows').on('click', function(){
                index = $(this).hasClass('arrows-left')?index-1:index+1;
                index = (index&lt;0)?$img.length-1:(index&gt;$img.length-1?0:index);
                $current=$paging.eq(index);
                move();
                reset();
            });


            $img.on('mouseover', function(){
                clearInterval(timer);
            })
            .on('mouseout', reset);


            reset();
        }

        if ( $('.places-slideshow').length ) {
            $('.places-slideshow .carousel').fadeIn().carouFredSel({
                align: 'left',
                responsive: true,
                items: {
                    visible: 1
                },
                scroll: {
                    items: 1,
                    fx: 'directscroll',
                    duration: 500,
                    timeoutDuration: 5000,
                    pauseOnHover: true,
                    onAfter: function( data ) {
                        data.items.visible.find('.slide-text').fadeIn('slow');

                        setTimeout(function() {
                            data.items.visible.find('.slide-text').fadeOut('slow');
                        }, 4500);
                    }
                },

                auto: {
                     timeoutDuration: 2000,
                     delay: 3500
                },


                prev: {
                    key: 'left',
                    button: '.places-slideshow .prev-slide'
                },
                next: {
                    key: 'right',
                    button: '.places-slideshow .next-slide'
                },
                onCreate: function() {
                    var firstRound = $(this).find('.slide:eq(0) .slide-text');

                    firstRound.fadeIn('fast');

                    setTimeout(function() {
                        firstRound.fadeOut('slow');
                    }, 3350);
                }
            });
        }
    });

}(jQuery, window, document));
        &lt;/script&gt;



&lt;div class="places-slideshow"&gt;


    &lt;div class="carousel"&gt;
        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide1.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;TOWNHOME DEVELOPMENT&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;367 asdf Avenue&lt;/p&gt;
                &lt;p&gt;ASDFADFASFAADFSADF&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide2.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;CUSTOM HOME&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;365 asdf Avenue&lt;/p&gt;
                &lt;p&gt;ASDFASDFASF&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide3.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;DETACHED HOME&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;341 HILLDOWN Avenue&lt;/p&gt;
                &lt;p&gt;ASDFASDFAFs&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide4.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;LOREM IPSUM&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;361asfdasdf&lt;/p&gt;
                &lt;p&gt;asdfasdf&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;span class="arrow-overlay"&gt;&lt;/span&gt;

    &lt;a href="#" class="prev-slide"&gt;prev&lt;/a&gt;
    &lt;a href="#" class="next-slide"&gt;next&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>Here's the page that get's loaded in, including the slideshow. This page will work when I test it by itself. But</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>turpentyne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455179/working-slideshow-killed-when-loaded</guid>
		</item>
				<item>
			<title>Update Table - Need to Know Which Update for Future Queries</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/455178/update-table-need-to-know-which-update-for-future-queries</link>
			<pubDate>Thu, 23 May 2013 14:21:10 +0000</pubDate>
			<description>Hi All, I'm a little stuck with one table's design. I have a table called tblConference_Board that will be updated approximately 3 to 4 times per year. The following is my table design: `CB_ID int (PK)` `CB_Mnemonic_ID int (FK)` `CB_Value decimal (18,10)` `CB_Year int` `CB_Quarter int` This table is loaded ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I'm a little stuck with one table's design.</p>

<p>I have a table called tblConference_Board that will be updated approximately 3 to 4 times per year.  The following is my table design:<br /><code>CB_ID int (PK)</code><br /><code>CB_Mnemonic_ID int (FK)</code><br /><code>CB_Value decimal (18,10)</code><br /><code>CB_Year int</code><br /><code>CB_Quarter int</code><br />
This table is loaded from a staging table called tblConference_Board_Staging.</p>

<p>When there is an update (say in the spring), the values will either be in quarters or annual values.  The year range has been consistently the same and usually starts from 1961 to 2035.  When the next update comes (in the summer), the yearly range will be the same but the actual values will change.  What I'm stuck on is how to determine which data set is from which update?  I thought that another field like maybe <code>CB_Modified date</code> which would populate with the date that update takes place would be a good idea but that way may be tricky to query after the updates.</p>

<p>It's hard for me to summarize my question but it should be something like: How do I populate my table and know which values represent which update?  I'm really hoping someone can make sense of my confusion and if you require more information please ask.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>Stuugie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/455178/update-table-need-to-know-which-update-for-future-queries</guid>
		</item>
				<item>
			<title>How often do you upgrade your VS software?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455177/how-often-do-you-upgrade-your-vs-software</link>
			<pubDate>Thu, 23 May 2013 14:15:54 +0000</pubDate>
			<description>There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, ...</description>
			<content:encoded><![CDATA[ <p>There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, but actually buying a different version?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>zachattack05</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455177/how-often-do-you-upgrade-your-vs-software</guid>
		</item>
				<item>
			<title>DataGrid returns Empty</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/455176/datagrid-returns-empty</link>
			<pubDate>Thu, 23 May 2013 14:08:00 +0000</pubDate>
			<description>Hey Guys! ive been stuggling with this for a while I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected I debugged my code , and it seemd that all the correct data is being pulled through but i keep ...</description>
			<content:encoded><![CDATA[ <p>Hey Guys! ive been stuggling with this  for a while</p>

<p>I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected<br />
I debugged my code , and it seemd that all the correct data is being pulled through but i keep getting an empty Grid!!<br />
Can someone please go through my code , maybe i just missed something</p>

<p>Thanks</p>

<p>-CSS-</p>

<pre><code>&lt;asp:DataGrid ID="dtgDealsEdit" runat="server" CssClass="grid" AutoGenerateColumns="False"
                                Style="border-top-left-radius: 5px; border-top-right-radius: 5px; background-color: White; padding: 0px;"&gt;
                                &lt;AlternatingItemStyle CssClass="gridViewRowAlternating" /&gt;
                                &lt;HeaderStyle CssClass="DataGridFixedHeader" Height="40px"&gt;&lt;/HeaderStyle&gt;
                                &lt;Columns&gt;
                                 &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCaseCodeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Case Code"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblCaseCode" CssClass="gridLabels" Width="50px" runat="server" Text='&lt;%# Eval("CaseCode") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblUnitCodeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Unit Code"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblUnitCode" CssClass="gridLabels" Width="50px" runat="server" Text='&lt;%# Eval("UnitCode") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCasePriceHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Cash Price"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtCasePrice" CssClass="gridTextBox" Width="50px" runat="server"
                                                onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCategoryHeader" CssClass="gridLabels" Width="100px" runat="server" Text="Category"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblCategory" CssClass="gridLabels" Width="100px" runat="server" Text='&lt;%# Eval("Category") %&gt;'&gt;&lt;/asp:Label&gt;
                                            &lt;asp:Label ID="lblCategoryID_FK" CssClass="gridLabels" Width="100px" runat="server" Visible="false" Text='&lt;%# Bind("CategoryID_FK") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="100px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblProductHeader" CssClass="gridLabels" Width="150px" runat="server" Text="Product"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblProduct" CssClass="gridLabels" Width="150px" runat="server" Text='&lt;%# Eval("ProductDescription") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="150px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblPacksizeHeader" CssClass="gridLabels" Width="45px" runat="server" Text="Packet Size"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblPacksize" CssClass="gridLabels" Width="45px" runat="server" Text='&lt;%# Eval("PackSize") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="45px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblExclusivePriceHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Exclusive Price"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtExclusivePrice" Text='&lt;%# Eval("Exclusive Price") %&gt;' CssClass="gridTextBox" Width="50px" runat="server"
                                                onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblSUGGHeader" CssClass="gridLabels" Width="50px" runat="server" Text="SUGG RSP"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;

                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtSUGG" Text='&lt;%# Eval("SUGG") %&gt;' CssClass="gridTextBox"  Width="50px" runat="server" onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblVolumeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Volume"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtVolume" Text='&lt;%# Eval("VolumeSpike") %&gt;' CssClass="gridTextBox" Width="50px" runat="server" onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCommentsHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Comments"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtComments"  Text='&lt;%# Bind("Comments") %&gt;' CssClass="gridTextBox" Width="100px" runat="server"
                                                TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="100px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;

                                &lt;/Columns&gt;
                &lt;/asp:DataGrid&gt;
</code></pre>

<p>-CodeBehind-</p>

<pre><code>public void PopulateGridData(int intDealsID)
    {
        clsDeals clsDeals = new clsDeals();



    using (DealsDatabaseEntities DealsDB = new DealsDatabaseEntities())
    {
        try
        {
            List&lt;DealsGetEdit_Result&gt; lstDealsedit = DealsDB.DealsGetEdit(intDealsID).ToList();
            if (lstDealsedit.Count &gt; 0)
            {
                dtgDealsEdit.DataSource = FillInGrid("CaseCode", "UnitCode", "Category", "ProductDescription", "PackSize", "Exclusive Price", "SUGG", "VolumeSpike", "Comments");
                dtgDealsEdit.DataBind();
                dtgDeals.Visible = false;

            }
        }
        catch (Exception ex)
        {
            throw;
        }
        finally
        {
            DealsDB.Dispose();
        }
    }
}



public DataTable FillInGrid(String strCol1, String strCol2, String strCol4, String strCol5, String strCol6, String strCol7, String strCol8, String strCol9, String strCol10)
    {
        Int32 cnt = 0;

        int intDealsID = (Convert.ToInt32(CmbExist.SelectedValue));

        using (DealsDatabaseEntities DealsDB = new DealsDatabaseEntities())
        {
            List&lt;DealsGetEdit_Result&gt; lstDealsedit = DealsDB.DealsGetEdit(intDealsID).ToList();

            DataTable dt = new DataTable();

            dt.Columns.Add(strCol1);
            dt.Columns.Add(strCol2);
            dt.Columns.Add(strCol4);
            dt.Columns.Add(strCol5);
            dt.Columns.Add(strCol6);
            dt.Columns.Add(strCol7);
            dt.Columns.Add(strCol8);
            dt.Columns.Add(strCol9);
            dt.Columns.Add(strCol10);


            Int32 totalRows = Convert.ToInt32(Decimal.Ceiling(Decimal.Divide(cnt, 13)));
            totalRows = (totalRows == 0) ? 13 : totalRows * 13;

            for (int x = 0; x != totalRows; x++)
            {
                dt.Rows.Add();
                dt.Rows[x][strCol1] = (cnt &gt; x) ? lstDealsedit[x].CaseCode.ToString() : "";
                dt.Rows[x][strCol2] = (cnt &gt; x) ? lstDealsedit[x].UnitCode.ToString() : "";
                dt.Rows[x][strCol4] = (cnt &gt; x) ? lstDealsedit[x].Category.ToString() : "";
                dt.Rows[x][strCol5] = (cnt &gt; x) ? lstDealsedit[x].ProductDescription.ToString() : "";
                dt.Rows[x][strCol6] = (cnt &gt; x) ? lstDealsedit[x].PackSize.ToString() : "";
                dt.Rows[x][strCol7] = (cnt &gt; x) ? lstDealsedit[x].Exclusive_Price.ToString() : "";
                dt.Rows[x][strCol8] = (cnt &gt; x) ? lstDealsedit[x].SUGG.ToString() : "";
                dt.Rows[x][strCol9] = (cnt &gt; x) ? lstDealsedit[x].VolumeSpike.ToString() : "";
                dt.Rows[x][strCol10] = (cnt &gt; x) ? lstDealsedit[x].Comments.ToString() : "";
            }

            return dt;
        }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>NyQii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/455176/datagrid-returns-empty</guid>
		</item>
				<item>
			<title>confusing myself with arrays</title>
			<link>http://www.daniweb.com/web-development/php/threads/455175/confusing-myself-with-arrays</link>
			<pubDate>Thu, 23 May 2013 13:52:30 +0000</pubDate>
			<description>hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = &quot;SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'&quot;; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup ...</description>
			<content:encoded><![CDATA[ <p>hey guys,</p>

<p>I've been working on that moodle database link and I have it somewhat working!</p>

<p>I have it logging in and echoing the username. This is the login section:</p>

<pre><code>  $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'";
    $result = mysqli_query($con,$query) or die(mysqli_error($con));

    //setup row
    if ($_POST['submit']) {
        $Row = mysqli_fetch_assoc($result);
        $username = $_POST['username'];
        $firstname = $_Row['firstname'];
        $lastname = $_Row['lastname'];
        $name = print_r($_Row['firstname']);

    }



&lt;div id="Header"&gt;&lt;div class="user_details"&gt;

  &lt;?php 
  if ($_POST['submit']) {
     echo 'Logged in as: ' . $username . '&lt;br&gt;';
     echo 'Your name: ' . $firstname;
    } else {
     echo 'Not logged in';
     }
   ?&gt; 
</code></pre>

<p>The problem I am having is that the echo 'Your name: ' . $firstname;</p>

<p>isn't echoing anything. However I was able to echo the array earlier.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>bradly.spicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455175/confusing-myself-with-arrays</guid>
		</item>
				<item>
			<title>Conversion from string &quot;&quot; to type &#039;Double&#039; is not valid</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455174/conversion-from-string-to-type-double-is-not-valid</link>
			<pubDate>Thu, 23 May 2013 13:46:34 +0000</pubDate>
			<description>i have decleared all variables as double. Sub kaat() goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96 End Sub but when i leave the textboxes empty it gives ma the error (Conversion from string &quot;&quot; to type 'Double' is not valid.) i CANNOT ...</description>
			<content:encoded><![CDATA[ <p>i have decleared all variables as double.<br />
Sub kaat()</p>

<pre><code class="language-vb">    goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96
</code></pre>

<p>End Sub</p>

<p>but when i leave the textboxes empty it gives ma the error (Conversion from string "" to type 'Double' is not valid.)<br />
 i CANNOT give this statement as this all ruins my future calculation.</p>

<pre><code class="language-vb">        'If txtbox_tolagoldweight.Text = "" Then
        '    txtbox_tolagoldweight.Text = 0
        'End If
        'If txtbox_mashagoldweight.Text = "" Then
        '    txtbox_mashagoldweight.Text = 0
        'End If
        'If txtbox_rattigoldweight.Text = "" Then
        '    txtbox_rattigoldweight.Text = 0
        'End If
</code></pre>

<p><a href="http://postimg.org/image/scu2n8bvl/" rel="nofollow">here is the screenshot</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Affable zaki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455174/conversion-from-string-to-type-double-is-not-valid</guid>
		</item>
				<item>
			<title>Get value of text box store in php array variable</title>
			<link>http://www.daniweb.com/web-development/php/threads/455173/get-value-of-text-box-store-in-php-array-variable</link>
			<pubDate>Thu, 23 May 2013 13:11:44 +0000</pubDate>
			<description>I have a table like code html belows I want to store value of check box and corresponding text value into 2 array in PHP For example if i check box ID_1, ID_2 the values of these check box are stored in $array_box ( 74, 75) and values of corresponding ...</description>
			<content:encoded><![CDATA[ <p>I have a table like code html belows<br />
I want to store value of check box and corresponding text value into 2 array in PHP<br />
For example<br />
if i check box ID_1, ID_2<br />
the values of these check box are stored in $array_box ( 74, 75)<br />
and values of corresponding text box are stored in $array_text ("iOS","Android")<br />
Do you have any idea? thank you very much</p>

<pre><code>&lt;table width="341" border="1"&gt;
  &lt;tr&gt;
    &lt;th width="20" scope="row"&gt;&lt;input name="target" type="checkbox" value="74" checked /&gt;&lt;/th&gt;
    &lt;td width="155"&gt;ID_1&lt;/td&gt;
    &lt;td width="144"&gt;&lt;form id="form1" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os" value="iOS" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="75" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID_2&lt;/td&gt;
    &lt;td&gt;&lt;form id="form2" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os2" value="Andoird"/&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="76" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID-3&lt;/td&gt;
    &lt;td&gt;&lt;form id="form3" name="form1" method="post"  action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os3" id="os3" value="Beta" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="77" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID-4&lt;/td&gt;
    &lt;td&gt;&lt;form id="form4" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os4" value="Window" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>giao.can</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455173/get-value-of-text-box-store-in-php-array-variable</guid>
		</item>
				<item>
			<title>Web 2.0 Properties</title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455172/web-2.0-properties</link>
			<pubDate>Thu, 23 May 2013 13:00:37 +0000</pubDate>
			<description>What is Web 2.o Properties... Please describe in details.</description>
			<content:encoded><![CDATA[ <p>What is Web 2.o Properties... Please describe in details.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>Bharti Sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455172/web-2.0-properties</guid>
		</item>
				<item>
			<title>Would SSL Be Worth It</title>
			<link>http://www.daniweb.com/web-development/threads/455171/would-ssl-be-worth-it</link>
			<pubDate>Thu, 23 May 2013 12:19:15 +0000</pubDate>
			<description>Hello Community, I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or ...</description>
			<content:encoded><![CDATA[ <p>Hello Community,<br />
I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or not because I'm not dealing with personal details.</p>

<p>So what do you think would it be worth it?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>joshl_1995</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/455171/would-ssl-be-worth-it</guid>
		</item>
				<item>
			<title>Help me, how to install MS SQL Server in Laptop!</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455170/help-me-how-to-install-ms-sql-server-in-laptop</link>
			<pubDate>Thu, 23 May 2013 12:10:36 +0000</pubDate>
			<description>My Laptop Specs: **i3 2.40Ghz 2048MB RAM Sony VAIO E Series Intel(R) HD Graphics 4000 64-bit OS** I had tried installing **Microsoft SQL Server 2008** for about 3 times now on my laptop. I still can't install it. Please help me. What to do? I really need the software for ...</description>
			<content:encoded><![CDATA[ <p>My Laptop Specs:<br /><strong>i3 2.40Ghz<br />
2048MB RAM<br />
Sony VAIO E Series<br />
Intel(R) HD Graphics 4000<br />
64-bit OS</strong></p>

<p>I had tried installing <strong>Microsoft SQL Server 2008</strong> for about 3 times now on my laptop. I still can't install it. Please help me.</p>

<p>What to do? I really need the software for my project.<br />
Please Please Please.</p>

<p>THANKS, MORE POWER and GOD BLESS.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>shenn.to</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455170/help-me-how-to-install-ms-sql-server-in-laptop</guid>
		</item>
				<item>
			<title>Smooth movement of non hidden div</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455168/smooth-movement-of-non-hidden-div</link>
			<pubDate>Thu, 23 May 2013 11:58:40 +0000</pubDate>
			<description>I have some div's one after another. When i click anywhere the first div hides and other div's shifts to fill the empty space. But the movement of other div which aren't hidden are not satisfying as it takes the place but not smoothly. I have no idea as how ...</description>
			<content:encoded><![CDATA[ <p>I have some div's one after another.<br />
When i click anywhere the first div hides and other div's shifts to fill the empty space.<br />
But the movement of other div which aren't hidden are not satisfying as it takes the place<br />
but not smoothly.<br />
I have no idea as how should i approach this problem</p>

<p>Here's a link of current scenario<br />
<a href="http://jsfiddle.net/code_rum/Xb4ZX/" rel="nofollow">http://jsfiddle.net/code_rum/Xb4ZX/</a></p>

<p>Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>code_rum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455168/smooth-movement-of-non-hidden-div</guid>
		</item>
				<item>
			<title>General</title>
			<link>http://www.daniweb.com/web-development/threads/455166/general</link>
			<pubDate>Thu, 23 May 2013 11:42:37 +0000</pubDate>
			<description>Hai everyone. I am new to this discussion. Can anyone tell me about xml site map creation.</description>
			<content:encoded><![CDATA[ <p>Hai everyone. I am new to this discussion. Can anyone tell me about xml site map creation.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>peterson10012</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/455166/general</guid>
		</item>
				<item>
			<title>php not updating password nor token in the d.b</title>
			<link>http://www.daniweb.com/web-development/php/threads/455163/php-not-updating-password-nor-token-in-the-d.b</link>
			<pubDate>Thu, 23 May 2013 11:39:44 +0000</pubDate>
			<description>My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code: Forgot Password&lt;/strong&gt;&lt;/h3&gt; &lt;form name=&quot;forgot&quot; method=&quot;POST&quot; id=&quot;forgot&quot; action=&quot;includes/reset.php&quot;&gt; &lt;div align=&quot;center&quot;&gt; &lt;table width=&quot;372&quot; border=&quot;0&quot;&gt; &lt;tr&gt; &lt;td width=&quot;181&quot;&gt;&lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width=&quot;181&quot;&gt;&lt;span id=&quot;sprytextfield1&quot;&gt;&lt;br /&gt; &lt;label for=&quot;label&quot;&gt;&lt;/label&gt; ...</description>
			<content:encoded><![CDATA[ <p>My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code:</p>

<pre><code>Forgot Password&lt;/strong&gt;&lt;/h3&gt;
      &lt;form name="forgot" method="POST" id="forgot" action="includes/reset.php"&gt;
        &lt;div align="center"&gt;
          &lt;table width="372" border="0"&gt;
            &lt;tr&gt;
              &lt;td width="181"&gt;&lt;p&gt; &lt;/p&gt;
                &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td width="181"&gt;&lt;span id="sprytextfield1"&gt;&lt;br /&gt;
                &lt;label for="label"&gt;&lt;/label&gt;
                &lt;input type="password" name="passsowrd" id="password" /&gt;
                &lt;span class="textfieldRequiredMsg"&gt;Your password is required&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;p&gt; &lt;/p&gt;
                &lt;p&gt;&lt;strong&gt;Confenter code hereirm Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td&gt;&lt;span id="spryconfirm2"&gt;
                &lt;label for="password"&gt;&lt;/label&gt;
                &lt;input type="password" name="password2" id="password" /&gt;
                &lt;span class="confirmRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The values don't match.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;table width="98" border="0"&gt;
        &lt;tr&gt;
          &lt;th width="44" scope="row"&gt;&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;&lt;/th&gt;
          &lt;th width="44" scope="row"&gt;&lt;input type="reset" name="clear" id="clear" value="Clear" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt; &lt;/tr&gt;
        &lt;tr&gt; &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  &lt;/form&gt;
</code></pre>

<p>and the reset.php is:</p>

<pre><code>&lt;?php
session_start();
error_reporting(0);
$token=$_GET['token'];
include("settings.php");
connect();
if(!isset($_POST['password'])){
$q="select email from tokens where token='".$token."' and used=0";
$r=mysql_query($q);
while($row=mysql_fetch_array($r))
   {
$email=$row['email'];
   }
If ($email!=''){
          $_SESSION['email']=$email;
}
else die("Invalid link or Password already changed  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;");}

$pass=$_POST['password'];
$email=$_SESSION['email'];

if(isset($_POST['password'])&amp;&amp;isset($_SESSION['email']))
{
$q="update registration set password='".md5($pass)."' where email='".$email."'";
$r=mysql_query($q);
if($r)mysql_query("update tokens set used=1 where token='".$token."'");echo "Your password is changed successfully  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;";
if(!$r)echo "An error occurred";
    }
</code></pre>

<p>so the issue is the following error message is echoed all the time: Invalid link or Password already changed.</p>

<p>also if i add the following to the php code:</p>

<pre><code>if(!isset($pass)){
echo '&lt;form method="post"&gt;
enter your new password:&lt;input type="password" name="password" /&gt;
&lt;input type="submit" value="Change Password"&gt;
&lt;/form&gt;
';}
</code></pre>

<p>then it works but opens it in new blank page which is un professional thats y am trying to add it to the html. any suggestions thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>php.coder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455163/php-not-updating-password-nor-token-in-the-d.b</guid>
		</item>
				<item>
			<title>Stored Procedure Error</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455162/stored-procedure-error</link>
			<pubDate>Thu, 23 May 2013 11:12:51 +0000</pubDate>
			<description>Hi all, I'm trying to run a stored procedure: BEGIN SELECT YFR_Master_Fundraisers.FRName, YFR_Master_Fundraisers.FRActive FROM YFR_Master INNER JOIN YFR_Master_Fundraisers ON YFR_Master.FundRaiser = YFR_Master_Fundraisers.FRNameCode GROUP BY YFR_Master.FundRaiser HAVING MAX(YFR_Master.CollectionDate) &lt; DATE_SUB(CURDATE(),INTERVAL 2 MONTH) AND YFR_Master_Fundraisers.FRActive = 1; END But I'm getting the following error: Procedure execution failed 1312 - PROCEDURE db355379982.Deactivate can't ...</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I'm trying to run a stored procedure:</p>

<pre><code class="language-sql">BEGIN

SELECT YFR_Master_Fundraisers.FRName, YFR_Master_Fundraisers.FRActive
FROM YFR_Master
INNER JOIN YFR_Master_Fundraisers
ON YFR_Master.FundRaiser = YFR_Master_Fundraisers.FRNameCode
GROUP BY YFR_Master.FundRaiser
HAVING MAX(YFR_Master.CollectionDate) &lt; DATE_SUB(CURDATE(),INTERVAL 2 MONTH)
AND YFR_Master_Fundraisers.FRActive = 1;

END
</code></pre>

<p>But I'm getting the following error:</p>

<p>Procedure execution failed<br />
1312 - PROCEDURE db355379982.Deactivate can't return a result set in the given context</p>

<p>Does anyone know why I might be getting this?</p>

<p>I've never used stored procedures before.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>Tinnin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455162/stored-procedure-error</guid>
		</item>
				<item>
			<title>How to get current Selected Row in dataGridview and print using crystal rep</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455161/how-to-get-current-selected-row-in-datagridview-and-print-using-crystal-rep</link>
			<pubDate>Thu, 23 May 2013 10:27:10 +0000</pubDate>
			<description>How to get current Selected Row in dataGridview and print using crystal report? Print Only selected current row in data gridview</description>
			<content:encoded><![CDATA[ <p>How to get current Selected Row in dataGridview and print using crystal report?<br />
Print Only selected current row in data gridview</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>ranTHE</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455161/how-to-get-current-selected-row-in-datagridview-and-print-using-crystal-rep</guid>
		</item>
				<item>
			<title>styling tooltip based on title attribute</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455160/styling-tooltip-based-on-title-attribute</link>
			<pubDate>Thu, 23 May 2013 10:17:32 +0000</pubDate>
			<description>Hi, Is there a way to style tooltips that appear by using title attribute? So far I have been able to find out that its div but cant find out if its associated with any class. And on other site answer I got was No and work around it using ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
 Is there a way to style tooltips that appear by using title attribute? So far I have been able to find out that its div but cant find out if its associated with any class. And on other site answer I got was No and work around it using jQuery or something.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>Sahil89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455160/styling-tooltip-based-on-title-attribute</guid>
		</item>
				<item>
			<title>CrossTab Query</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/455157/crosstab-query</link>
			<pubDate>Thu, 23 May 2013 09:57:21 +0000</pubDate>
			<description>Need help! As you can see, I'm working with a crosstab report that will display the product's &quot;Total Sales&quot; or &quot;Quantity Sold&quot; on a particular year in a monthly basis. Now my problem is, I can't figure it out how I can display the monthly total sales or quantity sold ...</description>
			<content:encoded><![CDATA[ <p>Need help!</p>

<p>As you can see, I'm working with a crosstab report that will display the product's "Total Sales" or "Quantity Sold" on a particular year in a monthly basis. Now my problem is, I can't figure it out how I can display the monthly total sales or quantity sold for a particular product on a grid. I've tried using WHILE statement on SQL but still I wasn't able to get the ideal output.</p>

<p>Here is my SQL Query:</p>

<pre><code class="language-sql">DECLARE @Month int
SET @Month =1

WHILE (@Month &lt;= 12)
BEGIN 
SELECT P.Name AS 'Product Name'
    ,SUM(SOIL.QuantityDisplay) AS 'Qty'
    ,SUM(UnitPrice) AS 'Amount'
FROM BASE_Product P
    INNER JOIN SO_SalesOrderInvoice_Line SOIL
    ON SOIL.ProductId = P.ProductId
WHERE DATEPART(m, SOIL.CreatedDateTime) = @Month
    AND DATEPART(YY, SOIL.CreatedDateTime) = 2013
GROUP BY P.Name, SOIL.QuantityDisplay, SOIL.UnitPrice
SET @Month += 1
END
</code></pre>

<p>Please enlighten me what's wrong!<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zLzkxYzI1MzI4NjI3MzkxY2ViY2JkNWY3YmI5ZDMyNTlkLlBORw%3D%3D/500" alt="91c25328627391cebcbd5f7bb9d3259d" title="91c25328627391cebcbd5f7bb9d3259d" /></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>draven07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/455157/crosstab-query</guid>
		</item>
				<item>
			<title>media player with taskbar toolbar / deskband?</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455156/media-player-with-taskbar-toolbar-deskband</link>
			<pubDate>Thu, 23 May 2013 09:50:04 +0000</pubDate>
			<description>Hello, anyone knows a media player, similar to the old WMP 11 - which had the taskbar toolbar, to be used with Windows 7? The current WMP12 does not support this feature :(</description>
			<content:encoded><![CDATA[ <p>Hello, anyone knows a media player, similar to the old WMP 11 - which had the taskbar toolbar, to be used with Windows 7? The current WMP12 does not support this feature :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>lordrt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455156/media-player-with-taskbar-toolbar-deskband</guid>
		</item>
				<item>
			<title>Do you know a framework that converts pdf to pps in Java?</title>
			<link>http://www.daniweb.com/software-development/java/threads/455155/do-you-know-a-framework-that-converts-pdf-to-pps-in-java</link>
			<pubDate>Thu, 23 May 2013 09:29:05 +0000</pubDate>
			<description>Do you know how to convert PDF to PPT|PPS documents in Java? I generated a PDF document with IText and now I want to put an option for users to save as ppt|pps</description>
			<content:encoded><![CDATA[ <p>Do you know how to convert PDF to PPT|PPS documents in Java?<br />
I generated a PDF document with IText and now I want to put an option for users to save as ppt|pps</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>m1051f</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455155/do-you-know-a-framework-that-converts-pdf-to-pps-in-java</guid>
		</item>
				<item>
			<title>Tkinter not sending widgets in self</title>
			<link>http://www.daniweb.com/software-development/python/threads/455154/tkinter-not-sending-widgets-in-self</link>
			<pubDate>Thu, 23 May 2013 09:21:06 +0000</pubDate>
			<description>Hey, when I execute the following code I get &quot;App instance has no attribute rolls&quot; I have no clue as to why this is and any help would be awesome, Thanks. import Tkinter class App: def __init__(self, master): self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S self.frame = Tkinter.Frame(master) self.frame.pack() # Dice Buttons. self.bd4 = ...</description>
			<content:encoded><![CDATA[ <p>Hey, when I execute the following code I get "App instance has no attribute rolls" I have no clue as to why this is and any help would be awesome, Thanks.</p>

<pre><code class="language-py">import Tkinter

class App:

    def __init__(self, master):
        self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S
        self.frame = Tkinter.Frame(master)
        self.frame.pack()

        # Dice Buttons.
        self.bd4 = Tkinter.Button(self.frame, text="D4", command = self.roll_dice()) # Button for D4.

        # Text Field.
        self.rolls = Tkinter.Text(self.frame, width=15, height=1)
        self.rolls.tag_configure("center", justify='center')

        # Grid.
        self.rolls.grid(row=0, column=1)
        self.bd4.grid(row=0, column=0)

    def roll_dice(self):
        self.rolls.insert('end', 'text', 'center')

root = Tkinter.Tk()
app = App(root)
root.mainloop()
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>happymadman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455154/tkinter-not-sending-widgets-in-self</guid>
		</item>
				<item>
			<title>Create Oracle Table in C#</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455153/create-oracle-table-in-c</link>
			<pubDate>Thu, 23 May 2013 08:51:43 +0000</pubDate>
			<description>Hey everyone I need some urgent help please. I don't know how but I need make a Time Dimension of an Oracle Table using c#. What needs to happen is: -I want to use Order_Table's Date Column to Create a new table Time_Dim with columns OrderID, Year, Month, Week, Day. ...</description>
			<content:encoded><![CDATA[ <p>Hey everyone</p>

<p>I need some urgent help please.<br />
I don't know how but I need make a Time Dimension of an Oracle Table using c#.</p>

<p>What needs to happen is:</p>

<p>-I want to use Order_Table's Date Column to Create a new table Time_Dim with columns OrderID, Year, Month, Week, Day.</p>

<p>If anyone can help it would be appreciated:)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>ScubaSam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455153/create-oracle-table-in-c</guid>
		</item>
				<item>
			<title>Simple mySQL query failing</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455152/simple-mysql-query-failing</link>
			<pubDate>Thu, 23 May 2013 08:39:59 +0000</pubDate>
			<description>I have the following mySQL query, and for some reason I can't get it working. I have two tables: exp_competition_purchase_upload_total contains a member id and total_uploads column. exp_channel_titles has lots of columns, but the two I need to check is author id and channel id. My aim is to query ...</description>
			<content:encoded><![CDATA[ <p>I have the following mySQL query, and for some reason I can't get it working.</p>

<p>I have two tables:</p>

<p>exp_competition_purchase_upload_total contains a member id and total_uploads column. exp_channel_titles has lots of columns, but the two I need to check is author id and channel id.</p>

<p>My aim is to query the first table and locate any rows, find the member_id and take the upload_total associated with it. Then go to the second table, count the rows that have an author id that matches the member id from table one, and has a channel id of 1.</p>

<pre><code class="language-sql">SELECT COUNT(*) AS uploads, c.upload_total 
FROM exp_competition_purchase_upload_total AS c
LEFT JOIN exp_channel_titles AS t ON c.member_id = t.author_id
WHERE c.member_id = '1'
AND t.channel_id = '1'
</code></pre>

<p>Currently the count is returning, but not the upload_total number. The following works:</p>

<pre><code class="language-sql">SELECT upload_total 
FROM exp_competition_purchase_upload_total
WHERE member_id = '1'
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>sathishnaidu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455152/simple-mysql-query-failing</guid>
		</item>
				<item>
			<title>Laptop touchpad  driver issue</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455151/laptop-touchpad-driver-issue</link>
			<pubDate>Thu, 23 May 2013 08:13:36 +0000</pubDate>
			<description>My acer laptop touchpad doesn`t work; but when I uninstall PS/2 mouse driver and restart or shutdown it works perfectly after next windows boot. I have re-intsalled Windows 7. Also when Windows instalation started touchpad was working; but when almost finished it stopped working.</description>
			<content:encoded><![CDATA[ <p>My acer laptop touchpad doesn`t work; but when I uninstall PS/2 mouse driver and restart or shutdown it works perfectly after next windows boot. I have re-intsalled Windows 7. Also when Windows instalation started touchpad was working; but when almost finished it stopped working.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>Prasad Thale</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455151/laptop-touchpad-driver-issue</guid>
		</item>
				<item>
			<title>C++ 3DProgramming, Collision Detection Problem against Model</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455150/c-3dprogramming-collision-detection-problem-against-model</link>
			<pubDate>Thu, 23 May 2013 07:35:01 +0000</pubDate>
			<description>Hi Im a student and just started 3D programming 2 weeks ago. I have this problem: I got a working collision detection against models created in Maya. But: The collision is only inside the model, with the normals on the model pointing out as it should be. If I revers ...</description>
			<content:encoded><![CDATA[ <p>Hi Im a student and just started 3D programming 2 weeks ago. I have this problem:</p>

<p>I got a working collision detection against models created in Maya. But:</p>

<p>The collision is only inside the model, with the normals on the model pointing out as it should be.<br />
If I revers the normals on the model(so you can se inside it but not inside out) the collision works great from the outside.<br />
I don't know if my Maya is configured wrong or if I did wrong, or is it my collision? Any idéa?</p>

<p>The collision is only intersecting the triangles inside for an example a box. Not from the outside...<br />
And I cant have reversed normals on models in the game, it dosent look well.</p>

<p>To mention the collision is against a world. WorldCollision.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>shadyreal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455150/c-3dprogramming-collision-detection-problem-against-model</guid>
		</item>
				<item>
			<title>include() error :(</title>
			<link>http://www.daniweb.com/web-development/php/threads/455149/include-error-</link>
			<pubDate>Thu, 23 May 2013 07:21:30 +0000</pubDate>
			<description>when include file to dreamweaver i cant edit anything in design view. &lt;?php require('header.php');?&gt; What should i do?</description>
			<content:encoded><![CDATA[ <p>when include file to dreamweaver i cant edit anything in design view.<br />
&lt;?php require('header.php');?&gt;</p>

<p>What should i do?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Shalomd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455149/include-error-</guid>
		</item>
				<item>
			<title>Mysql IF Condition</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455148/mysql-if-condition</link>
			<pubDate>Thu, 23 May 2013 06:22:42 +0000</pubDate>
			<description> CASE WHEN ((SELECT COUNT(id) FROM users) &gt; 0) THEN BEGIN INSERT INTO users(username,password) VALUES('Moshe','Ahuva'); END ELSE BEGIN INSERT INTO users(username,password) VALUES('Zvi','Idan'); END END My aim is to save with a condition. but it fails and says: &quot;Check the manual that correponds to the right syntax near ELSE BEGIN ....&quot;. please ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-sql">CASE WHEN ((SELECT COUNT(id) FROM users) &gt; 0) THEN
    BEGIN
       INSERT INTO users(username,password) VALUES('Moshe','Ahuva');
   END
ELSE 
    BEGIN
       INSERT INTO users(username,password) VALUES('Zvi','Idan');
    END
END
</code></pre>

<p>My aim is to save with a condition. but it fails and says: "Check the manual that correponds to the right syntax near ELSE BEGIN ....". please re-write it better.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>mogaka</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455148/mysql-if-condition</guid>
		</item>
				<item>
			<title>cron job to copy files from server to server</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455147/cron-job-to-copy-files-from-server-to-server</link>
			<pubDate>Thu, 23 May 2013 06:06:03 +0000</pubDate>
			<description>Hello guys, I need to create a daily backup for files and save them on another server I use rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/ but this ask me for password , I want to create a cron job to copy files automatically at midnight. how can I ...</description>
			<content:encoded><![CDATA[ <p>Hello guys, I need to create a daily backup for files and save them on another server<br />
I use</p>

<pre><code>rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/
</code></pre>

<p>but this ask me for password , I want to create a cron job to copy files automatically at midnight.<br />
how can I baypass the password ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>OsaMasw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455147/cron-job-to-copy-files-from-server-to-server</guid>
		</item>
				<item>
			<title>Indentation question</title>
			<link>http://www.daniweb.com/software-development/python/threads/455146/indentation-question</link>
			<pubDate>Thu, 23 May 2013 05:35:16 +0000</pubDate>
			<description>Hi * I'm trying to make a program that converts a vertical list to a horizontal one which works. But am trying to build in check for some correct user input an I get an Indentation error File &quot;.\dairymaster.py&quot;, line 19 pn_test = check_input('1', '2') ^ IndentationError: expected an indented ...</description>
			<content:encoded><![CDATA[ <p>Hi *<br />
I'm  trying to make a program that converts a vertical list to a horizontal one which works. But am trying to build in check for some correct user input an I get an Indentation error</p>

<p>File ".\dairymaster.py", line 19<br />
pn_test = check_input('1', '2')<br />
^<br />
IndentationError: expected an indented block</p>

<p>If I run this piece of code seperate it works fine but combination with the rest I get the above error</p>

<pre><code class="language-py">import sys

action = "draft"

#print ('Please enter which pen:')
#pn = raw_input()
def check_input(a, b):
    """
    check the input 
    """
    prompt = "Please enter which pen %s or %s: " % (a, b)
    while True:
        try:
            pn = str(raw_input(prompt))
            if pn == '1' or pn == '2':
                return pn
        except StringError:

pn_test = check_input('1', '2')
print(pn_test)

#print ('Please enter AM or PM:')
#moa = raw_input('Please enter AM or PM:')
def check_input(c, d):
    """
    check the input 
    """
    prompt = "Please enter either %s or %s: " % (c, d)
    while True:
        try:
            moa = str(raw_input(prompt))
            if moa == 'am' or moa == 'pm':
                return moa
        except StringError:

moa_test = check_input('am', 'pm')
print(moa_test)

#print ('Please enter how many days from now, enter = 0:')
#dfn = raw_input()
def check_input(e, f):
    """
    check the input 
    """
    prompt = "Please enter either %s or %s for today or tomorrow: " % (e, f)
    while True:
        try:
            dfn = str(raw_input(prompt))
            if dfn == '0' or dfn == '+1':
                return dfn
        except StringError:

dfn_test = check_input('0', '+1')
print(dfn_test)

print ('Please enter the filename:')
fname = raw_input()


handle = open(fname, "r")
list = handle.readlines()

combine = ''.join(list).replace("\n", " ")

if dfn == '0'
    return dfn == ' '

oname = "copyme.txt"
fout = open(oname, "w")
fout.write(action + pn + moa + ' ' + dfn + ' ')
fout.write(combine)
fout.close()
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>douwe1971</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455146/indentation-question</guid>
		</item>
				<item>
			<title>yahoo news </title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455145/yahoo-news-</link>
			<pubDate>Thu, 23 May 2013 05:13:55 +0000</pubDate>
			<description>hello yahoo purchased tumblr in 1.1 billion</description>
			<content:encoded><![CDATA[ <p>hello yahoo purchased tumblr in 1.1 billion</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>spyindiarahul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455145/yahoo-news-</guid>
		</item>
				<item>
			<title>scanf help</title>
			<link>http://www.daniweb.com/software-development/c/threads/455143/scanf-help</link>
			<pubDate>Thu, 23 May 2013 02:59:03 +0000</pubDate>
			<description>Hi, I am trying to write a program which read a certain input in a particular format and then gives an ouput. I wrote a code to read the file. Input is something like this. X 20 60 80 90 X 78 98 97 96 X 34 35 43 23 ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
I am trying to write a program which read a certain input in a particular format and then gives an ouput. I wrote a code to read the file. Input is something like this.<br />
X 20 60 80 90<br />
X 78 98 97 96<br />
X 34 35 43 23<br />
Y 76 87 34<br />
Y 65 76 72<br />
Z 13 70 39<br />
So my reading function read the input and then it counts the number lines with X and Y. Now, when I wrote two different funcions to read X and Y lines. When I am finished reading the X lines, I go to read Y lines. The code skips the first Y line, because it has already read it without realising that it is a Y line, and then it read the next line while skipping the first Y line. Can I avoid that?</p>

<p>I use scanf to read the first character and then it is true I used scanf in a while loop to read the rest of the numbers and I store those numbers in an array.</p>

<p>As I know that it has already read the next character, can I test it if the character is Y? Because the input may not contain the Y line.</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>sourabhyogi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455143/scanf-help</guid>
		</item>
				<item>
			<title>Java Trident library issue</title>
			<link>http://www.daniweb.com/software-development/java/threads/455141/java-trident-library-issue</link>
			<pubDate>Thu, 23 May 2013 00:49:15 +0000</pubDate>
			<description>So, i have made a small test application attempting to learn and get used to the Trident library. I use a Timeline to alter the position of a JPanel. I was really impressed with how well it worked, until i added a background color to the moving panel, its all ...</description>
			<content:encoded><![CDATA[ <p>So, i have made a small test application attempting to learn and get used to the Trident library. I use a Timeline to alter the position of a JPanel. I was really impressed with how well it worked, until i added a background color to the moving panel, its all fun and games, until you use alpha!</p>

<p>Its such a strange issue, on the way up, the panel goes completely opaque, but then on the way back down, it gets its correct alpha value back and settles with that value.</p>

<p>the timeline code:</p>

<pre><code class="language-java">JPanel text = new JPanel();
text.setVisible(true);
text.setLocation(0, 150);
text.setSize(200, 150);
text.setBackground(new Color(0, 0, 0, 180));

final Timeline rolloverTimeline = new Timeline(text);
rolloverTimeline.addPropertyToInterpolate("location", new Point(0, 150), new Point(0, 50));
rolloverTimeline.setDuration(1000);

this.addMouseListener(new MouseAdapter() {
    @Override
    public void mouseEntered(MouseEvent e) {
        rolloverTimeline.play();
    }

    @Override
    public void mouseExited(MouseEvent e) {
        rolloverTimeline.playReverse();
    }
});

this.add(text);
</code></pre>

<p>Any help would be greatly appreciated, thanks</p>

<p>PS. i'd have posted it on the Trident forums, but that place is a ghost town</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>jasonw749</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455141/java-trident-library-issue</guid>
		</item>
				<item>
			<title>Algorithm for maximization</title>
			<link>http://www.daniweb.com/software-development/python/threads/455140/algorithm-for-maximization</link>
			<pubDate>Wed, 22 May 2013 23:24:14 +0000</pubDate>
			<description>Hello everyone, I have multiple lists of variables. Every list contains the variables corresponding to a single/unique entity. listVar_Entity1 = [x1, x2, x3, x4] listVar_Entity2 = [x5, x6, x7] listVar_Entity3 = [x8, x9, x10, x11, x12] # and so on Every member in a list has a mapping to each ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone,<br />
I have multiple lists of variables. Every list contains the variables corresponding to a single/unique entity.</p>

<pre><code class="language-py">listVar_Entity1 = [x1, x2, x3, x4]
listVar_Entity2 = [x5, x6, x7]
listVar_Entity3 = [x8, x9, x10, x11, x12]
# and so on
</code></pre>

<p>Every member in a list has a mapping to each member of every other list for example:</p>

<pre><code class="language-py">mapping(x1,x9) = some_value
</code></pre>

<p>but there is no relation between variables within a list. I want to find the combination of members of different lists such that the addition of mapping between those variable is maximized assuming mapping(x1, x9) = mapping(x9, x1).<br />
Please help me writing this algorithm.<br />
Thanks<br />
sincerely,<br />
Himanshu</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>superbhimanshu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455140/algorithm-for-maximization</guid>
		</item>
				<item>
			<title>Creating an autobalancer</title>
			<link>http://www.daniweb.com/software-development/java/threads/455139/creating-an-autobalancer</link>
			<pubDate>Wed, 22 May 2013 23:22:31 +0000</pubDate>
			<description>Hello! I've been busy passing exams, but now I'm free to code around again. So, in my usual style! **The goal:** I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have ...</description>
			<content:encoded><![CDATA[ <p>Hello!<br />
I've been busy passing exams, but now I'm free to code around again.<br />
So, in my usual style!</p>

<p><strong>The goal:</strong><br />
I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have to watch cat videos for an hour to recover from being autobalanced.<br />
But, it gave me the idea to code my own autobalancer! :D</p>

<p><strong>The problem:</strong><br />
To me, my logic seems fine, but the code breaks when I try to call the methods and objects in my main class.</p>

<p><strong>The code (Player.class):</strong></p>

<pre><code class="language-java">package autobalance;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;

public class Player {

    private Random R = new Random();
    private String name;
    private int team;
    private int score;
    List&lt;Player&gt; allPlayers;

    public Player() {
        this.name = "Soldier ";
        this.score = this.R.nextInt(10000);
        this.team = this.R.nextInt(2) + 1;
    }

    public Player addPlayer(String soldierName) {
        this.allPlayers = new ArrayList&lt;&gt;();
        Player P = new Player();
        P.setName(this.name + soldierName);
        allPlayers.add(P);
        return P;
    }

    public void showTeam(int T) {
        Iterator&lt;Player&gt; IT = this.allPlayers.iterator();
        while (IT.hasNext()) {
            Player temp = IT.next();
            if (temp.getTeam() == T) {
                System.out.println(temp.getName() + "-" + temp.getScore());
            }
        }
    }


    public void setName(String name) {
        this.name = name;
    }   

    public String getName() {
        return name;
    }

    public int getScore() {
        return score;
    }

    public int getTeam() {
        return team;
    }
}
</code></pre>

<p><strong>The code (main Autobalance.class):</strong></p>

<pre><code class="language-java">package autobalance;
public class Autobalance {
    public static void main(String[] args) {

        Player P = new Player();

        P.addPlayer("Mirza");
        P.addPlayer("Asmir");
        P.addPlayer("Ljubo");
        P.addPlayer("Slađo");
        P.addPlayer("Khan");
        P.addPlayer("Vpa");
        P.addPlayer("Marin");

    System.out.println("Team 1:");
        P.showTeam(1);
        System.out.println("Team 2:");
        P.showTeam(2);
    }
}
</code></pre>

<p><strong>Error report:</strong><br />
No red lines in the code, but when I run it, this happens:</p>

<pre><code class="language-java">Exception in thread "main" java.lang.RuntimeException: 
Uncompilable source code - constructor Player in class autobalance.
Player cannot be applied to given types;
  required: no arguments
  found: java.lang.String
  reason: actual and formal argument lists differ in length
    at autobalance.Autobalance.main(Autobalance.java:5)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 s
</code></pre>

<p>It says line 5 in Autobalance.class is broken, does that mean all of Player.class is broken? :S<br />
I'd really appreaciate gurus' help. :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Pobunjenik</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455139/creating-an-autobalancer</guid>
		</item>
				<item>
			<title>Accessing Data from Terminal and Making Available</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455138/accessing-data-from-terminal-and-making-available</link>
			<pubDate>Wed, 22 May 2013 21:10:30 +0000</pubDate>
			<description>Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being. ...</description>
			<content:encoded><![CDATA[ <p>Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being.</p>

<p>My current problem lies within access to data from a program that's already been written. This program is for a MAV Quadcopter and utilizes this code that can be found at the link here <a href="https://code.google.com/p/arducopter/downloads/list" rel="nofollow">https://code.google.com/p/arducopter/downloads/list</a></p>

<p>Arducopter 2.9.1b is the version we're working with as a team.</p>

<p>I'm trying to get the data to be accessed through the terminal, and thus able to utilize in real-time for other programs. I know the Arducopter program provides me with the data necessary as I can access it from programs like ArducopterMissionPlanner10 (Mission Planner 1.2.52 mav 1.0) and call it from test mode and setup modes within the terminal of that application.</p>

<p>Odds are I will get a C++ book here in the next couple of days or seek out an online route, so if you cannot help me initially, but have a good book to suggest or route to learn, I'd be appreciative in the same.</p>

<p>I appreciate any and all help in advance, and I'm looking forward to learning!</p>

<p>Best regards,</p>

<p>B</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>pbsarg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455138/accessing-data-from-terminal-and-making-available</guid>
		</item>
				<item>
			<title>Undefined offset? Why?</title>
			<link>http://www.daniweb.com/web-development/php/threads/455136/undefined-offset-why</link>
			<pubDate>Wed, 22 May 2013 20:57:22 +0000</pubDate>
			<description>Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong, for($i = 0; $i &lt; $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER ...</description>
			<content:encoded><![CDATA[ <p>Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong,</p>

<pre><code>for($i = 0; $i &lt; $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER
                    {
                        $userdetail = explode(":", $user[$i]);
                        if ($_POST['ic'] == $userdetail[2])
                        {
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;The ic no is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }
                        else if ($_POST['phone'] == $userdetail[7])
                        {
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;phone no is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }
                        else if ($_POST['facename'] == $userdetail[10])
                        {   
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;The Username you provided is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }

                    }
</code></pre>

<p>Here's the text file format the explode is reading from:</p>

<p>u0003:omied:123456-12-1234:male:married:privatesector:dfsfsdf:603-32323242:6016-2343432:omied@gmail.com:omeid123:dingo1234</p>

<p>as you can see, ic, phone, and facename are defined as 2, 7 and 10 following the format of the loop and array.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>xianamersu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455136/undefined-offset-why</guid>
		</item>
				<item>
			<title>taking input from command line and outputting to a .txt file</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455134/taking-input-from-command-line-and-outputting-to-a-.txt-file</link>
			<pubDate>Wed, 22 May 2013 19:43:10 +0000</pubDate>
			<description>I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue ...</description>
			<content:encoded><![CDATA[ <p>I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue is that none of the outputs are exported to the text file. It is probably some simple oversight and want to say thanks in advance for helping me. Note- This program is supposed to take the inputs of a teacher and export the individual grade w/ letter the number of assignments and class average with letter to the text file.</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
#include &lt;cfloat&gt;
#include &lt;fstream&gt;

int i;
float testScore[100];
float sum = 0;
float clavg;
char grade;
int main()
{
    std::fstream myfile;
    myfile.open("grades.txt"); //name of file 
    std::cout&lt;&lt;"Please Enter Your Students Grades."&lt;&lt;std::endl;
    std::cout&lt;&lt;"Type 999 to get Avg"&lt;&lt;std::endl;
    for (i=0; i&lt;100; i++)
    {
        std::cin&gt;&gt;testScore[i];
        if(testScore[i] == 999)
        {
            break;
        }
            if (testScore[i] &gt;= 90 &amp;&amp; testScore[i]&lt;=100)
            {
                grade = 'A';

            }

            if (testScore[i] &gt;= 80 &amp;&amp; testScore[i]&lt;=89)
            {
                grade = 'B';

            }

            if (testScore[i] &gt;= 70 &amp;&amp; testScore[i]&lt;=79)
            {
                grade = 'C';

            }

            if (testScore[i] &gt;= 60 &amp;&amp; testScore[i]&lt;=69)
            {
                grade = 'D';

            }

            if (testScore[i] &gt;=0 &amp;&amp; testScore[i]&lt;=59)
            {
                grade = 'F';

            }

            sum+=testScore[i];
            myfile&lt;&lt;testScore[i]&lt;&lt;" "&lt;&lt;grade&lt;&lt;std::endl;
    }
    clavg = (sum/i);

    if (clavg &gt;= 90 &amp;&amp; clavg&lt;=100)
            {
                grade = 'A';

            }

            if (clavg&gt;= 80 &amp;&amp; clavg&lt;=89)
            {
                grade = 'B';

            }

            if (clavg &gt;= 70 &amp;&amp; clavg&lt;=79)
            {
                grade = 'C';

            }

            if (clavg&gt;= 60 &amp;&amp; clavg&lt;=69)
            {
                grade = 'D';

            }

            if (clavg &gt;=0 &amp;&amp; clavg&lt;=59)
            {
                grade = 'F';

            }
            myfile&lt;&lt;"Total Number of Assignments = "&lt;&lt;i&lt;&lt;std::endl;
            myfile&lt;&lt;"Find Grade = "&lt;&lt;clavg&lt;&lt;" "&lt;&lt;grade&lt;&lt;std::endl;

            myfile.close();

            system("pause");
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>gobiking</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455134/taking-input-from-command-line-and-outputting-to-a-.txt-file</guid>
		</item>
				<item>
			<title>foreach loop issues.</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455133/foreach-loop-issues</link>
			<pubDate>Wed, 22 May 2013 19:24:32 +0000</pubDate>
			<description>Ok the output of this code is Element[0] = 100 Element[0] = 101 Element[0] = 102 Element[0] = 103 Element[0] = 104 Element[0] = 105 Element[0] = 106 Element[0] = 107 Element[0] = 108 Element[9] = 109 its supposed to be Element[0] = 100 Element[1] = 101 Element[2] = 102 ...</description>
			<content:encoded><![CDATA[ <p>Ok the output of this code is<br />
Element[0] = 100<br />
Element[0] = 101<br />
Element[0] = 102<br />
Element[0] = 103<br />
Element[0] = 104<br />
Element[0] = 105<br />
Element[0] = 106<br />
Element[0] = 107<br />
Element[0] = 108<br />
Element[9] = 109</p>

<p>its supposed to be</p>

<p>Element[0] = 100<br />
Element[1] = 101<br />
Element[2] = 102<br />
Element[3] = 103<br />
Element[4] = 104<br />
Element[5] = 105<br />
Element[6] = 106<br />
Element[7] = 107<br />
Element[8] = 108<br />
Element[9] = 109</p>

<p>The code is below. I fixxed the issue, but this code snippet comes straight from a tutorial website.<br />
What I don't know is why doesn't the foreach()  loop add the Element numbers in? I had to change<br />
the  i = 0;   to  i = j - 100; in order to make it output properly. Is anyone else getting the zero's<br />
on their output? Again I am using Visual Studio Express 2012. Why doesn't their code snippet work? What's<br />
wrong with that foreach loop to cause i not to increment and display properly?</p>

<pre><code class="language-cs">foreach statement to iterate through an array.
using System;

namespace ArrayApplication
{
   class MyArray
   {
      static void Main(string[] args)
      {
         int []  n = new int[10]; /* n is an array of 10 integers */


         /* initialize elements of array n */         
         for ( int i = 0; i &lt; 10; i++ )
         {
            n[i] = i + 100;
         }

         /* output each array element's value */
         foreach (int j in n )
         {
            int i = 0;    //&lt;--- I changed this to int i = j - 100;  and the code works properly.
            Console.WriteLine("Element[{0}] = {1}", i, j);
            i++;
         }
         Console.ReadKey();
      }
   }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>CodyOebel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455133/foreach-loop-issues</guid>
		</item>
				<item>
			<title>Passing variable through URL</title>
			<link>http://www.daniweb.com/web-development/php/threads/455132/passing-variable-through-url</link>
			<pubDate>Wed, 22 May 2013 19:12:12 +0000</pubDate>
			<description>I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this. This my combo box html code. &lt;select id=&quot;ID1&quot; name=&quot;place&quot; &gt; &lt;option value=&quot;Colombo&quot; selected=&quot;selected&quot;&gt;Colombo&lt;/option&gt; &lt;option value=&quot;Matara&quot;&gt;Matara&lt;/option&gt; &lt;option value=&quot;Galle&quot;&gt;Galle&lt;/option&gt; &lt;/select&gt; //What i want is pass selected value ...</description>
			<content:encoded><![CDATA[ <p>I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this.<br />
This my combo box html code.</p>

<pre><code> &lt;select id="ID1" name="place" &gt;
&lt;option value="Colombo" selected="selected"&gt;Colombo&lt;/option&gt;
&lt;option value="Matara"&gt;Matara&lt;/option&gt;
&lt;option value="Galle"&gt;Galle&lt;/option&gt;
&lt;/select&gt;

//What i want is pass selected value through URL

   &lt;div style="float:right; padding-right:1px; padding-bottom:2px;"&gt; &lt;a href="MyCity.php?city1= &lt;?php echo $_GET["place"] ; ?&gt; &gt; Click here &lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>I'm bit new to php and what is wrong with this code?<br />
im sure that 'MyCity.php' coding is correct, because i pass, hard coded value throgh above URL and could get that value from MyCity.php</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455132/passing-variable-through-url</guid>
		</item>
				<item>
			<title>Trying to learn Classes</title>
			<link>http://www.daniweb.com/software-development/python/threads/455131/trying-to-learn-classes</link>
			<pubDate>Wed, 22 May 2013 19:02:29 +0000</pubDate>
			<description>Hey guys, I'm trying to learn how to use classes and work with seperate files, and I been reading about it and now I tryed making a little short &quot;Hello World&quot; thingy but I don't really understand the self. things, I thought I did but it's not working so I ...</description>
			<content:encoded><![CDATA[ <p>Hey guys, I'm trying to learn how to use classes and work with seperate files, and I been reading about it and now I tryed making a little short "Hello World" thingy but I don't really understand the self. things, I thought I did but it's not working so I guess I diden't</p>

<p>Heres the code anyways:<br />
HelloWorld.py</p>

<pre><code class="language-py">class HelloWorld :

        def __init__(self):

            print("Hi")

        def Talk(self ,name):

            self.nameA = name
            print("Hello",self.nameA)
</code></pre>

<p>Main.py</p>

<pre><code class="language-py">import HelloWorld

HelloWorld.HelloWorld.Talk("Kevin")
</code></pre>

<p>I get the error:</p>

<pre><code class="language-py">Traceback (most recent call last):
  File "D:\PygameSpel\Test med klasser\Main.py", line 3, in &lt;module&gt;
    HelloWorld.HelloWorld.Talk("Kevin")
TypeError: Talk() takes exactly 2 arguments (1 given)
</code></pre>

<p>what am I missing?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Necrozze</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455131/trying-to-learn-classes</guid>
		</item>
				<item>
			<title>Copy specific rows from a cvs file to another cvs file</title>
			<link>http://www.daniweb.com/software-development/python/threads/455130/copy-specific-rows-from-a-cvs-file-to-another-cvs-file</link>
			<pubDate>Wed, 22 May 2013 18:17:33 +0000</pubDate>
			<description>I want to copy rows 3-5 to a new csv file. I can get the following code to copy the whole file to the new file but the only detail I have found about grabbing arbitrary rows consists of piecing array index numbers like in line 4 below. This may ...</description>
			<content:encoded><![CDATA[ <p>I want to copy rows 3-5 to a new csv file.<br />
I can get the following code to copy the whole file to the new file but the only detail I have found about grabbing arbitrary rows consists of piecing array index numbers like in line 4 below.  This may be helpful at some point, but right now I want the whole row, or a range of rows.<br />
I am pretty sure it is a simple thing, but apparently nobody else is writing about it.</p>

<pre><code class="language-py">    with open(filename, 'rb') as f:                         #This is scaffolding to see if the 
        reader = csv.reader(f)                              #read function worked  
        for row in reader:
            print("This is the header block", row[0], row[1])  
    with open('t_'+filename, 'wb') as title:                #This should be the start of the real code.
        writer = csv.writer(title)
        with open(filename, 'rb') as mycsv:
            reader = csv.reader(mycsv)
            for row in reader:
                writer.writerow(row)                        # I only want rows 3-5  
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>wolf29</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455130/copy-specific-rows-from-a-cvs-file-to-another-cvs-file</guid>
		</item>
				<item>
			<title>I don&#039;t know what I am doing....</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455129/i-dont-know-what-i-am-doing</link>
			<pubDate>Wed, 22 May 2013 17:55:08 +0000</pubDate>
			<description>I am currently taking a programming class. I finished my work early one day and was bored so.. I decided to make a randomizer that will only pick a number a single time. I have been trying to make it, but I run into continous errors with it. It seems ...</description>
			<content:encoded><![CDATA[ <p>I am currently taking a programming class. I finished my work early one day and was bored so.. I decided to make a randomizer that will only pick a number a single time. I have been trying to make it, but I run into continous errors with it. It seems to work until the randomizer picks 1. I have no idea why this does not work, but if it does pick one several clicks later the program will crash. Also the program can start picking the other numbers multiple times. Eventually the option for one will go away, but only after several clicks of the button.<br />
 Button1 adds the numbers to a text file and button 2 picks the number. Button 3 is a reset.<br />
 This program was created to pick seats so I am using that as my variable.<br />
 Here is my code so far....</p>

<pre><code class="language-vb">Public Class Form1
    Public seat As Integer
    Dim r As Integer
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If My.Computer.FileSystem.FileExists("seats.txt") Then
            My.Computer.FileSystem.DeleteFile("seats.txt")
            For x = 1 To 5
                My.Computer.FileSystem.WriteAllText("seats.txt", Environment.NewLine + x.ToString, True)
            Next
            RemoveAtLine("seats.txt", 0)
        Else : For x = 1 To 5
                My.Computer.FileSystem.WriteAllText("seats.txt", Environment.NewLine + x.ToString, True)
            Next
            RemoveAtLine("seats.txt", 0)
        End If
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        r = IO.File.ReadAllLines("seats.txt").Length + 1
        Dim reader As New System.IO.StreamReader("seats.txt")
        Dim allLines As List(Of String) = New List(Of String)
        Do While Not reader.EndOfStream
            allLines.Add(reader.ReadLine())
        Loop
        reader.Close()
        If Val(TextBox1.Text) &lt;= r Then
            For x = 1 To Val(TextBox1.Text)
                Randomize()
                seat = Int(Rnd(1) * r)
                Label1.Text = Label1.Text + Environment.NewLine + ReadLine(seat, allLines)
                RemoveAtLine("seats.txt", seat - 1)
            Next x
        Else : MsgBox("Not enough seats left")
        End If
    End Sub

    Public Shared Sub RemoveAtLine(ByVal filePath As String, Optional ByVal lineRemove As Integer = -1)
        If (String.IsNullOrEmpty("seats.txt")) Then
            Return
        End If
        Dim lines As New List(Of String)(IO.File.ReadAllLines("seats.txt"))
        If (lineRemove &gt;= 0 And lineRemove &lt;= lines.Count) Then
            lines.RemoveAt(lineRemove)
        End If
        IO.File.WriteAllLines("seats.txt", lines.ToArray())
    End Sub

    Public Function ReadLine(ByVal lineNumber As Integer, ByVal lines As List(Of String)) As String
        If lineNumber = 0 Then
            Return lines(lineNumber)
        Else
            Return lines(lineNumber - 1)
        End If
    End Function

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        If My.Computer.FileSystem.FileExists("seats.txt") Then My.Computer.FileSystem.DeleteFile("seats.txt")
    End Sub
End Class
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>schroaus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455129/i-dont-know-what-i-am-doing</guid>
		</item>
				<item>
			<title>Trying to input 3 books into a struct. Need help !</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455128/trying-to-input-3-books-into-a-struct.-need-help-</link>
			<pubDate>Wed, 22 May 2013 17:40:54 +0000</pubDate>
			<description>I am currently following tutorials on c# as I am a c++ programmer, and am wanting to see what all the .NET talk is about with c# ;). Here is what I want my program to do. It asks the user to input title, author, subject, and bookID for 3 ...</description>
			<content:encoded><![CDATA[ <p>I am currently following tutorials on c# as I am a c++ programmer, and am wanting to see what all the .NET talk is about with c#  ;). Here is what I want my program to do.  It asks the user to input  title, author, subject, and bookID  for  3 books (or however many I set the loop for).<br />
I am a bit confused with the usage of  the foreach loop. Can someone lend me a hand here please ?</p>

<p>Thank you!</p>

<pre><code class="language-cs">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{


    class StringProg
   {
        struct book
        {
            public string title;
            public string author;
            public string subject;
            public int bookID;

            public void Getinfo()
            {
                Console.WriteLine("Please enter the title of the book:");
                title = Console.ReadLine();
                Console.WriteLine("Please enter the author of the book:");
                author = Console.ReadLine();
                Console.WriteLine("Please enter the subject of the book:");
                subject = Console.ReadLine();
                Console.WriteLine("Please enter the book ID of the book:");
                bookID = Convert.ToInt32(Console.ReadLine());

            }

            public void Display()
            {

                Console.Clear();
                Console.WriteLine("This is the information for the book you entered:\n\n");
                Console.WriteLine(title);
                Console.WriteLine(author);
                Console.WriteLine(subject);
                Console.WriteLine(bookID);
            }
        }

      static void Main(string[] args)
      {

          book[] books = new book[3];
          for (int i = 0; i &lt; 3; i++)
          {
              Console.WriteLine("Getting book information for book #:{0}\n\n", i);

          foreach(int j in books[i])
          {
              books[j].Getinfo();
              books[j].Display();
          }
          }
          Console.ReadLine();
      }

   }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>CodyOebel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455128/trying-to-input-3-books-into-a-struct.-need-help-</guid>
		</item>
				<item>
			<title>hard drive docking station usage with 3.5&#039;&#039; Hard Drive</title>
			<link>http://www.daniweb.com/hardware-and-software/pc-hardware/storage/threads/455127/hard-drive-docking-station-usage-with-3.5-hard-drive</link>
			<pubDate>Wed, 22 May 2013 17:27:00 +0000</pubDate>
			<description>Chaps, just bought a Hard drive docking station for my 3.5&quot; Hard Drive. This can be used for all sort of things, 3.5, 2.5, SD, USB etc etc, you can see it in the first picture ![6d7dc6ccb7cbf1014d447a842a474237](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzZkN2RjNmNjYjdjYmYxMDE0ZDQ0N2E4NDJhNDc0MjM3LmpwZw%3D%3D/500 &quot;6d7dc6ccb7cbf1014d447a842a474237&quot;) At the bottom there is a button that has allegedly something to ...</description>
			<content:encoded><![CDATA[ <p>Chaps, just bought a Hard drive docking station for my 3.5" Hard Drive.<br />
This can be used for all sort of things, 3.5, 2.5, SD, USB etc etc, you can see it in the first picture <img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzZkN2RjNmNjYjdjYmYxMDE0ZDQ0N2E4NDJhNDc0MjM3LmpwZw%3D%3D/500" alt="6d7dc6ccb7cbf1014d447a842a474237" title="6d7dc6ccb7cbf1014d447a842a474237" /></p>

<p>At the bottom there is a button that has allegedly something to do with what sort of HD you use: one position if for 3.5' and one is for 2.5'. I had a look on the instruction, on youtube and some guides I have managed to download from the net but none of them mentions this at all. I left the switch as it is in the picture<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzZjMDM0NjFhM2E5YzZjMzJiNTg2MmIwNGZhYTZkZmFkLmpwZw%3D%3D/500" alt="6c03461a3a9c6c32b5862b04faa6dfad" title="6c03461a3a9c6c32b5862b04faa6dfad" /></p>

<p>and I plugged my 3.5'HD. It worked and the data seem to be opening ok, so hopefully I haven't fried anything but I wonder how true this thing with the switch it. If you wonder where I icked that up, it was from the picture that is on ebay, you can see it here if you scroll down <a href="http://www.ebay.co.uk/itm/200859352737?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" rel="nofollow">http://www.ebay.co.uk/itm/200859352737?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649</a><br />
Has it got anything to do with the power supply or something? Any idea as to what I should do?<br />
thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/pc-hardware/storage/105">Storage</category>
			<dc:creator>Violet_82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/pc-hardware/storage/threads/455127/hard-drive-docking-station-usage-with-3.5-hard-drive</guid>
		</item>
				<item>
			<title>How are Android devices rooted?</title>
			<link>http://www.daniweb.com/hardware-and-software/tablets-and-mobile-devices/threads/455126/how-are-android-devices-rooted</link>
			<pubDate>Wed, 22 May 2013 17:00:17 +0000</pubDate>
			<description>Hello, I am curious about how to root an Android phone without using any one click methods. A Google search returns only how to use programs to do this for you. Obviously there is a security vulnerability that is exploited, but I'd like to know in detail how this is ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am curious about how to root an Android phone without using any one click methods. A Google search returns only how to use programs to do this for you. Obviously there is a security vulnerability that is exploited, but I'd like to know in detail how this is done.</p>

<p>Thanks,<br />
Cheeve</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/tablets-and-mobile-devices/98">Tablets and Mobile Devices</category>
			<dc:creator>Cheeve</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/tablets-and-mobile-devices/threads/455126/how-are-android-devices-rooted</guid>
		</item>
				<item>
			<title>Windоws Fоrms tеxt аlignment С++</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455125/windws-frms-txt-lignment-</link>
			<pubDate>Wed, 22 May 2013 16:56:11 +0000</pubDate>
			<description>help me to write a program which sets/arrаnges spacеs in width, аlign left, аlign right how can I align text? pls,can you explain in detail?</description>
			<content:encoded><![CDATA[ <p>help me to write a program which sets/arrаnges spacеs in width, аlign left, аlign right<br />
how can I align text?<br />
pls,can you explain in detail?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>dualstar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455125/windws-frms-txt-lignment-</guid>
		</item>
				<item>
			<title>.js validation works for email but not submission to database.</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455124/.js-validation-works-for-email-but-not-submission-to-database</link>
			<pubDate>Wed, 22 May 2013 16:42:00 +0000</pubDate>
			<description>Hi: i have site contact form that validates required fields w/ .js And php. if browser has javascript turned on, the req'd info error message will show next to the field boxes .. if javascript is turned off, then user will see the same thing but coming from php instead... ...</description>
			<content:encoded><![CDATA[ <p>Hi:</p>

<p>i have site contact form that validates required fields w/ .js And php.<br />
if browser has javascript turned on, the req'd info error message will show next to the field boxes ..</p>

<p>if javascript is turned off, then<br />
user will see the same thing but coming from php instead...</p>

<p>the submit goes to database and personal email.<br />
email received shows complete field boxes info.. as expected..</p>

<p>the database will show incomplete submissions that the .js was sposed to stop..<br />
example:: like name is filled but missing email and such..</p>

<p>how can this be so?...<br />
must be something simple//</p>

<p>i didnt try to disable the .js validation to see what happens..<br />
i would rather fix it and keep it</p>

<p>here is code if someone can look at it..<br />
<a href="http://jsbin.com/ixupuk/1/edit" rel="nofollow">http://jsbin.com/ixupuk/1/edit</a></p>

<p>thanx</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>amkaos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455124/.js-validation-works-for-email-but-not-submission-to-database</guid>
		</item>
				<item>
			<title>OnPropertyChange</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455123/onpropertychange</link>
			<pubDate>Wed, 22 May 2013 16:36:37 +0000</pubDate>
			<description>For a script that needs to be run on multiple pages with different coding etiquettes, I need to be able to figure out when there is some dynamic change occuring in the DOM. MutationObservers cater for Chrome and Firefox but I'm having problems with IE so onpropertychange event is something ...</description>
			<content:encoded><![CDATA[ <p>For a script that needs to be run on multiple pages with different coding etiquettes, I need to be able to figure out when there is some dynamic change occuring in the DOM. MutationObservers cater for Chrome and Firefox but I'm having problems with IE so onpropertychange event is something I've chosen to use as it appears to be the only thing that MAY give the behaviour I want.</p>

<pre><code class="language-js">document.attachEvent("onpropertychange", doThis);
</code></pre>

<p>The above is the function which fires the doThis method whenever something occurs. But some of the pages my script needs to run on have unlimited scrolls (similar to what Facebook, LinkedIn have) and rescanning the entire page each time the event fires in order to detect that element where a property was changed is very resource intensive.</p>

<p>If only there was some way to get the particular element that caused the propertychange I would be so happy..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>asif49</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455123/onpropertychange</guid>
		</item>
				<item>
			<title>Progress Bar using JavaScript</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455122/progress-bar-using-javascript</link>
			<pubDate>Wed, 22 May 2013 16:29:42 +0000</pubDate>
			<description>Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?</description>
			<content:encoded><![CDATA[ <p>Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>Bibek_NS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455122/progress-bar-using-javascript</guid>
		</item>
				<item>
			<title>How to call 2 tables with matching fields</title>
			<link>http://www.daniweb.com/web-development/php/threads/455121/how-to-call-2-tables-with-matching-fields</link>
			<pubDate>Wed, 22 May 2013 15:52:00 +0000</pubDate>
			<description>I have a MySQL DB with 2 Tables in particular, &quot;Properties&quot; and &quot;Tenants&quot;. Each Table has a unique address Field &quot;propAddress&quot; &amp; &quot;TenAddress&quot;. I have a PHP page with a repeating reigon that lists all properties in the DB. What I'm trying to do is list all the tenants info ...</description>
			<content:encoded><![CDATA[ <p>I have a MySQL DB with 2 Tables in particular, "Properties" and "Tenants". Each Table has a unique address Field "propAddress" &amp; "TenAddress".<br />
I have a PHP page with a repeating reigon that lists all properties in the DB.<br />
What I'm trying to do is list all the tenants info to the matching property based on the addresses.<br />
I have it in my mind I should be using the "Where Clause".<br />
Any advise will be greatly appreciated.</p>

<pre><code>mysql_select_db($database_rent, $rent);
$query_RsProp = "SELECT * FROM Properties ORDER BY PropId ASC";
$query_limit_RsProp = sprintf("%s LIMIT %d, %d", $query_RsProp, $startRow_RsProp, $maxRows_RsProp);
$RsProp = mysql_query($query_limit_RsProp, $rent) or die(mysql_error());
$row_RsProp = mysql_fetch_assoc($RsProp);

if (isset($_GET['totalRows_RsProp'])) {
  $totalRows_RsProp = $_GET['totalRows_RsProp'];
} else {
  $all_RsProp = mysql_query($query_RsProp);
  $totalRows_RsProp = mysql_num_rows($all_RsProp);
}
$totalPages_RsProp = ceil($totalRows_RsProp/$maxRows_RsProp)-1;

$colname_Recordset1 = "-1";
if (isset($_GET['TenantId'])) {
  $colname_Recordset1 = $_GET['TenantId'];
}
mysql_select_db($database_rent, $rent);
$query_Recordset1 = sprintf("SELECT Properties.Address, Properties.PropId, Tenants.TenantId, Tenants.FirstName1, Tenants.LastName1, Tenants.FirstName2, Tenants.LastName2, Tenants.Phone1, Tenants.Phone2, Tenants.ContractStart, Tenants.ContractEnd, Tenants.RentDueDate, Tenants.Email, Tenants.ContractLink, Tenants.ApartmentNo, Tenants.TenantAdress FROM Properties, Tenants WHERE Properties.PropId AND Properties.Address=Tenants.TenantAdress AND %s", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $rent) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
    background-color: #E2E8FF;
}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form id="form1" name="form1" method="post" action=""&gt;
  &lt;?php do { ?&gt;
    &lt;table width="800" border="0"&gt;
      &lt;tr&gt;
        &lt;td width="114"&gt;&lt;img src="&lt;?php echo $row_RsProp['ImageLink']; ?&gt;" width="150"/&gt;&lt;/td&gt;
        &lt;td width="625"&gt;&lt;p&gt;&lt;b&gt;&lt;span style='font-size: 20px;' &gt;&lt;?php echo $row_RsProp['Address']; ?&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;?php echo $row_RsProp['City']; ?&gt;, &lt;?php echo $row_RsProp['State']; ?&gt; &lt;?php echo $row_RsProp['Zip']; ?&gt;&lt;br /&gt;
            &lt;?php echo $row_Recordset1['FirstName1']; ?&gt; &lt;?php echo $row_Recordset1['LastName1']; ?&gt;&lt;br /&gt;
        &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
        &lt;td width="20"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td width="23"&gt;&amp;nbsp;&lt;/td&gt;
      &lt;/tr&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;
    &lt;/table&gt;
    &lt;?php } while ($row_RsProp = mysql_fetch_assoc($RsProp)); ?&gt;&lt;br /&gt;&lt;br /&gt;

&lt;/form&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mark2326l</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455121/how-to-call-2-tables-with-matching-fields</guid>
		</item>
				<item>
			<title>determine Email fail and Sending in c sharp</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455120/determine-email-fail-and-sending-in-c-sharp</link>
			<pubDate>Wed, 22 May 2013 15:40:23 +0000</pubDate>
			<description>I have developed a C sharp application for sending an email. I want to know how can i determine whether an email is deilvered to targeted users. Also how to find if an email is bounced back. already tried many solutions from internet but still i am looking for success. ...</description>
			<content:encoded><![CDATA[ <p>I have developed a C sharp application for sending an email. I want to know how can i determine whether an email is deilvered to targeted users. Also how to find if an email is bounced back. already tried many solutions from internet but still i am looking for success. tell me if you are having some solutions to meet my requirement.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>ManthanB</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455120/determine-email-fail-and-sending-in-c-sharp</guid>
		</item>
				<item>
			<title>Java Ascii counter</title>
			<link>http://www.daniweb.com/software-development/java/threads/455119/java-ascii-counter</link>
			<pubDate>Wed, 22 May 2013 15:29:44 +0000</pubDate>
			<description>I have to build a program which takes a password as input and then the password machine hacks it. It should do it by looping through the ascii character map 4 times i.e a, b ,c etc followed be aa, ab, ac. It's meant to simulate a &quot;brute force attack&quot;. ...</description>
			<content:encoded><![CDATA[ <p>I have to build a program which takes a password as input and then the password machine hacks it. It should do it by looping through the ascii character map 4 times i.e a, b ,c etc followed be aa, ab, ac. It's meant to simulate a "brute force attack". Can you offer me any advice in checking the ascii map in this way using a loop and also I need to return the amount of time taken for it to hack it. Is there a way I can return the seconds, or will I have to simulate it? Thanks!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>snapper1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455119/java-ascii-counter</guid>
		</item>
				<item>
			<title>Some windows updates fail/some don&#039;t - reoffered same updates over and agai</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/455118/some-windows-updates-failsome-dont-reoffered-same-updates-over-and-agai</link>
			<pubDate>Wed, 22 May 2013 15:27:01 +0000</pubDate>
			<description>Hi all. I keep getting the little yellow shield to install sevearl updates. The Installation status reads like this... Installing Microsoft .NET Framework 3.5 SP1 and .NET Framework 2.0 SP2 Security Update for Windows 2000, Windows Server 2003, and Windows XP x86 (KB979909) (update 2 of 8)... failed! Installing Microsoft ...</description>
			<content:encoded><![CDATA[ <p>Hi all.</p>

<p>I keep getting the little yellow shield to install sevearl updates. The Installation status reads like this...</p>

<p>Installing Microsoft .NET Framework 3.5 SP1 and<br />
.NET Framework 2.0 SP2 Security Update for Windows<br />
2000, Windows Server 2003, and Windows XP x86<br />
(KB979909) (update 2 of 8)... failed!</p>

<p>Installing Microsoft .NET Framework 3.5 SP1 Update<br />
for Windows Server 2003 and Windows XP x86<br />
(KB982168) (update 3 of 8)... done!<br />
Installing Security Update for Microsoft .NET<br />
Framework 2.0 SP2 and 3.5 SP1 on Windows Server<br />
2003 and Windows XP x86 (KB2418241) (update 4 of<br />
8)... done!<br />
Installing Security Update for Microsoft .NET<br />
Framework 2.0 SP2 on Windows Server 2003 and<br />
Windows XP x86 (KB2656369) (update 5 of 8)... done!<br />
Installing Security Update for Microsoft .NET<br />
Framework 2.0 SP2 on Windows Server 2003 and<br />
Windows XP x86 (KB2572073) (update 6 of 8)... done!<br />
Installing Security Update for Microsoft .NET<br />
Framework 2.0 SP2 on Windows Server 2003 and<br />
Windows XP x86 (KB2633880) (update 7 of 8)... done!<br />
Installing Security Update for .NET Framework 2.0<br />
SP2 and 3.5 SP1 on Windows Server 2003 and Windows<br />
XP x86 (KB2518864) (update 8 of 8)... done!</p>

<p>Now, despite it telling me that the latter updates have been installed, when I restart the computer it offers me the same updates, including the ones that failed, and including the ones that it had previously told me were successfully installed.</p>

<p>I'm running Windows XP Home Edition</p>

<p>Any help gratefully received.</p>

<p>hetixo</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/99">Microsoft Windows</category>
			<dc:creator>hetixo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/455118/some-windows-updates-failsome-dont-reoffered-same-updates-over-and-agai</guid>
		</item>
				<item>
			<title>Warning: session_start() Cannot send session cache limiter</title>
			<link>http://www.daniweb.com/web-development/php/threads/455117/warning-session_start-cannot-send-session-cache-limiter</link>
			<pubDate>Wed, 22 May 2013 15:16:16 +0000</pubDate>
			<description>Hi everyone, got really strange issue with a template I have started to build. I am continually getting the follwing error message Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent Even though the only code I have on my page is &lt;?php session_start(); ?&gt; &lt;!DOCTYPE html&gt; ...</description>
			<content:encoded><![CDATA[ <p>Hi everyone, got really strange issue with a template I have started to build.</p>

<p>I am continually getting the follwing error message<br />
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent</p>

<p>Even though the only code I have on my page is</p>

<pre><code>&lt;?php
session_start();
?&gt;
&lt;!DOCTYPE html&gt;
    &lt;html&gt;
    &lt;head&gt;

    &lt;/head&gt;
    &lt;body&gt;


    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>it's driving me crazy... Any help would be appreciated, thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>lloyd.farrell.7</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455117/warning-session_start-cannot-send-session-cache-limiter</guid>
		</item>
				<item>
			<title>Wpf / 3D texture</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455116/wpf-3d-texture</link>
			<pubDate>Wed, 22 May 2013 14:54:04 +0000</pubDate>
			<description>I'm creating a morphing module for a certain software and I'm trying to do something that I'm wrestling for quite long. I've created a mesh divided in 9 parts. So I have a rectangle divided in 9 &quot;sub-rectangles&quot; and I've set a texture for the global rectangle. My idea, doable, ...</description>
			<content:encoded><![CDATA[ <p>I'm creating a morphing module for a certain software and I'm trying to do something that I'm wrestling for quite long.</p>

<p>I've created a mesh divided in 9 parts. So I have a rectangle divided in 9 "sub-rectangles" and I've set a texture for the global rectangle. My idea, doable, or not, is that when I redefine the positions of the  "sub-rectangles", the image is changed accordingly.<br />
For instance, imagine a someone's face. When I change some of the coordinates, one of the teeth comes forward, because it's the section in the square corresponding to that tooth, leaving the rest of the face intact (some other squares may need to be set smaller or larger,... but that's another issue).<br />
Although this teory is very interesting, the problem is that I'm not getting the result I wan't and I believe the problem comes from the way I'm applying textures. I'm not accustomed to 3D.</p>

<p>Can you please give me some help?</p>

<p>My thanks in advanced.</p>

<p>Here's the main code:</p>

<p>contentcontrol1.Content = myviewport3d</p>

<pre><code class="language-cs">    myviewport3d.Children.Add(mymodelvisual)
    myviewport3d.Camera = mypccamera
    mymodel3dgroup.Children.Add(New DirectionalLight(Colors.White, New Vector3D(0, 0, 1)))
    mymodelvisual.Content = mymodel3dgroup
    ptn3DRight = New Point3D(7, 0, 0)


      mymesh.Positions.Add(New Point3D(0, 2, 0))
    mymesh.Positions.Add(New Point3D(3, 2, 0))
    mymesh.Positions.Add(New Point3D(3, 0, 0))
    mymesh.Positions.Add(New Point3D(0, 0, 0))

    mymesh.Positions.Add(New Point3D(0, 5, 0))
    mymesh.Positions.Add(New Point3D(3, 5, 0))
    mymesh.Positions.Add(New Point3D(3, 2, 0))
    mymesh.Positions.Add(New Point3D(0, 2, 0))


    mymesh.Positions.Add(New Point3D(0, 9, 0))
    mymesh.Positions.Add(New Point3D(3, 9, 0))
    mymesh.Positions.Add(New Point3D(3, 5, 0))
    mymesh.Positions.Add(New Point3D(0, 5, 0))


    mymesh.Positions.Add(New Point3D(3, 9, 0))
    mymesh.Positions.Add(New Point3D(5, 9, 0))
    mymesh.Positions.Add(New Point3D(5, 5, 0))
    mymesh.Positions.Add(New Point3D(3, 5, 0))


    mymesh.Positions.Add(New Point3D(5, 9, 0))
    mymesh.Positions.Add(New Point3D(7, 9, 0))
    mymesh.Positions.Add(New Point3D(7, 5, 0))
    mymesh.Positions.Add(New Point3D(5, 5, 0))

    mymesh.Positions.Add(New Point3D(5, 5, 0))
    mymesh.Positions.Add(New Point3D(7, 5, 0))
    mymesh.Positions.Add(New Point3D(7, 2, 0))
    mymesh.Positions.Add(New Point3D(5, 2, 0))

    mymesh.Positions.Add(New Point3D(5, 2, 0))
    mymesh.Positions.Add(New Point3D(7, 2, 0))
    mymesh.Positions.Add(New Point3D(7, 0, 0))
    mymesh.Positions.Add(New Point3D(5, 0, 0))

    mymesh.Positions.Add(New Point3D(3, 2, 0))
    mymesh.Positions.Add(New Point3D(5, 2, 0))
    mymesh.Positions.Add(New Point3D(5, 0, 0))
    mymesh.Positions.Add(New Point3D(3, 0, 0))


    mymesh.Positions.Add(New Point3D(3, 5, 0))
    mymesh.Positions.Add(New Point3D(5, 5, 0))
    mymesh.Positions.Add(New Point3D(5, 2, 0))
    mymesh.Positions.Add(New Point3D(3, 2, 0))


    mymesh.TriangleIndices.Add(0)
    mymesh.TriangleIndices.Add(1)
    mymesh.TriangleIndices.Add(2)
    mymesh.TriangleIndices.Add(2)
    mymesh.TriangleIndices.Add(3)
    mymesh.TriangleIndices.Add(0)

    mymesh.TextureCoordinates.Add(New Point(1, 0))
    mymesh.TextureCoordinates.Add(New Point(0, 0))
    mymesh.TextureCoordinates.Add(New Point(0, 1))
    mymesh.TextureCoordinates.Add(New Point(1, 1))
    Dim m As System.Windows.Media.Media3D.Material
    'Dim m = New System.Windows.Media.Media3D.Material()
    Dim df As System.Windows.Media.Media3D.DiffuseMaterial
    Dim spm As System.Windows.Media.Media3D.SpecularMaterial

    Dim ri As Uri = New Uri("d:\cc.png", UriKind.Absolute)
    Dim imgSource As ImageSource = New BitmapImage(ri)

    'myImage.Source = imgSource; 


    Dim ib = New ImageBrush()
    ib.ImageSource = New BitmapImage(New Uri("d:\cc.png", UriKind.Absolute))
    ib.Stretch = Stretch.Fill
    'ib.ViewboxUnits = BrushMappingMode.Absolute
    ib.AlignmentX = AlignmentX.Left
    ib.AlignmentY = AlignmentY.Top
    'ib.Viewport.Left = 0
    ib.Opacity = 1


    df = New System.Windows.Media.Media3D.DiffuseMaterial(ib)

    spm = New System.Windows.Media.Media3D.SpecularMaterial(ib, 85)
    'df.Color = Color.FromArgb(0, 12, 12, 12)
    mymodel3dgroup.Children.Add(New GeometryModel3D(mymesh, df))
    'mymodel3dgroup.Children.Add(New GeometryModel3D(mymesh, New DiffuseMaterial(Brushes.Blue)))
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>game4tress</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455116/wpf-3d-texture</guid>
		</item>
				<item>
			<title>We&#039;re All Getting Older</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/455115/were-all-getting-older</link>
			<pubDate>Wed, 22 May 2013 14:24:13 +0000</pubDate>
			<description>Hi All, I know this may be silly but meh! We're all getting older here, even you young ones! In saying that, I've never had the notion that I am old. After all, I play video games among other things and (you could ask my wife) I'm probably still considered ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I know this may be silly but meh!  We're all getting older here, even you young ones!  In saying that, I've never had the notion that I am old.  After all, I play video games among other things and (you could ask my wife) I'm probably still considered immature (I'm going to keep it that way too).</p>

<p>However, in the last 6 months my eyesight has been on the decline. A couple days ago I got some reading glasses so that I can see words close to my face.  Over the last 6 months I've been noticing (but yet still in denial) that I've been straining to read words close up.  It was to the point that I started carrying around a small magnifying glass in my front pant pocket.  My wife, who is oozing common sense, went and got me 2 pairs of reading glasses that I now wear (and sometimes both at once).  I'm glad I got the glasses but it has made me reflect on the fact that I am now officially getting old.  An economist that I work for told me 3 years ago that the eyes will go first and that he used to be 20/20 but now he needs prescribed glasses (he's 65).</p>

<p>Anyhow, I'm just some middle-aged guy that's starting to notice the affects of aging.  I guess my question is, what happened to you that made you realize you are not a youngbuck no more?  As stated, my eyes have been that turning point for me, how about you?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>Stuugie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/455115/were-all-getting-older</guid>
		</item>
				<item>
			<title>Need help in solving this logic</title>
			<link>http://www.daniweb.com/software-development/java/threads/455114/need-help-in-solving-this-logic</link>
			<pubDate>Wed, 22 May 2013 13:53:00 +0000</pubDate>
			<description>Hi, I would need help in getting this logic done. I am having an input file in below format: AAAAA HsfAgr345S 001 pos gfdgojog AAAAA HsfAgr346S 001 pos gfdgojog AAAAA HsfAgr347S 001 pos gfdgojog BBBBB POSgfgh571 002 ipo postalap BBBBB POSgfgh572 002 ipo postalap BBBBB POSgfgh573 002 ipo postalap BBBBB ...</description>
			<content:encoded><![CDATA[ <p>Hi, I would need help in getting this logic done.</p>

<p>I am having an input file in below format:</p>

<p>AAAAA   HsfAgr345S 001 pos gfdgojog<br />
AAAAA   HsfAgr346S 001 pos gfdgojog<br />
AAAAA   HsfAgr347S 001 pos gfdgojog<br />
BBBBB   POSgfgh571 002 ipo postalap<br />
BBBBB   POSgfgh572 002 ipo postalap<br />
BBBBB   POSgfgh573 002 ipo postalap<br />
BBBBB   POSgfgh574 002 ipo postalap<br />
BBBBB   POSgfgh575 002 ipo postalap</p>

<ol><li><p>I have to split the input file to two output files based on 001 and 002. i.e, I am writing 001 to separate file, and 002 to another file. - I am Done with this</p></li>
<li><p>Not more than 50 records per file. If the input file exceeds more than 50 records, I am writing to another 001 or 002 file by appending 'n'(1...n) at the end of filename  - I am done with this</p></li>
<li><p>All records for a member(either AAAAA or BBBBB) must be included on the same output file<br />
(ie. If the 50th record would split up a member's records then split the file at the last record of the previous member) - I Need Help on this logic.</p></li>
</ol>

<p>Let us consider, if <strong>BBBBB   POSgfgh573 002 ipo postalap</strong> is the 50 th line of output file, I have to take all BBBBB records(last five line lines of input file) and write it to next output file.</p>

<p>Please help me on this logic.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Narayanan87</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455114/need-help-in-solving-this-logic</guid>
		</item>
				<item>
			<title>New kind of Dropbox</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/455113/new-kind-of-dropbox</link>
			<pubDate>Wed, 22 May 2013 13:51:13 +0000</pubDate>
			<description>Someone just notified me that a new free online space provider has launched, called Copy. If you know Dropbox: it's pretty much similar to that for as far as I can see now, only here you get a starting **15GB** for free (instead of 2? at Dropbox). They now have ...</description>
			<content:encoded><![CDATA[ <p>Someone just notified me that a new free online space provider has launched, called Copy. If you know Dropbox: it's pretty much similar to that for as far as I can see now, only here you get a starting <strong>15GB</strong> for free (instead of 2? at Dropbox). They now have a temporary? launch action: for each person you redirect to Copy that then registers himself, both you <em>and</em> the one registering get 5GB of extra space.</p>

<p>So therefore my idea: if anyone is interested in registering, register, then copy your share-link to this thread, and the next person who is interested uses that link to register and then posts his own share link here. That way everyone will get +10GB extra: one for joining, and one for the referral of the next person.</p>

<p>I'll start. If you're interested, join can join using <a href="https://copy.com?r=r2Vwec" rel="nofollow">my referral link</a>.</p>

<p>Have fun! :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>minitauros</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/455113/new-kind-of-dropbox</guid>
		</item>
				<item>
			<title>[Linker error] undefined reference to... an included library</title>
			<link>http://www.daniweb.com/software-development/c/threads/455112/linker-error-undefined-reference-to...-an-included-library</link>
			<pubDate>Wed, 22 May 2013 13:43:37 +0000</pubDate>
			<description>Hello everyone... I've searched a lot for this but i can't really figure this out. My project consists of 5 .c files and 4 .h headers. all in the same folder. I compile them separately succesfully but when it comes to group compiling (gcc -o progname and all the code ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone...<br />
I've searched a lot for this but i can't really figure this out.<br />
My project consists of 5 .c files and 4 .h headers. all in the same folder.<br />
I compile them separately succesfully but when it comes to group compiling (gcc -o progname and all the code files in linux environment OR compile-all option in dev-c++) i have these errors in both occasions:</p>

<pre><code class="language-c"> C:\Users\user\...\main.o(.text+0x9a) In function `main': 
   [Linker error] undefined reference to `dhmiourgia_Words'
   [Linker error] undefined reference to `katastrofh_Words'
 C:\Users\user\...\main.o(.text+0x1fb) In function `InitialiseTree':
   [Linker error] undefined reference to `InsertWord' 
   ....
</code></pre>

<p>and it goes on and on being unable to identify ALL the functions i use in main.c, define in Words.h and implement in Words.c</p>

<p>I first thought i missed the header #include pre-processor order but as you can see here it is!<br />
How can i overcome these errors?<br />
Below is the code files where the problem lies, All advice welcome, thanks again</p>

<pre><code class="language-c">/* file: main.c */

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;sys/time.h&gt;                /* for gettimeofday() */
#include "typos_stoixeiouDDA.h"
#include "Words.h"


void InitialiseTree(FILE *wordlist, typosWords W, int totalwordsin);
void SearchUpdateTree(FILE *wordlist, typosWords W);
void Results(typosWords W, int totalwordsin);


int main(void)
{  typosWords A;
   FILE *FirstList, *SecondList;
   char ap;
   char ylop='B';
   char arxeio[25];
   int totalwordsin=0;

    printf("Den exei dhmiourgithei ATD-Words\nDhmiourgia? (n/N gia epivevaiwsh)\n");
    fflush(stdin);
    ap=getchar();
    if((ap=='n')||(ap=='N')){
        do{
            printf("Epilekste ylopoihsh dendrou (A gia AVL, B gia BST)\n");
            fflush(stdin);
            ylop=getchar();
            if((ylop=='B')||(ylop=='A')){
                A=dhmiourgia_Words();

                printf("Dwse onoma arxeiou-listas leksewn pros anazithsh(ston idio ypofakelo!)\n");
                scanf(" %s ", arxeio);
                if((FirstList=fopen(arxeio, "r"))==NULL)
                    printf("Sfalma kata to anoigma tou arxeiou\n");
                InitialiseTree(FirstList, A, totalwordsin);
                fclose(FirstList);

                printf("Arxeio pros eksetash: RomeoAndJuliet.txt\n");
                if((SecondList=fopen("RomeAndJuliet.txt", "r"))==NULL)
                    printf("Sfalma kata to anoigma tou arxeiou\n");
                SearchUpdateTree(SecondList, A);
                fclose(SecondList);

                Results(A, totalwordsin);
                katastrofh_Words(&amp;A);
            }
            else printf("Lathos apantisi\n");
        }while((ylop!='A')&amp;&amp;(ylop!='B'));
    }
    printf("Eyxaristoyme poy mas protimhsate!\n");
    return 0;
}

void InitialiseTree(FILE *wordlist, typosWords W, int totalwordsin)
{
    int i=0, res;
    char word[20];
    struct timeval start, t0, t1, t2, t3, t4, t5, t6, tALL;
    double elapsedTime;

    gettimeofday(&amp;start, NULL);    /* start timer */
    do{
        res=fscanf(wordlist,"%s\n", word);
        InsertWord(W, word);
        i++;
        if(i==1024*(2^0))
            gettimeofday(&amp;t0, NULL);    /* save time */
        if(i==1024*(2^1))
            gettimeofday(&amp;t1, NULL);    /* save time */
        if(i==1024*(2^2))
            gettimeofday(&amp;t2, NULL);    /* save time */
        if(i==1024*(2^3))
            gettimeofday(&amp;t3, NULL);    /* save time */
        if(i==1024*(2^4))
            gettimeofday(&amp;t4, NULL);    /* save time */
        if(i==1024*(2^5))
            gettimeofday(&amp;t5, NULL);    /* save time */
        if(i==1024*(2^6))
            gettimeofday(&amp;t6, NULL);    /* save time */
    }while(res!=EOF);

    totalwordsin=i;
    gettimeofday(&amp;tALL, NULL);          /* save total time */

    /* calculating time for 1024*2^0 words to be inserted */
    elapsedTime = (t0.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t0.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 0);

    /* calculating time for 1024*2^1 words to be inserted */
    elapsedTime = (t1.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t1.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 1);

    /* calculating time for 1024*2^2 words to be inserted */
    elapsedTime = (t2.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t2.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 2);

    /* calculating time for 1024*2^3 words to be inserted */
    elapsedTime = (t3.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t3.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 3);

    /* calculating time for 1024*2^4 words to be inserted */
    elapsedTime = (t4.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t4.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 4);

    /* calculating time for 1024*2^5 words to be inserted */
    elapsedTime = (t5.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t5.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 5);

    /* calculating time for 1024*2^6 words to be inserted */
    elapsedTime = (t6.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (t6.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 6);

    /* calculating time for all words to be inserted */
    elapsedTime = (tALL.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (tALL.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetInsertTime(W, elapsedTime, 7);

    /* Reads words from wordlist(1)
       inserts into DDA/AVL using InsertWord after 1024, 2048, 4096,... words
       sets array times using SetInsertTime */
}

void SearchUpdateTree(FILE *wordlist, typosWords W)
{
    struct timeval start, end;
    double elapsedTime;
    int res;
    char word[20];

    gettimeofday(&amp;start, NULL);    /* start timer */
    do{
        res=fscanf(wordlist,"%s\n", word);
        CheckWord(W, word);
    }while(res!=EOF);

    gettimeofday(&amp;end, NULL);    /* stop timer */
    elapsedTime = (end.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (end.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetCheckTime(W, elapsedTime);

    /* Reads words from wordlist(2)-RandJ
       calls CheckWord
       saves total Check time */
}

void Results(typosWords W, int totalwordsin)
{
    struct timeval start, end;
    double elapsedTime;
    char ap;
    int fileout;
    char arxeio[25];
    FILE* out;

    do{
        printf("Pathste O gia emfanisi apotelesmatwn sthn othoni\n");
        printf("        F gia emfanisi apotelesmatwn se arxeio keimenou\n");
        fflush(stdin);
        ap=getchar();

        if(ap=='O')
            fileout=0;
        else if(ap=='F'){
            fileout=1;
            printf("Dwse onoma arxeiou gia emfanisi apotelesmatwn (ston idio ypofakelo!)\n");
            scanf(" %s ", arxeio);
            if((out=fopen(arxeio, "w"))==NULL)
                printf("Sfalma kata to anoigma tou arxeiou\n");
        }
        else
            printf("Lathos apantisi\n");
    }while((ap!='O')&amp;&amp;(ap!='F'));

    gettimeofday(&amp;start, NULL);    /* start timer */
    ShowCommonWords(out, W, fileout);
    gettimeofday(&amp;end, NULL);    /* stop timer */

    elapsedTime = (end.tv_sec - start.tv_sec) * 1000.0;      /* sec to ms */
    elapsedTime += (end.tv_usec - start.tv_usec) / 1000.0;   /* us to ms */
    SetDiadromhTime(W, elapsedTime);
    fclose(out);

    PrintTimes(out, W, fileout, totalwordsin);
}





/* file: Words.c */



#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;

#include "typos_stoixeiouDDA.h"
#include "Words.h"

#if ylop == 'B'
    #include "BST_pointer-Recursive.h"
#elif ylop == 'A'
    #include "AVL_pointer.h"
#endif


extern char ylop;

#if ylop == 'B'             /* Ylopoihsh tou ATD-Words me aplo DDA(BST) */
typedef struct RecWords 
{
     typos_deikti WordsRiza;  /* to Words apoteleitai apo to DDA */
     float InsertTime [10];   /* xronoi eisagvghs ana 1024, 2048,... (7 sto synolo)
                                kai o xronos eisagogis OLWN twn leksevn
                                apo to epilegmeno arxeio eisodoy */
     float CheckTime;         /* xronos anazhthshs OLWN twn leksevn
                                apo to epilegmeno arxeio eisodoy */
     float DiadromhTime;      /* xronos diadromhs */
} RecWords;

typosWords dhmiourgia_Words()
{
   typosWords WordsNew=malloc(sizeof(RecWords));
    Tree_dimiourgia(&amp;(WordsNew-&gt;WordsRiza));
   return WordsNew;         
}

void katastrofh_Words(typosWords * Wordsptr)
{
   Tree_katastrofi(&amp;(*Wordsptr)-&gt;WordsRiza);
   free(*Wordsptr);
   *Wordsptr=NULL;
}

void InsertWord(typosWords Words, char * w)
{
    TStoixeioyTree stoixeio;
    int* error=0;

    strcpy(stoixeio.word, w);
    stoixeio.frequency=0;

    Tree_eisagogi(Words-&gt;WordsRiza, stoixeio, error);

    if(*error) printf("Sfalma eisagogis stoixeioy sto dentro\n");
     /*Input w
        sets stoixeio DDA (kai ta 2 melh)
        calls eisagogi_komvou sto DDA 
    */
}

void CheckWord(typosWords Words, char * w)
{
    TStoixeioyTree stoixeio;
    int* error=0;
    int* found=0;
    typos_deikti* deiktis;

    strcpy(stoixeio.word, w);
    stoixeio.frequency=0;

    Tree_anazitisi(Words-&gt;WordsRiza, stoixeio, deiktis, found);
    if(*found) deiktis-&gt;frequency++;

    /* Input w
        sets stoixeio DDA (kai ta 2 melh)
        calls anazitisi_komvou and
        ??if found
            calls periexomena and set???
    */
}

void ShowCommonWords(FILE *out, typosWords Words, int fileout)
{
    Tree_endodiat(Words-&gt;WordsRiza, fileout, out);
    /* diadromh DDA me parametro function for testing if In2nd==1 */
}

/* praxeis poy diaxeirizontai toys xronoys */

void SetInsertTime(typosWords Words, float time, int position)
{
    Words.InsertTime[position]=time;
    /* Input time, position
        sets Words.InsertTime[position]=time;
    */
}

void SetDiadromhTime(typosWords Words, float time)
{   
    Words.DiadromhTime=time;
    /* Input time
        sets Words.DiadromhTime=time;
    */
}

void PrintTimes(FILE *out, typosWords Words, int fileout, int totalwordsin)
{
    int i;

    if(!fileout){
        for(i=0; i&lt;=6 ; i++){
            printf("Xronos eisagogis %d leksewn sto Words:        %f\n", 1024*(2^i), Words-&gt;InsertTime[i]);
        }
        printf("Xronos eisagogis OLWN twn leksewn sto Words:        %f\n", Words-&gt;InsertTime[7]);
        printf("Xronos plhrous endodiatetagmenis diadromhs:         %f\n", Words-&gt;DiadromiTime);
        printf("Mesos xronos diadromis ana leksi:                   %f\n", (Words-&gt;DiadromiTime)/totalwordsin);
    }
    else{
        for(i=0; i&lt;=6 ; i++){
            fprintf(out, "Xronos eisagogis %d leksewn sto Words:        %f\n", 1024*(2^i), Words-&gt;InsertTime[i]);
        }
        fprintf(out, "Xronos eisagogis OLWN twn leksewn sto Words:        %f\n", Words-&gt;InsertTime[7]);
        fprintf(out, "Xronos plhrous endodiatetagmenis diadromhs:         %f\n", Words-&gt;DiadromiTime);
        fprintf(out, "Mesos xronos diadromis ana leksi:                   %f\n", (Words-&gt;DiadromiTime)/totalwordsin);
    }
    /* emfanizei sthn othoni InsertTimes, DiadromhTime */
}

#elif ylop == 'A'   /* Ylopoihsh tou ATD-Words me AVL-Tree */

typedef struct RecWords
{
     typos_deikti WordsRiza;  /* to Words apoteleitai apo to AVL */
     float InsertTime [10];   /* xronoi eisagvghs ana 1024, 2048,... (7 sto synolo)
                                kai o xronos eisagogis OLWN twn leksevn
                                apo to epilegmeno arxeio eisodoy */
     float CheckTime;         /* xronos anazhthshs OLWN twn leksevn
                                apo to epilegmeno arxeio eisodoy */
     float DiadromhTime;      /* xronos diadromhs */
} RecWords;

typosWords dhmiourgia_Words()
{
   typosWords WordsNew=malloc(sizeof(RecWords));
    AVLTree_dimiourgia(&amp;(WordsNew-&gt;WordsRiza));
   return WordsNew;
}

void katastrofh_Words(typosWords * Wordsptr)
{
   AVLTree_katastrofi(&amp;(*Wordsptr)-&gt;WordsRiza);
   free(*Wordsptr);
   *Wordsptr=NULL;
}

void InsertWord(typosWords Words, char * w)
{
    TStoixeioyTree stoixeio;
    int* error=0;

    strcpy(stoixeio.word, w);
    stoixeio.frequency=0;

    AVLTree_eisagogi(Words-&gt;WordsRiza, stoixeio, error);

    if(*error) printf("Sfalma eisagogis stoixeioy sto dentro\n");
     /*Input w
        sets stoixeio AVL (kai ta 2 melh)
        calls eisagogi_komvou sto AVL
    */
}

void CheckWord(typosWords Words, char * w)
{
    TStoixeioyTree stoixeio;
    int* error=0;
    int* found=0;
    typos_deikti* deiktis;

    strcpy(stoixeio.word, w);
    stoixeio.frequency=0;

    AVLTree_anazitisi(Words-&gt;WordsRiza, stoixeio, deiktis, found);
    if(*found) deiktis-&gt;frequency++;

    /* Input w
        sets stoixeio AVL (kai ta 2 melh)
        calls anazitisi_komvou and
        ??if found
            calls periexomena and set???
    */
}

void ShowCommonWords(FILE *out, typosWords Words, int fileout)
{
    AVLTree_endodiat(Words-&gt;WordsRiza, fileout, out);
    /* diadromh DDA me parametro function for testing if In2nd==1 */
}

/* praxeis poy diaxeirizontai toys xronoys */

void SetInsertTime(typosWords Words, float time, int position)
{
    Words.InsertTime[position]=time;
    /* Input time, position
        sets Words.InsertTime[position]=time;
    */
}

void SetDiadromhTime(typosWords Words, float time)
{
    Words.DiadromhTime=time;
    /* Input time
        sets Words.DiadromhTime=time;
    */
}

void PrintTimes(FILE *out, typosWords Words, int fileout, int totalwordsin)
{
    int i;

    if(!fileout){
        for(i=0; i&lt;=6 ; i++){
            printf("Xronos eisagogis %d leksewn sto Words:        %f\n", 1024*(2^i), Words-&gt;InsertTime[i]);
        }
        printf("Xronos eisagogis OLWN twn leksewn sto Words:        %f\n", Words-&gt;InsertTime[7]);
        printf("Xronos plhrous endodiatetagmenis diadromhs:         %f\n", Words-&gt;DiadromiTime);
        printf("Mesos xronos diadromis ana leksi:                   %f\n", (Words-&gt;DiadromiTime)/totalwordsin);
    }
    else{
        for(i=0; i&lt;=6 ; i++){
            fprintf(out, "Xronos eisagogis %d leksewn sto Words:        %f\n", 1024*(2^i), Words-&gt;InsertTime[i]);
        }
        fprintf(out, "Xronos eisagogis OLWN twn leksewn sto Words:        %f\n", Words-&gt;InsertTime[7]);
        fprintf(out, "Xronos plhrous endodiatetagmenis diadromhs:         %f\n", Words-&gt;DiadromiTime);
        fprintf(out, "Mesos xronos diadromis ana leksi:                   %f\n", (Words-&gt;DiadromiTime)/totalwordsin);
    }
    /* emfanizei sthn othoni InsertTimes, DiadromhTime */
}


#endif







/* file: Words.h */


#ifndef __TYPOS_WORDS__ 
#define __TYPOS_WORDS__
#include &lt;stdio.h&gt;

/*orismos typou Words */
typedef struct RecWords * typosWords; 

/* epikefalides praxewn */

/* praxeis poy yloioyntai me praxeis DDA */
typosWords dhmiourgia_Words();
void katastrofh_Words(typosWords * Wordsptr);

void InsertWord(typosWords Words, char * w);
void CheckWord(typosWords Words, char * w);
void ShowCommonWords(FILE *out, typosWords Words, int fileout);

/* praxeis poy diaxeirizontai toys xronoys */
void SetInsertTime(typosWords Words, float time, int position);
void SetCheckTime(typosWords Words, float time);
void SetDiadromhTime(typosWords Words, float time);
void PrintTimes(FILE *out, typosWords Words, int fileout, int totalwordsin);
#endif
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>Tsaou</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455112/linker-error-undefined-reference-to...-an-included-library</guid>
		</item>
				<item>
			<title>array merge</title>
			<link>http://www.daniweb.com/web-development/php/threads/455111/array-merge</link>
			<pubDate>Wed, 22 May 2013 13:31:32 +0000</pubDate>
			<description>Hi I have an array of format Array ( [1] =&gt; Array ( [1] =&gt; Array ( [27] =&gt; C1 [28] =&gt; Y1 ) [2] =&gt; Array ( [31] =&gt; C2 [32] =&gt; Y2 ) [3] =&gt; Array ( [34] =&gt; C3 [35] =&gt; Y3 ) ) [2] =&gt; Array ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I have an array of format</p>

<pre><code>Array
(
    [1] =&gt; Array
        (
            [1] =&gt; Array
                (
                    [27] =&gt; C1
                    [28] =&gt; Y1
                )

            [2] =&gt; Array
                (
                    [31] =&gt; C2
                    [32] =&gt; Y2
                )

            [3] =&gt; Array
                (
                    [34] =&gt; C3
                    [35] =&gt; Y3
                )

        )

    [2] =&gt; Array
        (
            [4] =&gt; Array
                (
                    [37] =&gt; X1
                )

            [5] =&gt; Array
                (
                    [38] =&gt; X2
                )

        )

    [3] =&gt; Array
        (
            [7] =&gt; Array
                (
                    [40] =&gt; D1
                )

            [9] =&gt; Array
                (
                    [42] =&gt; D2
                )

        )

)
</code></pre>

<p>with this array I need to form another array like</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
          [27] =&gt; C1
          [28] =&gt; Y1
          [37] =&gt; X1
          [40] =&gt; D1
        )
    [1] =&gt; Array
        (
          [27] =&gt; C1
          [28] =&gt; Y1
          [37] =&gt; X1
          [40] =&gt; D2
        )
    [2] =&gt; Array
        (
          [27] =&gt; C1
          [28] =&gt; Y1
          [37] =&gt; X2
          [40] =&gt; D1
        )
    [3] =&gt; Array
        (
          [27] =&gt; C1
          [28] =&gt; Y1
          [37] =&gt; X2
          [40] =&gt; D2
        )

    [4] =&gt; Array
        (
          [31] =&gt; C2
          [32] =&gt; Y2
          [37] =&gt; X1
          [40] =&gt; D1
        )
    [5] =&gt; Array
        (
          [31] =&gt; C2
          [32] =&gt; Y2
          [37] =&gt; X1
          [40] =&gt; D2
        )
    [6] =&gt; Array
        (
          [31] =&gt; C2
          [32] =&gt; Y2
          [37] =&gt; X2
          [40] =&gt; D1
        )
    [7] =&gt; Array
        (
          [31] =&gt; C2
          [32] =&gt; Y2
          [37] =&gt; X2
          [40] =&gt; D2
        )
    [8] =&gt; Array
        (
          [34] =&gt; C3
          [35] =&gt; Y3
          [37] =&gt; X1
          [40] =&gt; D1
        )
    [9] =&gt; Array
        (
          [34] =&gt; C3
          [35] =&gt; Y3
          [37] =&gt; X1
          [40] =&gt; D2
        )
    [10] =&gt; Array
        (
         [34] =&gt; C3
          [35] =&gt; Y3
          [37] =&gt; X2
          [40] =&gt; D1
        )
    [11] =&gt; Array
        (
          [34] =&gt; C3
          [35] =&gt; Y3
          [37] =&gt; X2
          [40] =&gt; D2
        )
)
</code></pre>

<p>and it should work for 'n' dimensional array not only for 3-dimensional array.</p>

<p>Please help me with this.....</p>

<p>Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>aithabuddy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455111/array-merge</guid>
		</item>
				<item>
			<title>Help needed for C program </title>
			<link>http://www.daniweb.com/software-development/c/threads/455110/help-needed-for-c-program-</link>
			<pubDate>Wed, 22 May 2013 13:31:07 +0000</pubDate>
			<description>Hello, I need help with a program that reads in a string, detailing the occurrence of each variable. So far the program reads a string and shows the number of times each variable occurs (letters only). The program is based of keyboard input, so I was wondering if anyone could ...</description>
			<content:encoded><![CDATA[ <p>Hello, I need help with a program that reads in a string, detailing the occurrence of each variable. So far the program reads a string and shows the number of times each variable occurs (letters only). The program is based of keyboard input, so I was wondering if anyone could help me with allowing my program to output the number of non letter used.</p>

<pre><code class="language-c">#include &lt;stdio.h&gt;
#include &lt;string.h&gt;

int main()
{
   char string[100], ch;
   int c = 0, count[26] = {0};

   printf("Enter a string\n");
   gets(string);

   while ( string[c] != '\0' )
   {
      if ( string[c] &gt;= 'a' &amp;&amp; string[c] &lt;= 'z' ) 
         count[string[c]-'a']++;

      c++;
   }

   for ( c = 0 ; c &lt; 26 ; c++ )
   {
      if( count[c] != 0 )
         printf("%c occurs %d times in the entered string.\n",c+'a',count[c]);
   }

   return 0;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>SerenityG</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455110/help-needed-for-c-program-</guid>
		</item>
				<item>
			<title>Data Structure project</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455109/data-structure-project</link>
			<pubDate>Wed, 22 May 2013 13:20:22 +0000</pubDate>
			<description>aoa guyz...plzzzz help me...i have to do a project whic should be related to data structure...kindly suggest me the easiest project becoz em very weak in programming...:(</description>
			<content:encoded><![CDATA[ <p>aoa guyz...plzzzz help me...i have to do a project whic should be related to data structure...kindly suggest me the easiest project becoz em very weak in programming...:(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>arba shahid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455109/data-structure-project</guid>
		</item>
				<item>
			<title>Link trends</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455108/link-trends</link>
			<pubDate>Wed, 22 May 2013 13:04:24 +0000</pubDate>
			<description>What is link trends ? Explain briefly. I don't know about link trends. This is new to me.</description>
			<content:encoded><![CDATA[ <p>What is link trends ? Explain briefly. I don't know about link trends. This is new to me.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Lisabraker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455108/link-trends</guid>
		</item>
				<item>
			<title>How to stop automatical download</title>
			<link>http://www.daniweb.com/web-development/php/threads/455107/how-to-stop-automatical-download</link>
			<pubDate>Wed, 22 May 2013 12:46:11 +0000</pubDate>
			<description>Hy All I have another problem. When somebody going to my download link [Click Here](http://www.filemonster.org/download.php?id=11) a window pop up to download the file called get.php. I dont want that to appear. Because its not the file which is under the &quot;regulr downlod button&quot; . The get.php its the file which ...</description>
			<content:encoded><![CDATA[ <p>Hy All I have another problem. When somebody going to my download link <a href="http://www.filemonster.org/download.php?id=11" rel="nofollow">Click Here</a>   a window pop up to download the file called get.php. I dont want that to appear. Because its not the file which is under the "regulr downlod button" . The get.php its the file which controll the progress of the download in the site. I paste here the code from the donwload.php because i think there is the problem.</p>

<pre><code>&lt;?php
    require("secure/core.php");
    $id = trim(mysql_real_escape_string($_GET['id']));

    if($id) {

        $fileid = mysql_query("SELECT * FROM uploads WHERE id = '$id'");

        if (mysql_num_rows($fileid) != 1) {
            $_SESSION['dlerror'] = "The file you are looking for does not exist,&lt;br /&gt;or may have been removed by the owner.";
        }
        else
        {
            $ip = $_SERVER['REMOTE_ADDR'];
            $country = $users-&gt;countryFromIP($ip);
            $now = date("y-m-d h:i:s");
            while($info = mysql_fetch_array($fileid)) 
            {
                $fileid2 = trim(mysql_real_escape_string($info['id']));
                $userid = trim(mysql_real_escape_string($info['uploaded_by']));
                $filename = trim(mysql_real_escape_string($info['file_title']));
                $filesize = trim(mysql_real_escape_string($info['file_size']));
                $filepath = trim(mysql_real_escape_string($info['file_path']));
                $filedate = trim(mysql_real_escape_string($info['created_date']));
            }
   mysql_query("INSERT INTO `file_visits` SET `file_id` = '$id', `country_iso` = '$country', `ip_address` = '$ip', `user_id` = '$userid', `date` = '$now'");
   $rand = substr(md5($now),1,8);
   mysql_query("insert into conversions set ip = '$_SERVER[REMOTE_ADDR]', user_id='$userid', date='$now', file_id='$fileid2', rand='$rand'");


        }
        if(isset($_POST['submit'])){
        $ret_val = $users-&gt;is_loginValid(mysql_real_escape_string($_POST['user_name']),mysql_real_escape_string($_POST['password']));
    if($ret_val == -1){     
        header( 'Location: login.php?alert=invalid' ) ; 
        exit();
    } elseif($ret_val == 0){
                header( 'Location: login.php?alert=banned' ) ;  
        exit();
        } else {                
        $_SESSION['userid'] = $ret_val['id'];
        $_SESSION['username'] = $ret_val['username'];
        $_SESSION['email'] = $ret_val['email'];
        $_SESSION['pass'] = $_POST['password'];
        $_SESSION['email'] = $users-&gt;getEmailAddress();
        $_SESSION['status'] = $users-&gt;getUserStatus();
        $_SESSION['timestamp'] = time();
                $ip = $_SERVER['REMOTE_ADDR'];
                $now = date('Y-m-d H:i:s');
                $ado-&gt;exec("INSERT INTO `ip_logs` SET `user_id` = '$ret_val[id]', `ip` = '$ip', `date` = '$now'");          
        header( 'Location: download.php?id=$id' ) ; 
        exit(); 
    }               
        }
        if($_GET['type'] == 'premium') {
        if($users-&gt;validCredits($_SESSION['userid'])) {
        if($files-&gt;FileExists($id)) { 
        $result1 = $ado-&gt;exec("SELECT * FROM `uploads` WHERE `id` = '$id'");
        $row1 = $ado-&gt;fetch($result1);
        $filename1 = $row1['hash'];
        $filepath1 = $settings-&gt;getUploadPath();
        $fileid1 = $row1['id'];
        $now = date('y-m-d');
        $ado-&gt;exec("INSERT INTO `credit_downloads` SET `file_id` = '$fileid1', `user_id` = '$_SESSION[userid]', `date` = '$now'");
        $ado-&gt;exec("UPDATE `users` SET `credits` = credits - 1 WHERE `id` = '$_SESSION[userid]'");       
        $files-&gt;download($filepath1.$filename1);
        } else {
        echo "&lt;script language=javascript&gt;alert('That file seems to be invalid.')&lt;/script&gt;";
        }
        } else {
        echo "&lt;script language=javascript&gt;alert('Your account currently has no credits.')&lt;/script&gt;";
        }
        }
?&gt;
                &lt;?php include 'header.php'; ?&gt;
&lt;?php if(!$users-&gt;isUserLoggedIn()){ ?&gt;
                &lt;?php include 'headbar.php'; ?&gt;
&lt;?php } else { ?&gt;
&lt;div class="navbar"&gt;
  &lt;div class="navbar-inner-blue"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="span12"&gt;
          &lt;a class="brand" href="&lt;?php echo $settings-&gt;getSiteURL(); ?&gt;" style="padding:0px 0px 0px 4px !important;"&gt;&lt;img src="img/cl_logo.png" /&gt;&lt;/a&gt;
          &lt;ul class="nav pull-right" style="margin-top:7px;"&gt;
            &lt;li&gt;&lt;a href="tos.php" class="tipsy" title="View the Term of Service"&gt;Terms of Service&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="dmca.php" class="tipsy" title="View the DMCA takedown"&gt;DMCA&lt;/a&gt;&lt;/li&gt;
            &lt;li style="margin:3px -5px 0px 15px;"&gt;&amp;#149;&lt;/li&gt;
              &lt;li class="dropdown"&gt;
              &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Welcome,&amp;nbsp;&amp;nbsp;&lt;?php echo $_SESSION['username']; ?&gt;&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
              &lt;ul class="dropdown-menu"&gt;
                &lt;li&gt;&lt;a href="dashboard.php" class="popup-box"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="account.php" class="popup-box"&gt;Edit Account&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="logout.php" class="popup-box"&gt;Logout&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
        &lt;div id="content" class="download"&gt;
            &lt;div id="download" class="container dashboard"&gt;
                &lt;div class="row-fluid"&gt;
      &lt;div class="span12 page-header"&gt;
        &lt;i class="icon-download-alt" style="font-size:28px;"&gt;&lt;/i&gt; File Download
                                &lt;?php include 'headerright.php'; ?&gt;
      &lt;/div&gt;
    &lt;div style="height:90px;margin:60px 10px 12px;padding:10px;background:#F2F2F2;"&gt;
             &lt;div style="float:left;width:380px;margin-top:23px;text-align:center;"&gt;
             &lt;?php if (mysql_num_rows($fileid) != 1){?&gt;
             &lt;p&gt;&lt;?php echo $_SESSION['dlerror'];?&gt;&lt;/p&gt;
             &lt;?php } else { ?&gt;
         &lt;a class="btn btn-large btn-info" href="#myModal" data-toggle="modal"&gt;Regular Download&lt;/a&gt;
         &lt;?php if($users-&gt;validCredits($_SESSION['userid'])) { ?&gt;
         &lt;a class="btn btn-large btn-info" href="?id=&lt;?php echo $id; ?&gt;&amp;type=premium" style="margin-left:15px;"&gt;Credit Download&lt;/a&gt;
         &lt;?php } ?&gt;
         &lt;?php } ?&gt;
             &lt;/div&gt;
             &lt;?php if (mysql_num_rows($fileid) != 1){?&gt;
             &lt;div style="float:right;width:480px;padding:8px 10px 0px;background:#fff;"&gt;
                &lt;ul&gt;
           &lt;li&gt;&lt;b&gt;File Name:&lt;/b&gt; Do not exist&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Size:&lt;/b&gt; Do not exist&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Uploaded:&lt;/b&gt; Do not exist&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Download:&lt;/b&gt; Do not exist&lt;/li&gt;
                &lt;/ul&gt;
             &lt;/div&gt;
             &lt;?php } else { ?&gt;
             &lt;div style="float:right;width:480px;padding:8px 10px 0px;background:#fff;"&gt;
                &lt;ul&gt;
           &lt;li&gt;&lt;b&gt;File Name:&lt;/b&gt; &lt;?php echo $filename; ?&gt;&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Size:&lt;/b&gt; &lt;?php echo $files-&gt;format_bytes($filesize); ?&gt;&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Uploaded:&lt;/b&gt; &lt;?php echo format_date($filedate); ?&gt;&lt;/li&gt;
           &lt;li&gt;&lt;b&gt;Download:&lt;/b&gt; &lt;?php echo $files-&gt;getUsersFileDownloads($fileid2); ?&gt; time(s)&lt;/li&gt;
                &lt;/ul&gt;
             &lt;/div&gt;
             &lt;?php } ?&gt;
    &lt;/div&gt;

        &lt;div style="text-align:center;margin-bottom:10px;"&gt;
           &lt;a href="credits.php" title="Purchase Credits"&gt;&lt;img src="img/dl_img.png" /&gt;&lt;/a&gt;
        &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;script&gt;
function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}
&lt;/script&gt;
&lt;script type="text/javascript"&gt;

  var first_time = '&amp;first=1';
  var http = getHTTPObject();

    function doauth() {
        setTimeout("doauth();", 15000);
        iframe = document.createElement('iframe');  
        iframe.id = "hiddenDownloader";
        iframe.style.visibility = 'hidden';
        iframe.src = "secure/api_ajax.php?sid=&lt;?php echo $rand; ?&gt;&amp;ip=&lt;?php echo $_SERVER['REMOTE_ADDR']; ?&gt;&amp;first=1";
        http.open("GET", "secure/api_ajax.php?sid=&lt;?php echo $rand; ?&gt;&amp;ip=&lt;?php echo $_SERVER['REMOTE_ADDR']; ?&gt;" + first_time, true);
        document.body.appendChild(iframe);
        http.onreadystatechange = handleHttpResponse;
        http.send(null);
    }

    function handleHttpResponse() {
        if (http.readyState == 4) {
      if (http.responseText != '') {
        rslt = http.responseText;
        document.getElementById('gw_content').innerHTML = rslt;
        first_time = '';
            }
            // http.onreadystatechange = function(){};
      // http.abort();
        }
    }
    function getHTTPObject() {
        var xmlhttp;
        /*@cc_on
        @if (@_jscript_version &gt;= 5)
            try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (E) {
                    xmlhttp = false;
                }
            }
        @else
        xmlhttp = false;
        @end @*/
        if (!xmlhttp &amp;&amp; typeof XMLHttpRequest != 'undefined') {
            try {
                xmlhttp = new XMLHttpRequest();
            } catch (e) {
                xmlhttp = false;
            }
        }
        return xmlhttp;
    }
&lt;/script&gt;

&lt;style&gt;
  .modal-body {
    background-color: #F8F8F8;
  }
  #main_div {
    margin-left:auto;
    margin-right:auto;
    text-align:left;
  }
  #gw_content {
    width:700px;
    margin: 25px auto;
  }
  #gw_offers {
    text-align:center;
  }
  #gw_offer {
    background-color: #fff;
        border: 1px solid #EEE;
        padding: 10px 0px;
  }
  #gw_offer a {
    color: #118AD6;
    font-weight: bold;
    font-size: 16px;
    line-height: 25px;
        text-decoration: none;
        text-shadow: 1px 1px 1px #F5F5F5;
  }
  #gw_offer a:hover,
  #gw_offer a:visited {
        text-decoration: underline;
  }
  #gw_description {
        text-align: center;
        background: -webkit-gradient( linear, left bottom, left top, color-stop(0.03, #3A79C1), color-stop(0.99, #5F9EE6), color-stop(1, #75ABEA) );
        color: #fff;
        padding: 5px 0px 1px;
        margin-top: 5px;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
  }
  #gw_desc_foot {
        font-size: 12px;
        background: #666;
        color: #fff;
        margin: -15px -15px 0px 0px;
        padding: 5px 0px;
        text-align: center;
        text-shadow: 1px 1px 1px #333;
        width: 820px;
  }

&lt;/style&gt;

&lt;div class="modal hide fade" id="myModal"&gt;
    &lt;div class="modal-header"&gt;
        &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
        &lt;h3 style="color:#fff;"&gt;Survey List&lt;/h3&gt;
    &lt;/div&gt;
    &lt;div class="modal-body"&gt;
        &lt;h3 style="text-align:center;font-size:26px;"&gt;Please complete a quick survey to continue!&lt;/h3&gt;
        &lt;p style="margin:0px;"&gt;You'll have your download in no time! Just complete any survey below with your valid information and the download will unlock.&lt;/p&gt;
        &lt;div style="display:none;text-align:center;" id="loading"&gt;
                   &lt;p&gt;If you have completed the survey, please wait at least 30 seconds before navigating away for the download to unlock.&lt;/p&gt;
                      &lt;img src="loading.gif" style="margin-bottom:-10px;"&gt;
                &lt;/div&gt;
            &lt;div id="gw_content"&gt;
                &lt;body onload="doauth(); checkIfPostBacked('&lt;?php echo $rand; ?&gt;');"/&gt;
                &lt;img src="wheel-throb.gif"&gt;
            &lt;/div&gt;
        &lt;/div&gt;
                        &lt;div id="gw_desc_foot"&gt;
                           You must use your VALID informations. If your information is detected as fake, you will be permanently banned and the file will not unlock.
                        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script type="text/javascript"&gt;

    function launchWindow(url) {
        window.open(url, '_newtab');
        //if (window.focus) {newwindow.focus()}    
    }

&lt;/script&gt;
                &lt;?php include 'footer3.php'; ?&gt;
&lt;?php } ?&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>rolanduk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455107/how-to-stop-automatical-download</guid>
		</item>
				<item>
			<title>porting perl one liner to python</title>
			<link>http://www.daniweb.com/software-development/python/threads/455106/porting-perl-one-liner-to-python</link>
			<pubDate>Wed, 22 May 2013 11:47:56 +0000</pubDate>
			<description>Hi All, I'm running some tests to assess system behaviour when memory is being hogged. Found this on googling: perl -np -e '$x=&quot;0123456789&quot;x1000000' &lt; /dev/zero This works a charm. But my esxi platforms do not have perl installed. They have python supported though:) Any thoughts on how that one liner ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I'm running some tests to assess system behaviour when memory is being hogged.<br />
Found this on googling:</p>

<p>perl -np -e '$x="0123456789"x1000000' &lt; /dev/zero</p>

<p>This works a charm. But my esxi platforms do not have perl installed. They have python supported though:)</p>

<p>Any thoughts on how that one liner can be written in python?</p>

<p>Thanks<br />
David</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>ub007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455106/porting-perl-one-liner-to-python</guid>
		</item>
				<item>
			<title>Save data to 2007 Access data base *.accdb</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455105/save-data-to-2007-access-data-base-.accdb</link>
			<pubDate>Wed, 22 May 2013 11:23:33 +0000</pubDate>
			<description>i have create windows application using 2007 Access database and i have this code : if (!UserNameTextBox.Text.Trim().Equals(&quot;&quot;)) { errorProvider1.Clear(); if (!PasswordTextBox.Text.Trim().Equals(&quot;&quot;)) { errorProvider2.Clear(); if (!RePasswordTextBox.Text.Trim().Equals(&quot;&quot;)) { errorProvider3.Clear(); OleDbConnection conn = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings[&quot;Lands.Properties.Settings.LandsConnectionString&quot;].ConnectionString); try { conn.Open(); this.usersTableAdapter1.FillUser(landsDataSet.Users, UserNameTextBox.Text.Trim()); if (landsDataSet.Users.Rows.Count &gt; 0) { errorProvider1.SetError(UserNameTextBox, &quot;إسم المستخدم المدخل مستعمل من قبل الرجاء ...</description>
			<content:encoded><![CDATA[ <p>i have create windows application using 2007 Access database and i have this code :</p>

<pre><code class="language-cs">            if (!UserNameTextBox.Text.Trim().Equals(""))
            {
                errorProvider1.Clear();

                if (!PasswordTextBox.Text.Trim().Equals(""))
                {
                    errorProvider2.Clear();

                    if (!RePasswordTextBox.Text.Trim().Equals(""))
                    {
                        errorProvider3.Clear();
                        OleDbConnection conn = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Lands.Properties.Settings.LandsConnectionString"].ConnectionString);

                        try
                        {
                            conn.Open();
                            this.usersTableAdapter1.FillUser(landsDataSet.Users, UserNameTextBox.Text.Trim());

                            if (landsDataSet.Users.Rows.Count &gt; 0)
                            {
                                errorProvider1.SetError(UserNameTextBox, "إسم المستخدم المدخل مستعمل من قبل الرجاء إختيار إسم أخر");
                                return;
                            }
                            else
                            {
                                if (PasswordTextBox.Text.Trim().Equals(RePasswordTextBox.Text.Trim()))
                                {
                                   queriesTableAdapter1.InsertUserQuery(UserNameTextBox.Text.Trim(),PasswordTextBox.Text.Trim());

                                    AlertLabel.ForeColor = Color.Green;
                                    AlertLabel.Text = "لقد تم إضافة مستخدم جديد ";
                                    ResetFields();
                                }
                                else
                                {
                                    errorProvider2.SetError(PasswordTextBox, "كلمة المرور والإعادة غير متساويتين الرجاء التأكد من كلمة المرور");
                                    errorProvider3.SetError(RePasswordTextBox, "كلمة المرور والإعادة غير متساويتين الرجاء التأكد من كلمة المرور");
                                }
                            }
                        }
                        catch (Exception exc)
                        {
                            throw new ArgumentException(exc.Message);
                        }
                        finally
                        {
                            //conn.Close();
                        }
                    }
                    else
                    {
                        errorProvider3.SetError(RePasswordTextBox, "الرجاء إعادة كلمة المرور");
                    }
                }
                else
                {
                    errorProvider2.SetError(PasswordTextBox, "الرجاء إدخال كلمة المرور");
                }
            }
            else
            {
                errorProvider1.SetError(UserNameTextBox, "الرجاء إدخال إسم المستخدم");
            }
</code></pre>

<p>inserting to database using dataset with dataAdapter like this : queriesTableAdapter1.InsertUserQuery(UserNameTextBox.Text.Trim(),PasswordTextBox.Text.Trim());</p>

<p>when i run my application, every thing goes goooood, but do not save any thing to my database</p>

<p>what is the problem ???</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>IT_Techno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455105/save-data-to-2007-access-data-base-.accdb</guid>
		</item>
				<item>
			<title>Convert from C++ to C</title>
			<link>http://www.daniweb.com/software-development/c/threads/455104/convert-from-c-to-c</link>
			<pubDate>Wed, 22 May 2013 11:18:00 +0000</pubDate>
			<description>Hello, I have this program that runs in C++ that I need to run in C. This is my program in C++: #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;cctype&gt; using namespace std; char encode (char plaintext) { if (isupper(plaintext)) { if (plaintext &gt; 'M') { plaintext += 13; } else { ...</description>
			<content:encoded><![CDATA[ <p>Hello, I have this program that runs in C++ that I need to run in C.</p>

<p>This is my program in C++:</p>

<pre><code class="language-c">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;cctype&gt;
using namespace std;

char encode (char plaintext) {
   if (isupper(plaintext)) {
      if (plaintext &gt; 'M') {
         plaintext += 13;
      }
      else {
         plaintext -= 13;
      }
   }
   else if (islower(plaintext)) {
      if (plaintext &gt; 'm') {
         plaintext +=13;
      }
      else {
         plaintext -=13;
      }
   }
   return (plaintext);
}

int main() {
   cout &lt;&lt; "Input string: ";
   string str;
   getline (cin, str);
   for (int i=0; i&lt;string.length();i++) {
      cout &lt;&lt; encode(str[i]);
   }
   cout &lt;&lt; "\nPress any &lt;ENTER&gt; to exit";
   cin.get();
   return 0;
}
</code></pre>

<p>Help would be greatly appreciated</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>SerenityG</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455104/convert-from-c-to-c</guid>
		</item>
				<item>
			<title>Download images from URLS</title>
			<link>http://www.daniweb.com/web-development/php/threads/455102/download-images-from-urls</link>
			<pubDate>Wed, 22 May 2013 10:56:48 +0000</pubDate>
			<description>Hi I am trying to get to download images into a file from database field urls onto my server as there is lots of them. I think im on the right track. I currently have an error Parse error: syntax error, unexpected T_STRING in getimages.php on line 11 Hope someone ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I am trying to get to download images into a file from database field urls onto my server as there is lots of them. I think im on the right track.</p>

<p>I currently have an error</p>

<p>Parse error: syntax error, unexpected T_STRING in getimages.php on line 11</p>

<p>Hope someone can help with this please.</p>

<pre><code>&lt;?php
mysql_connect("localhost", "X", "X") or die(mysql_error());
mysql_select_db("X") or die(mysql_error());

$query = "SELECT * FROM TABLE";

$result = mysql_query($query) or die(mysql_error());
while($file = mysql_fetch_array($result))
{

$image = file_get_contents(' . $file[' . image . ']. ');




$path = 'images/' . $file[' . image . '] . ';
file_put_contents($path, $image);

}
?&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mpc123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455102/download-images-from-urls</guid>
		</item>
			</channel>
</rss>