<?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>

				<item>
			<title>Select query for two table into one.....</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/423374/select-query-for-two-table-into-one</link>
			<pubDate>Wed, 16 May 2012 12:04:14 +0000</pubDate>
			<description>Too weird but still I have a doubt.... I have two table.... -&gt; OutpatientDetails -&gt; InpatientDetails But the fieldnames are same except for the ID....i.e. OutPatientID and InPatientID respectively..... I want to combine both the tables and produce one output.....I dont know whether it is possible or no.... I want ...</description>
			<content:encoded><![CDATA[ <p>Too weird but still I have a doubt....</p>

<p>I have two table....<br />
-&gt; OutpatientDetails<br />
-&gt; InpatientDetails</p>

<p>But the fieldnames are same except for the ID....i.e. OutPatientID and InPatientID respectively.....</p>

<p>I want to combine both the tables and produce one output.....I dont know whether it is possible or no....</p>

<p>I want the doctors to see both the data simulataneously...</p>

<p>like</p>

<pre><code class="language-sql">PatientID | PatientFName | PatientLName | Gender
------------------------------------------------
INP1      | ABC          | XYZ          | Female    -this is an inpatient
OTP1      | DEF          | PQR          | Male      -this is an outpatient
</code></pre>

<p>Is it possible to get the query this way.....</p>

<p>do let me know....</p>

<p>Thanks in advance.....</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>poojavb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/423374/select-query-for-two-table-into-one</guid>
		</item>
				<item>
			<title>Need help to write javascript function </title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423373/need-help-to-write-javascript-function-</link>
			<pubDate>Wed, 16 May 2012 12:03:14 +0000</pubDate>
			<description>I'm using [raphaeljs](http://raphaeljs.com/). I want to write function -to draw arc- like this, $(&quot;#arc&quot;).drawArc({ strokeStyle: &quot;#000&quot;, strokeWidth: 1, x: 100, y: 100, radius: 50, start: 45, end: 135 }); Above code can draw 90° arc How to make work above function work using [raphaeljs](http://raphaeljs.com/)? [Example](http://raphaeljs.com/polar-clock.html) [For Arcs calculations](https://developer.mozilla.org/En/Canvas_tutorial/Drawing_shapes)</description>
			<content:encoded><![CDATA[ <p>I'm using <a href="http://raphaeljs.com/" rel="nofollow">raphaeljs</a>. I want to write function -to draw arc- like this,</p>

<pre><code class="language-js">$("#arc").drawArc({
  strokeStyle: "#000",
  strokeWidth: 1,
  x: 100, 
  y: 100,
  radius: 50,
  start: 45, 
  end: 135
});

Above code can draw 90° arc
</code></pre>

<p>How to make work above function work using <a href="http://raphaeljs.com/" rel="nofollow">raphaeljs</a>?<br /><a href="http://raphaeljs.com/polar-clock.html" rel="nofollow">Example</a><br /><a href="https://developer.mozilla.org/En/Canvas_tutorial/Drawing_shapes" rel="nofollow">For Arcs calculations</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>vizz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423373/need-help-to-write-javascript-function-</guid>
		</item>
				<item>
			<title>What is Keyword Density?</title>
			<link>http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/423372/what-is-keyword-density</link>
			<pubDate>Wed, 16 May 2012 11:52:44 +0000</pubDate>
			<description>a. The number of times the keyword is used / (DIVIDED BY) the total word count on page - (MINUS)the total words in HTML on the page b. The number of times the keyword is used X (MULTIPLIED BY) the total word count on page c. The number of times ...</description>
			<content:encoded><![CDATA[ <p>a. The number of times the keyword is used / (DIVIDED BY) the total word count on page - (MINUS)the total words in HTML on the page<br />
b. The number of times the keyword is used X (MULTIPLIED BY) the total word count on page<br />
c. The number of times the keyword is used in the page description<br />
d. The number of times the keyword is used in the page title<br />
e. The number of times the keyword is used / (DIVIDED BY) the total word count on the page</p>

<p><a href="http://www.turnkeytalk.com/" rel="nofollow">Home Based business talk </a> |   <a href="http://www.turnkeyinsider.org" rel="nofollow">Money making business talk</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/43">Promotion and Marketing Plans</category>
			<dc:creator>samhanrey1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/423372/what-is-keyword-density</guid>
		</item>
				<item>
			<title>Regular expression as a function of highlighting search text</title>
			<link>http://www.daniweb.com/web-development/php/threads/423371/regular-expression-as-a-function-of-highlighting-search-text</link>
			<pubDate>Wed, 16 May 2012 10:40:32 +0000</pubDate>
			<description>I have e.g. example: $some_text='some example text [title=some_title]some title[/title] next text'; and I want make function, which will search for the word. I make function: function text_check($text,$search_word) { $text = preg_replace('/'.$search_word.'/i','&lt;span style=&quot;color: red;&quot;&gt;'.$search_word.'&lt;/span&gt;',$text); return $text; } $search='title'; echo text_check($some_text,$search); How to construct a function of instruction which will steer clear ...</description>
			<content:encoded><![CDATA[ <p>I have e.g. example:</p>

<pre><code>$some_text='some example text [title=some_title]some title[/title] next text';
</code></pre>

<p>and I want make function, which will search for the word.</p>

<p>I make function:</p>

<pre><code>function text_check($text,$search_word)
{
    $text = preg_replace('/'.$search_word.'/i','&lt;span style="color: red;"&gt;'.$search_word.'&lt;/span&gt;',$text);
    return $text;
}

 $search='title';

echo text_check($some_text,$search);
</code></pre>

<p>How to construct a function of instruction which will steer clear of the bbcode [title=some_title]?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>piotrekw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423371/regular-expression-as-a-function-of-highlighting-search-text</guid>
		</item>
				<item>
			<title>Apache does not start on XAMPP</title>
			<link>http://www.daniweb.com/web-development/threads/423370/apache-does-not-start-on-xampp</link>
			<pubDate>Wed, 16 May 2012 10:26:49 +0000</pubDate>
			<description># Apache does not start on XAMPP # I have installed XAMPP on XP PRO and I can not start apache when i press start, following message appears. **&quot;Busy... apache started on port 80 WARNNG: terminating worker thread 0&quot;** Please help.</description>
			<content:encoded><![CDATA[ <h1>Apache does not start on XAMPP</h1>

<p>I have installed XAMPP on XP PRO and I can not start apache<br />
when i press start, following message appears.</p>

<p><strong>"Busy... apache started on port 80<br />
WARNNG: terminating worker thread 0"</strong><br />
Please help.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>bamous</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/423370/apache-does-not-start-on-xampp</guid>
		</item>
				<item>
			<title>A questen for experienced ones </title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/423369/a-questen-for-experienced-ones-</link>
			<pubDate>Wed, 16 May 2012 10:26:11 +0000</pubDate>
			<description>One person in market from ten year doing SEO having the site services and same keywords as we have for our site ,we start effort on SEO and get our site on top 1st position with in 5 month ,but that person is doing SEO from ten year why we ...</description>
			<content:encoded><![CDATA[ <p>One person in market from ten year doing SEO  having the site services and same keywords as we have for our site ,we start effort on SEO and get our site on top 1st position with in 5 month ,but that person is doing SEO from ten year why we get the 1st position so quickly ,how our keyword come at top in 5month , is there any thing like maturity level after that Google imposes some hard rules on site ,or what is this i am totally confused</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>willson1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/423369/a-questen-for-experienced-ones-</guid>
		</item>
				<item>
			<title>Immediately close form after saving</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423368/immediately-close-form-after-saving</link>
			<pubDate>Wed, 16 May 2012 09:54:51 +0000</pubDate>
			<description>I have my form checked if it's dirty when a user goes to close it. If its dirty is true, the user is asked if they would like to save the data. When they click yes, the 'save event' is called. The problem I'm having is trying to get the ...</description>
			<content:encoded><![CDATA[ <p>I have my form checked if it's dirty when a user goes to close it. If its dirty is true, the user is asked if they would like to save the data. When they click yes, the 'save event' is called. The problem I'm having is trying to get the form to completly close after saving.  At the end of the save I put in me.close(), but another form closing event is triggered. Is this the correct way to dictate having the form close immediately after saving the data or is there a better way? If it is, I must have it placed in the wrong part of my code. Immediately after the "success" dialog box is displayed, I am asked if I want to save the data again.</p>

<pre><code class="language-vb">'FormClosing
If is_Dirty = True Then
 messagebox.show(text) =Windows.Forms.Dialogresult.Yes Then
    e.cancel = True

    Try
      'Save Event Called'
      Messagebox.show("success")
      me.close()
      Catch ex As Exception
    End Try
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Gus_19</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423368/immediately-close-form-after-saving</guid>
		</item>
				<item>
			<title>Add Application to facebook fan page , graph api</title>
			<link>http://www.daniweb.com/web-development/php/threads/423367/add-application-to-facebook-fan-page-graph-api</link>
			<pubDate>Wed, 16 May 2012 09:51:40 +0000</pubDate>
			<description>l have installed application to page using https://www.facebook.com/add.php?api_key=valid_api_key&amp;pages=1 but when l go to the page l cant see the page tab that supposed to hve been created.</description>
			<content:encoded><![CDATA[ <p>l have installed application to page using <a href="https://www.facebook.com/add.php?api_key=valid_api_key&amp;pages=1" rel="nofollow">https://www.facebook.com/add.php?api_key=valid_api_key&amp;pages=1</a> but when l go to the page l cant see the page tab that supposed to hve been created.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>masocha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423367/add-application-to-facebook-fan-page-graph-api</guid>
		</item>
				<item>
			<title>Basic Array</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423366/basic-array</link>
			<pubDate>Wed, 16 May 2012 09:49:17 +0000</pubDate>
			<description> double a [3]={1.1,2.2,3.3}; cout&lt;&lt;a[0]&lt;&lt;&quot; &quot;&lt;&lt;a[1]&lt;&lt;&quot; &quot;&lt;&lt;a[2]&lt;&lt;endl; a[1]=a[2]; cout&lt;&lt;a[0]&lt;&lt;&quot; &quot;&lt;&lt;a[1]&lt;&lt;&quot; &quot;&lt;&lt;a[2]&lt;&lt;endl; ans to the above is 1.1 2.2 3.3 1.1 3.3 3.3 I am new to array. Please expalin why a[1]=a[2] gave me 3.3 3.3. thank you</description>
			<content:encoded><![CDATA[ <pre><code class="language-cpp">double a [3]={1.1,2.2,3.3};
cout&lt;&lt;a[0]&lt;&lt;" "&lt;&lt;a[1]&lt;&lt;" "&lt;&lt;a[2]&lt;&lt;endl;
a[1]=a[2];  
cout&lt;&lt;a[0]&lt;&lt;" "&lt;&lt;a[1]&lt;&lt;" "&lt;&lt;a[2]&lt;&lt;endl;
</code></pre>

<p>ans to the above is<br />
1.1 2.2 3.3<br />
1.1 3.3 3.3</p>

<p>I am new to array. Please expalin why a[1]=a[2] gave me 3.3 3.3.<br />
thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Valiantangel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423366/basic-array</guid>
		</item>
				<item>
			<title>saving multiple record at once...</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423365/saving-multiple-record-at-once</link>
			<pubDate>Wed, 16 May 2012 09:47:06 +0000</pubDate>
			<description>how can i save multiple record in single click using user define data type in SQL i am having problem in selecting the value in gridview using checkbox here my code View // View LAyer protected void imgbtnSave_Click(object sender, EventArgs e) { DataTable dtTable = new DataTable(); DataRow dtRow = ...</description>
			<content:encoded><![CDATA[ <p>how can i save multiple record in single click using user define data type in SQL<br />
i am having problem in selecting the value in gridview using checkbox</p>

<p>here my code</p>

<p>View</p>

<pre><code class="language-cs">// View LAyer 
    protected void imgbtnSave_Click(object sender, EventArgs e)
        {

            DataTable dtTable = new DataTable();
            DataRow dtRow = dtTable.NewRow();
           for (int i = 0; i &lt; gvTaggingAccounts.Rows.Count; i++)
              {
                  GridViewRow row = gvTaggingAccounts.Rows[i];

                  bool isChecked = ((CheckBox)row.FindControl("chkTypes")).Checked;

               if(isChecked)
                {
                    dtRow["AccountNUM"] = gvTaggingAccounts.Rows[i].Cells[1].Text; //having error here.. not belong to the table.. 
                    dtRow["Accoutname"] = gvTaggingAccounts.Rows[i].Cells[2].Text;
                   dtTable.Rows.Add(dtRow);
                    _taggingAccountsManager.InsertAXPerDepartment();
                } 
            }
        }
       // DLSQL Layer 


            public override bool InsertAXPerDepartment()
            {
                var isSuccess = false;
                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");

                    _sqlHelper.ExecuteNonQuery();

                }
                catch (Exception ex)
                {

                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;

            }



            public override bool InsertAXPerDepartment(DataTable AcctTag)
            {
                var isSuccess = false;

                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");
                    _sqlHelper.Command.CommandType = CommandType.StoredProcedure;
                    _sqlHelper.Command.Parameters.Add("@AcctTag" ,SqlDbType.Structured);
                    SqlParameter Param = _sqlHelper.Command.Parameters.Add("@AcctTag", SqlDbType.Structured);
                    Param.Value = AcctTag;



                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;
            }


            my user define table is working together with the stored proc..

            anyone can solve this problem.. 


            thanks 




    protected void imgbtnSave_Click(object sender, EventArgs e)
        {

            DataTable dtTable = new DataTable();
            DataRow dtRow = dtTable.NewRow();
           for (int i = 0; i &lt; gvTaggingAccounts.Rows.Count; i++)
              {
                  GridViewRow row = gvTaggingAccounts.Rows[i];

                  bool isChecked = ((CheckBox)row.FindControl("chkTypes")).Checked;

               if(isChecked)
                {
                    dtRow["AccountNUM"] = gvTaggingAccounts.Rows[i].Cells[1].Text; //having error here.. not belong to the table.. 
                    dtRow["Accoutname"] = gvTaggingAccounts.Rows[i].Cells[2].Text;
                   dtTable.Rows.Add(dtRow);
                    _taggingAccountsManager.InsertAXPerDepartment();
                } 
            }
        }
        DLSQL


            public override bool InsertAXPerDepartment()
            {
                var isSuccess = false;
                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");

                    _sqlHelper.ExecuteNonQuery();

                }
                catch (Exception ex)
                {

                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;

            }



            public override bool InsertAXPerDepartment(DataTable AcctTag)
            {
                var isSuccess = false;

                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");
                    _sqlHelper.Command.CommandType = CommandType.StoredProcedure;
                    _sqlHelper.Command.Parameters.Add("@AcctTag" ,SqlDbType.Structured);
                    SqlParameter Param = _sqlHelper.Command.Parameters.Add("@AcctTag", SqlDbType.Structured);
                    Param.Value = AcctTag;



                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;
            }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>cyberdaemon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423365/saving-multiple-record-at-once</guid>
		</item>
				<item>
			<title>saving multiple record at once...</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423364/saving-multiple-record-at-once</link>
			<pubDate>Wed, 16 May 2012 09:47:04 +0000</pubDate>
			<description>how can i save multiple record in single click using user define data type in SQL i am having problem in selecting the value in gridview using checkbox here my code View // View LAyer protected void imgbtnSave_Click(object sender, EventArgs e) { DataTable dtTable = new DataTable(); DataRow dtRow = ...</description>
			<content:encoded><![CDATA[ <p>how can i save multiple record in single click using user define data type in SQL<br />
i am having problem in selecting the value in gridview using checkbox</p>

<p>here my code</p>

<p>View</p>

<pre><code class="language-cs">// View LAyer 
    protected void imgbtnSave_Click(object sender, EventArgs e)
        {

            DataTable dtTable = new DataTable();
            DataRow dtRow = dtTable.NewRow();
           for (int i = 0; i &lt; gvTaggingAccounts.Rows.Count; i++)
              {
                  GridViewRow row = gvTaggingAccounts.Rows[i];

                  bool isChecked = ((CheckBox)row.FindControl("chkTypes")).Checked;

               if(isChecked)
                {
                    dtRow["AccountNUM"] = gvTaggingAccounts.Rows[i].Cells[1].Text; //having error here.. not belong to the table.. 
                    dtRow["Accoutname"] = gvTaggingAccounts.Rows[i].Cells[2].Text;
                   dtTable.Rows.Add(dtRow);
                    _taggingAccountsManager.InsertAXPerDepartment();
                } 
            }
        }
       // DLSQL Layer 


            public override bool InsertAXPerDepartment()
            {
                var isSuccess = false;
                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");

                    _sqlHelper.ExecuteNonQuery();

                }
                catch (Exception ex)
                {

                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;

            }



            public override bool InsertAXPerDepartment(DataTable AcctTag)
            {
                var isSuccess = false;

                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");
                    _sqlHelper.Command.CommandType = CommandType.StoredProcedure;
                    _sqlHelper.Command.Parameters.Add("@AcctTag" ,SqlDbType.Structured);
                    SqlParameter Param = _sqlHelper.Command.Parameters.Add("@AcctTag", SqlDbType.Structured);
                    Param.Value = AcctTag;



                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;
            }


            my user define table is working together with the stored proc..

            anyone can solve this problem.. 


            thanks 




    protected void imgbtnSave_Click(object sender, EventArgs e)
        {

            DataTable dtTable = new DataTable();
            DataRow dtRow = dtTable.NewRow();
           for (int i = 0; i &lt; gvTaggingAccounts.Rows.Count; i++)
              {
                  GridViewRow row = gvTaggingAccounts.Rows[i];

                  bool isChecked = ((CheckBox)row.FindControl("chkTypes")).Checked;

               if(isChecked)
                {
                    dtRow["AccountNUM"] = gvTaggingAccounts.Rows[i].Cells[1].Text; //having error here.. not belong to the table.. 
                    dtRow["Accoutname"] = gvTaggingAccounts.Rows[i].Cells[2].Text;
                   dtTable.Rows.Add(dtRow);
                    _taggingAccountsManager.InsertAXPerDepartment();
                } 
            }
        }
        DLSQL


            public override bool InsertAXPerDepartment()
            {
                var isSuccess = false;
                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");

                    _sqlHelper.ExecuteNonQuery();

                }
                catch (Exception ex)
                {

                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;

            }



            public override bool InsertAXPerDepartment(DataTable AcctTag)
            {
                var isSuccess = false;

                try
                {

                    _sqlHelper.CreateConnection();
                    _sqlHelper.CreateCommand("usp_InsertAXPerDepartment");
                    _sqlHelper.Command.CommandType = CommandType.StoredProcedure;
                    _sqlHelper.Command.Parameters.Add("@AcctTag" ,SqlDbType.Structured);
                    SqlParameter Param = _sqlHelper.Command.Parameters.Add("@AcctTag", SqlDbType.Structured);
                    Param.Value = AcctTag;



                    ErrorHandler.Handle(ex);
                    OnRaiseErrorOccuredEvent(this, new ErrorEventArgs(ex));

                }
                finally
                {
                    _sqlHelper.CloseConnection();

                }
                return isSuccess;
            }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>cyberdaemon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423364/saving-multiple-record-at-once</guid>
		</item>
				<item>
			<title>PDF to EPUB in asp.net</title>
			<link>http://www.daniweb.com/software-development/threads/423363/pdf-to-epub-in-asp.net</link>
			<pubDate>Wed, 16 May 2012 09:45:26 +0000</pubDate>
			<description>I am making a book reader. It takes input files in PDF format. I have to show them in EPUB format. But I don't know how to convert PDF to EPUB format. Please help by suggesting some valuable methods.</description>
			<content:encoded><![CDATA[ <p>I am making a book reader. It takes input files in PDF format. I have to show them in EPUB format. But I don't know how to convert PDF to EPUB format. Please help by suggesting some valuable methods.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>praptic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/423363/pdf-to-epub-in-asp.net</guid>
		</item>
				<item>
			<title>displaying images from database</title>
			<link>http://www.daniweb.com/web-development/php/threads/423362/displaying-images-from-database</link>
			<pubDate>Wed, 16 May 2012 09:27:12 +0000</pubDate>
			<description>Hi , I am trying to display images stored in database. Actually, i have stored image names with extenstion in the database, images are stored in my root directory images folder. Now i want to display all the images with other filelds in that table, in same page. I have ...</description>
			<content:encoded><![CDATA[ <p>Hi ,</p>

<p>I am trying to display images stored in database.</p>

<p>Actually, i have stored image names with extenstion in the database, images are stored in my root directory images folder.</p>

<p>Now i want to display all the images with other filelds  in that table, in same page.</p>

<p>I have written the code but its not happening. Plz help me</p>

<p>here is my code</p>

<pre><code> &lt;?php  
                  require("includes/conn.php"); 



                $sql = "select CategoryID, CategoryName, FileName, Status from Categories";

                $result = mysql_query($sql) or die ("Could not access DB: " . mysql_error());



                while ($row = mysql_fetch_assoc($result))

                {

                     echo "&lt;table border='0' cellpadding='10'&gt;";


                                        echo "&lt;tr&gt;&lt;td&gt;  &lt;/td&gt;&lt;td&gt;Category ID&lt;/td&gt;&lt;td&gt;Category Name&lt;/td&gt;&lt;td&gt;Status&lt;/td&gt;&lt;td&gt;Edit&lt;/td&gt;&lt;td&gt;Delete&lt;/td&gt;&lt;/tr&gt;";

                                        echo "&lt;tr&gt;&lt;td&gt; &lt;img src=\"images/" . $row['FileName'] . "\" alt=\"\" /&gt; &lt;/td&gt;";
                                        echo "&lt;td&gt;". $row['CategoryID'] . "&lt;/td&gt;";
                                            echo "&lt;td&gt;". $row['CategoryName'] . "&lt;/td&gt;";
                                            echo "&lt;td&gt;". $row['Status']. "&lt;/td&gt;";
                                            echo "&lt;td&gt; &lt;a href= 'edit.php?CategoryID=" .$row['id']. "'&gt; Edit &lt;/a&gt;&lt;/td&gt;";
                                            echo "&lt;td&gt; &lt;a href= 'delete.php?CategoryID=" .$row['id']. "'&gt; Edit &lt;/a&gt;&lt;/td&gt;";
                                         echo "&lt;/tr&gt; &lt;/table&gt;";

                }



            ?&gt;
</code></pre>

<p>Please help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>my3h</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423362/displaying-images-from-database</guid>
		</item>
				<item>
			<title>Birthday Reminder</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423361/birthday-reminder</link>
			<pubDate>Wed, 16 May 2012 09:22:17 +0000</pubDate>
			<description>Hello Friends, I need to develop a birthday reminder form in my project.... The list of all patient that are celebrating birthday on that particular day and month...leaving the year.... My database is SQL server and I have used date datatype for it.... So I can I get the month ...</description>
			<content:encoded><![CDATA[ <p>Hello Friends,</p>

<p>I need to develop a birthday reminder form in my project....</p>

<p>The list of all patient that are celebrating birthday on that particular day and month...leaving the year....</p>

<p>My database is SQL server and I have used date datatype for it....</p>

<p>So I can I get the month and the day from the query and show the list of patient celebrating birthday in a datagrid.....</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>poojavb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423361/birthday-reminder</guid>
		</item>
				<item>
			<title>Problem Redirecting to the Custom Error Page</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/423358/problem-redirecting-to-the-custom-error-page</link>
			<pubDate>Wed, 16 May 2012 08:47:45 +0000</pubDate>
			<description>Good Day ALL I have tried something and i am not sure what is the problem. i have inherited the an asp.net app. So i want to add the custom Error Handling. I know there are two methods i can do this. 1) Web Config 2)Global.asa So i started with ...</description>
			<content:encoded><![CDATA[ <p>Good Day ALL</p>

<p>I have tried something and i am not sure what is the problem.</p>

<p>i have inherited the an asp.net app. So i want to add the custom Error Handling. I know there are two methods i can do this.</p>

<p>1) Web Config</p>

<p>2)Global.asa</p>

<p>So i started with the web config just to see how it will look and i accessed the page that normally gives an Exception. so basically i have a page gives a</p>

<p>**500 - Internal server error.<br />
There is a problem with the resource you are looking for, and it cannot be displayed **</p>

<p>So now , if there is an Error i want it to go to that Error Page. In the web config i have the Following</p>

<pre><code> &lt;customErrors defaultRedirect="content/ErrorPages/SupportError.aspx" mode="On"&gt;
  &lt;error statusCode="404" redirect="content/ErrorPages/SupportError.aspx" /&gt;
  &lt;error statusCode="400" redirect="content/ErrorPages/SupportError.aspx" /&gt;
  &lt;error statusCode="500" redirect="content/ErrorPages/SupportError.aspx" /&gt;
&lt;/customErrors&gt;
</code></pre>

<p>This means that when this kind of Errors occur it should redirect to that page.  All these pages are contents of the Master page including the Error page. But this Error Persist it does not show me the Error page. Even if i try to see if it goes to "Application_Error" in the Global.asa nothing goes there.</p>

<p>So i have also tried the second option. so i turned the web config part<br />
"off" and i trapped this in the global.asa like this</p>

<pre><code>Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
    Server.Transfer("~/Content/ErrorPages/SupportError.aspx")

    'Response.Redirect("~/Content/ErrorPages/SupportError.aspx", False)
End Sub
</code></pre>

<p>but still nothing happens</p>

<p>THanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>vuyiswamb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/423358/problem-redirecting-to-the-custom-error-page</guid>
		</item>
				<item>
			<title>Could anyone recommend an interactive application for data analysis?</title>
			<link>http://www.daniweb.com/software-development/threads/423357/could-anyone-recommend-an-interactive-application-for-data-analysis</link>
			<pubDate>Wed, 16 May 2012 08:01:22 +0000</pubDate>
			<description>Hi, everybody I need to conduct a large amount of data analysis on database. Could anyone recommend an interactive application for data analysis? The requirements are: 1. Able to cope with the unexpected requirement rapidly. 2. Able to perform further computations on results interactively. 3. Easy to confront even a ...</description>
			<content:encoded><![CDATA[ <p>Hi, everybody<br />
   I need to conduct a large amount of data analysis on database. Could anyone recommend an interactive application for data analysis?<br />
   The requirements are:<br />
   1. Able to cope with the unexpected requirement rapidly.<br />
   2. Able to perform further computations on results interactively.<br />
   3. Easy to confront even a large amount of complex computations<br />
   What would you great expert recommend?<br />
   Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>bestbird7788</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/423357/could-anyone-recommend-an-interactive-application-for-data-analysis</guid>
		</item>
				<item>
			<title>webscraping with beautiful soup (extracting images)</title>
			<link>http://www.daniweb.com/software-development/python/threads/423356/webscraping-with-beautiful-soup-extracting-images</link>
			<pubDate>Wed, 16 May 2012 08:01:00 +0000</pubDate>
			<description>hello I am following this tutorial on how to scrap website information http://www.newthinktank.com/2010/11/pyt ... -scraping/ this is my code: EDIT: do not post off site, moved here #! /usr/bin/python from urllib import urlopen from BeautifulSoup import BeautifulSoup import re def cleanHtml(i): i = str(i) # Convert the Beautiful Soup Tag ...</description>
			<content:encoded><![CDATA[ <p>hello</p>

<p>I am following this tutorial on how to scrap website information</p>

<p><a href="http://www.newthinktank.com/2010/11/pyt" rel="nofollow">http://www.newthinktank.com/2010/11/pyt</a> ... -scraping/</p>

<p>this is my code:<br />
EDIT: do not post off site, moved here</p>

<pre><code class="language-py">#! /usr/bin/python

from urllib import urlopen
from BeautifulSoup import BeautifulSoup
import re

def cleanHtml(i):
    i = str(i) # Convert the Beautiful Soup Tag to a string
    bS = BeautifulSoup(i) # Pass the string to Beautiful Soup to strip out html


    # Find all of the text between paragraph tags and strip out the html
    i = bS.find('p').getText() 

    # Strip ampersand codes and WATCH:
    i = re.sub('&amp;\w+;','',i)
    i = re.sub('WATCH:','',i)
    return i

def cleanHtmlRegex(i):
    i = str(i)
    regexPatClean = re.compile(r'&lt;[^&lt;]*?/?&gt;')
    i = regexPatClean.sub('', i) 
    # Strip ampersand codes and WATCH:

    i = re.sub('&amp;\w+;','',i)
    return re.sub('WATCH:','',i)


# Copy all of the content from the provided web page
webpage = urlopen('<a href="http://supertalk.superfuture.com/index.php?/topic/95817-2-for-1-pics/page__st__500" rel="nofollow">http://supertalk.superfuture.com/index.php?/topic/95817-2-for-1-pics/page__st__500</a>').read()

# Grab everything that lies between the title tags using a REGEX
titleString = "&lt;span rel='lightbox'&gt;&lt;img src='(.*)' alt='Posted Image' class='bbc_img' /&gt;"
patFinderTitle = re.compile(titleString)


# Store all of the titles and links found in 2 lists
findPatTitle = re.findall(patFinderTitle,webpage)


# Print out the results to screen
for i in listIterator:
    print findPatTitle[i] # The title
    print "\n"
</code></pre>

<p>the only parts of the code i've changed is this</p>

<pre><code class="language-py">webpage = urlopen('<a href="http://supertalk.superfuture.com/index.php?/topic/95817-2-for-1-pics/page__st__500" rel="nofollow">http://supertalk.superfuture.com/index.php?/topic/95817-2-for-1-pics/page__st__500</a>').read()

titleString = '&lt;span rel='lightbox'&gt;&lt;img src='(.*)' alt='Posted Image' class='bbc_img' /&gt;'
patFinderTitle = re.compile(titleString)
</code></pre>

<p>I would like to create something that will be able to extract all pictures from every page but for now, im just trying to pull any jpgs but i cant seem to figure it out.</p>

<p>can someone help? i am new to coding.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>bkjfdghiuds</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/423356/webscraping-with-beautiful-soup-extracting-images</guid>
		</item>
				<item>
			<title>How do i do a previous/next buttons with ajax with results on same page?</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423355/how-do-i-do-a-previousnext-buttons-with-ajax-with-results-on-same-page</link>
			<pubDate>Wed, 16 May 2012 07:59:40 +0000</pubDate>
			<description># How do i do a previous and next buttons with ajax and get different results on same page? # Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this. How do i use ...</description>
			<content:encoded><![CDATA[ <h1>How do i do a previous and next buttons with ajax and get different results on same page?</h1>

<p>Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this.</p>

<p>How do i use Ajax to display 3 previous/next results when you onclick(once or many times) a previous/next button and it displays the results each time on the same page?</p>

<p>The current page has 3 results from a query the one on the far right is the latest result.</p>

<p>Here is the code: 2 pages : 1st page is index.php: 2nd page is getuser.php<br /><strong>index.php</strong></p>

<pre><code class="language-js">&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;index&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
function showUser(str)
{
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
{
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.send();
}
  &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;br&gt;
&lt;td style="vertical-align: top; text-align: right;"&gt; 
 
             &lt;br&gt;
            &lt;br&gt;
            &lt;form name="form" method="Post"&gt;&lt;input name="back"
 value="Back" type="hidden"&gt; &lt;input src="left.png" style="" 15=""
 type="image" border="0" height="15"&gt;&lt;/form&gt;

             &lt;?php 

if(isset($_POST['back'])){ 
not sure here;
}
?&gt;
            &lt;div style="text-align: center;"&gt;
            &lt;div style="text-align: right;"&gt;&lt;br&gt;
            &lt;/div&gt;
            &lt;div style="text-align: right;"&gt;&lt;br&gt;
            &lt;br&gt;
            &lt;/div&gt;
            &lt;br&gt;
            &lt;/div&gt;
            &lt;br&gt;
            &lt;/td&gt;
            &lt;td style="vertical-align: top; text-align: center;"&gt;&lt;br&gt;
&lt;?php

$con = mysql_connect('localhost', 'username', 'password');
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database", $con);

$sql = "SELECT * FROM `rock` ORDER BY id DESC LIMIT 0,3";
$result = mysql_query($sql);

while($file = mysql_fetch_array($result)){
    echo '&lt;li&gt;';
echo '&lt;a href="#" id="'.$file['id'].'" onclick="showUser(this.id)"&gt;'.$file['name'].'&lt;/a&gt;';
    echo '&lt;/li&gt;';
 }

mysql_close($con);
?&gt;
            &lt;div id="txtHint" style="text-align: center;"&gt; &lt;/div&gt;
            &lt;/td&gt;
            &lt;td style="vertical-align: top; text-align: left;"&gt; 

&lt;form name="form" method="Post"&gt;&lt;input name="forward"
 value="Forward" type="hidden"&gt; &lt;input src="right.png" style="" 15=""
 type="image" border="0" height="15"&gt;&lt;/form&gt;
            &lt;br&gt;

             &lt;?php 

if(isset($_POST['forward'])){ 
not sure here;
}
?&gt;

            &lt;/td&gt;
-------------------------------------------------------------------------------------------------            
# ** ** getuser.php**** #
&lt;?php

$q=$_GET["q"];

$con = mysql_connect('localhost', 'username', 'password');
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database", $con);

$sql="SELECT * FROM rock WHERE id = '".$q."'";

$result = mysql_query($sql);

while($file = mysql_fetch_array($result)){


echo "&lt;table border='0' align='center'&gt;";
  {
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;" .$file['Name']. "&lt;/td&gt;";
   echo "&lt;/tr&gt;";
   echo "&lt;tr&gt;";
  echo "&lt;td&gt;". $file['Color'] . "&lt;/td&gt;";
   echo "&lt;/tr&gt;";
   echo "&lt;tr&gt;";
  echo "&lt;td&gt;" . $file['Type'] . "&lt;/td&gt;";
   echo "&lt;/tr&gt;";


  }
echo "&lt;/table&gt;";
      }

mysql_close($con);
?&gt; 
</code></pre>

<p><strong>CAN SOMEONE HELP!!!</strong></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>frostymoon37</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423355/how-do-i-do-a-previousnext-buttons-with-ajax-with-results-on-same-page</guid>
		</item>
				<item>
			<title>Making a Flash SIP client</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423354/making-a-flash-sip-client</link>
			<pubDate>Wed, 16 May 2012 07:57:55 +0000</pubDate>
			<description>Ahoi, I am currently developing a Flash client for SIP communication. My biggest help on the subject is the following website, where I have found a great sample program: http://www.voip-sip-sdk.com/p_97-flash-sip-client-example-voip.html The sample program is about how to make a Flash softphone for SIP communication. I hope you will like it ...</description>
			<content:encoded><![CDATA[ <p>Ahoi,</p>

<p>I am currently developing a Flash client for SIP communication. My biggest help on the subject is the following website,<br />
where I have found a great sample program:<br />
<a href="http://www.voip-sip-sdk.com/p_97-flash-sip-client-example-voip.html" rel="nofollow">http://www.voip-sip-sdk.com/p_97-flash-sip-client-example-voip.html</a></p>

<p>The sample program is about how to make a Flash softphone for SIP communication. I hope you will like it as much as I do.</p>

<p>Greetings,</p>

<p>Gedeon</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Gedeon82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423354/making-a-flash-sip-client</guid>
		</item>
				<item>
			<title>Passing variable variables?</title>
			<link>http://www.daniweb.com/web-development/php/threads/423353/passing-variable-variables</link>
			<pubDate>Wed, 16 May 2012 07:31:39 +0000</pubDate>
			<description>I've created a While loop that prints out the info of a MySQL table into a simple html table. This part works just fine. I've created a variable which has a prefix tableID and then adds the number of the row ID. ID is the primary key and row is ...</description>
			<content:encoded><![CDATA[ <p>I've created a While loop that prints out the info of a MySQL table into a simple html table.  This part works just fine.</p>

<p>I've created a variable which has a prefix tableID and then adds the number of the row ID.  ID is the primary key and row is the array.</p>

<pre><code>${'tableID_' . $row['ID']} = $row['ID'];
</code></pre>

<p>In the While loop table I've also included form checkboxes, so if it's checked and the submit button is hit, it will delete the row from the table.  I've named the checkbox the same as the variable as well as giving it the same value.</p>

<pre><code>&lt;input name=\"${'tableID_' . $row['ID']}\" type=\"checkbox\" value=\"${'tableID_' . $row['ID']}\"&gt;"
</code></pre>

<p>In the script that processes the delete query, I tried doing this for the variable:</p>

<pre><code>$tabRowDel = $_GET[${'tableID_' . $row['ID']}];
</code></pre>

<p>The error is: "Notice: Undefined index: 1 in..."  The above is on the line number it tells me the error exists.</p>

<p>I did have it as POST before but decided to try GET to see if it was working at all.  It does pass into the URL.</p>

<p>Any ideas on how to get this working?  While I'm at it, what's a good way to do a verification?  Essentially someone checks the box, hits Submit and a message asks if they really want to delete the info.</p>

<p>Cheers!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>kairoland</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423353/passing-variable-variables</guid>
		</item>
				<item>
			<title>very urgent,..pls help</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423352/very-urgent..pls-help</link>
			<pubDate>Wed, 16 May 2012 07:28:21 +0000</pubDate>
			<description>Guys, Need your help here please.. I have a windows form where i have a requirement to convert money entered as integer into string format.. like : if amt entered was 5000,it shld be converted to five thousand rupees only.. please help..</description>
			<content:encoded><![CDATA[ <p>Guys,<br />
Need your help here please..<br />
I have a windows form where i have a requirement to convert money entered as integer into string format..<br />
like : if amt entered was 5000,it shld be converted to five thousand rupees only..<br />
please help..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>vammy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423352/very-urgent..pls-help</guid>
		</item>
				<item>
			<title>Jquery Slideshow And Swapcontent()</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423351/jquery-slideshow-and-swapcontent</link>
			<pubDate>Wed, 16 May 2012 07:25:49 +0000</pubDate>
			<description>Hi all, I really need some help. I am trying to make a website with horizontal scroll (working!), then I am using a jQuery Slideshow (called Camera), and I combined this with the horizontal scrolling website(working!). When I select the page I want from the menu, the website scrolls to ...</description>
			<content:encoded><![CDATA[ <p>Hi all, I really need some help.</p>

<p>I am trying to make a website with horizontal scroll (working!), then I am using a jQuery Slideshow (called Camera), and I combined this with the horizontal scrolling website(working!).<br />
When I select the page I want from the menu, the website scrolls to right and automatically it loads from database a list of images in the Slideshow.</p>

<p>I have a menu with some button and each button call this "swapContent(cv)" function:</p>

<pre><code class="language-js">function swapContent(cv) {
            $(".camera").html("Loading...").show();
            var url = "evaluation_menu.php";
            $.post(url, {contentVar: cv}, function(data) {
                    $(".camera").html(data).show();
                    $('.camera').camera({
                            pagination: false
                    });
            });
    }
</code></pre>

<p>HTML code:</p>

<pre><code class="language-js">&lt;a class="next page" title="Title 1" href="#page" onClick="return false" onmousedown="javascript:swapContent('title1');"&gt;&lt;div id="title1"&gt;&lt;/div&gt;&lt;/a&gt;
&lt;a class="next page" title="Title 2" href="#page" onClick="return false" onmousedown="javascript:swapContent('title2');"&gt;&lt;div id="title2"&gt;&lt;/div&gt;&lt;/a&gt;
</code></pre>

<p>The menu is in the homepage and in the other page (just one page), but every time I click on a button it seems that the "camera" div is replicated inside x1, x2 and so on.</p>

<p>So I thought something like a refresh of the ".camera" div and then load the new content selected from the menu; but using "location.reload()", the reload works correctly, but not load the selected content.</p>

<p>Yesterday I thought to using a tabbed Ajax function, I found on a website some code:</p>

<pre><code class="language-js">$(function(){
    $("a[rel='tab']").click(function(e){
      e.preventDefault();

      //if uncomment the above line, html5 nonsupported browers won't change the url but will display the ajax content;
      //if commented, html5 nonsupported browers will reload the page to the specified link.


      //get the link location that was clicked
      pageurl = $(this).attr('href');

      //to get the ajax content and display in div with id 'content'
      $.ajax({url:pageurl+'?rel=tab',success: function(data){
       $('#wrap-content').html(data);         
      }});

      //to change the browser URL to 'pageurl'
      if(pageurl!=window.location){
       window.history.pushState({path:pageurl},'',pageurl);
      }
      return false;
    });
    });
    // the below code is to override back button to get the ajax content without reload
    $(window).bind('popstate', function() {
    $.ajax({url:location.pathname+'?rel=tab',success: function(data){
      $('#wrap-content'').html(data);
    }});
    });
</code></pre>

<p>HTML code:</p>

<pre><code class="language-js">&lt;a class="next page" title="Title 1" href="#page" onClick="return false" onmousedown="javascript:swapContent('title1');" REL="TAB"&gt;&lt;div id="title1"&gt;&lt;/div&gt;&lt;/a&gt;
</code></pre>

<p>This tabbed things works, pretty well, but don't know if and how to mix it with my code.</p>

<p>Any hint/help is really appreciated.</p>

<p>Please</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>Thevenin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423351/jquery-slideshow-and-swapcontent</guid>
		</item>
				<item>
			<title>Creating a internal site and making it avaliable internally</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/423350/creating-a-internal-site-and-making-it-avaliable-internally</link>
			<pubDate>Wed, 16 May 2012 07:22:40 +0000</pubDate>
			<description>Hello Im trying to make a internal site (Called test.dev) but I cant get it to be viewed internally. I made a A record on the DNS server point &quot;test.dev&quot; to my IP which would be for example 192.168.1.45 but I try to access it on a client PC and ...</description>
			<content:encoded><![CDATA[ <p>Hello</p>

<p>Im trying to make a internal site (Called test.dev) but I cant get it to be viewed internally. I made a A record on the DNS server point "test.dev" to my IP which would be for example 192.168.1.45 but I try to access it on a client PC and it does not resolve. What am I doing wrong?</p>

<p>Thank you!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>riahc3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/423350/creating-a-internal-site-and-making-it-avaliable-internally</guid>
		</item>
				<item>
			<title>3D project</title>
			<link>http://www.daniweb.com/software-development/game-development/threads/423349/3d-project</link>
			<pubDate>Wed, 16 May 2012 06:49:53 +0000</pubDate>
			<description>Hello, NOTE: I dont know in witch forum to post this, I'm sorry if i post it in the wrong one. I had to make a project a few months back for my school, that required me to create 3 3D objects (cube, sphere and so on) and apply some ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>NOTE: I dont know in witch forum to post this, I'm sorry if i post it in the wrong one.</p>

<p>I had to make a project a few months back for my school, that required me to create 3 3D objects (cube, sphere and so on) and apply some transformation on them (translation, scaling etc).</p>

<p>Now the in the project i select with my mouse from a menu the object and click somewhere in the workspace to create it. What i want is something like this: while i dont click a second time i can scale the object. My problem is, i don't know how to check in which direction is the mouse moving in comparison with the center of the object. If i move the mouse away then the i make the object bigger and if i move it close to the center then i make it smaller.<br />
Is there a simple way to check this?</p>

<p>Thank you and sorry for my english,<br />
Chris</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/game-development/71">Game Development</category>
			<dc:creator>maximchris</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/game-development/threads/423349/3d-project</guid>
		</item>
				<item>
			<title>Linux partitioning</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/423348/linux-partitioning</link>
			<pubDate>Wed, 16 May 2012 06:36:24 +0000</pubDate>
			<description>Hey can someone pls explain me what is program resize2fs and how does it work? i searched the internet and i couldnt find definition that i would understand, so i was hoping anybody here could tell me what it is. Ty for your help</description>
			<content:encoded><![CDATA[ <p>Hey can someone pls explain me what is program resize2fs and how does it work? i searched the internet and i couldnt find definition that i would understand, so i was hoping anybody here could tell me what it is.</p>

<p>Ty for your help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>Sibuns</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/423348/linux-partitioning</guid>
		</item>
				<item>
			<title>Communication between wcf and nt service?</title>
			<link>http://www.daniweb.com/web-development/threads/423347/communication-between-wcf-and-nt-service</link>
			<pubDate>Wed, 16 May 2012 06:10:03 +0000</pubDate>
			<description>hi, am new to WCF Technology. i want to communicate between wcf service and windows service. can please help on this.</description>
			<content:encoded><![CDATA[ <p>hi,</p>

<p>am new to WCF Technology. i want to communicate between wcf service and windows service.</p>

<p>can please help on this.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>lokeshmv86</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/423347/communication-between-wcf-and-nt-service</guid>
		</item>
				<item>
			<title>Decreasing disk space</title>
			<link>http://www.daniweb.com/software-development/java/threads/423346/decreasing-disk-space</link>
			<pubDate>Wed, 16 May 2012 05:44:56 +0000</pubDate>
			<description>Hi, I need to write a program which can decrease the free disk space. For eg, if the free disk space is 5GB, the application should ask the user how much space do you want occupy. Application should take the input eg, 2GB and decrease the disk space to 3GB. ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I need to write a program which can decrease the free disk space. For eg, if the free disk space is 5GB, the application should ask the user how much space do you want occupy. Application should take the input eg, 2GB and decrease the disk space to 3GB.</p>

<p>Does anyone have any suggestions on how this can be implemented. Can we create a text file of the size specified by the user?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>anuj_sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/423346/decreasing-disk-space</guid>
		</item>
				<item>
			<title>Jagged Array Null Reference Exception</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423345/jagged-array-null-reference-exception</link>
			<pubDate>Wed, 16 May 2012 05:20:37 +0000</pubDate>
			<description>Hello. I can't seem to figure out why the following code is producing a NullReferenceException. I have checked, and have confirmed that the arrays are in fact not null, all of the elements contain data. So why does VS think something's null? Thanks for your help. // This line produces ...</description>
			<content:encoded><![CDATA[ <p>Hello.<br />
I can't seem to figure out why the following code is producing a NullReferenceException. I have checked, and have confirmed that the arrays are in fact not null, all of the elements contain data. So why does VS think something's null?  Thanks for your help.</p>

<pre><code class="language-cs">// This line produces the error
NeuralNet net = new NeuralNet(CreateWeightsArray(NETWORK_INPUTS.Length), CreateFunctionsArray()); 


private Function[][] CreateFunctionsArray() // Functions are Enums
{
    // NEURONS_PER_LAYER is an int[]
    Function[][] functions = new Function[NEURONS_PER_LAYER.Length][]; 

    for (int x = 0; x &lt; functions.Length; x++)
    {
        functions[x] = new Function[NEURONS_PER_LAYER[x]];
        for (int y = 0; y &lt; functions[x].Length; y++)
            functions[x][y] = DEFAULT_FUNCTION; // Set functions to default function.
    }
    return functions;
}

private double[][][] CreateWeightsArray(int numInputs)
{
    double[][][] weights = new double[NEURONS_PER_LAYER.Length][][];

    for (int x = 0; x &lt; weights.Length; x++)
    {
        weights[x] = new double[NEURONS_PER_LAYER[x]][];
        for (int y = 0; y &lt; weights[x].Length; y++)
        {
            if(x == 0)
                weights[x][y] = new double[numInputs + 1];
            else
                weights[x][y] = new double[NEURONS_PER_LAYER[x - 1] + 1];

            for (int z = 0; z &lt; weights[x][y].Length; z++) // Cycles through and sets all weights.
                weights[x][y][z] = rand.NextDouble();
        }
    }
    return weights;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>kendaop</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423345/jagged-array-null-reference-exception</guid>
		</item>
				<item>
			<title>Display two tables, selective column</title>
			<link>http://www.daniweb.com/web-development/php/threads/423344/display-two-tables-selective-column</link>
			<pubDate>Wed, 16 May 2012 04:54:35 +0000</pubDate>
			<description>Hi, this is my first post. I'm new here and also just start playing with CakePHP. And sorry for my English since its not my native language. I had problem to call data from two tables since I dont know how to do it in CakePHP. So basically I doing ...</description>
			<content:encoded><![CDATA[ <p>Hi, this is my first post. I'm new here and also just start playing with CakePHP. And sorry for my English since its not my native language.</p>

<p>I had problem to call data from two tables since I dont know how to do it in CakePHP.</p>

<p>So basically I doing a simple dictionary that had two tables named users (User) and words (Word).</p>

<h2>User</h2>

<p>id<br />
username<br />
password<br />
role<br />
created<br />
modified<br />
nickname</p>

<h2>Word</h2>

<p>id<br />
word<br />
description<br />
created<br />
modified<br />
user_id</p>

<p>What I want to do now is to display all the contents in Word table. But instead of display user_id I want to display nickname column which is in User table. So now I used find('all') to get all the data in Word table. But I dont know how to used user_id which referring to id in User table to display nickname. That's all.</p>

<p>Hope I explain clear enough. Hope got someone can help me with this. Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>ping0ping</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423344/display-two-tables-selective-column</guid>
		</item>
				<item>
			<title>representing Lan hosts with jTree</title>
			<link>http://www.daniweb.com/software-development/java/threads/423340/representing-lan-hosts-with-jtree</link>
			<pubDate>Wed, 16 May 2012 03:16:27 +0000</pubDate>
			<description>hi, I prepare for a project for LAN monitoring,and I want to display hosts connected to the network with a jTree( the name or the adress of the machine),I do not know where I can start,is there any open source software that allows making something similar and thanks for help</description>
			<content:encoded><![CDATA[ <p>hi,<br />
I prepare for a project for LAN monitoring,and I want to display hosts connected to the network with a jTree( the name or the adress of the machine),I do not know where I can start,is there any open source software that allows making something similar and thanks for help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>zina_a</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/423340/representing-lan-hosts-with-jtree</guid>
		</item>
				<item>
			<title>Adding optional list box on a fly</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423339/adding-optional-list-box-on-a-fly</link>
			<pubDate>Wed, 16 May 2012 03:08:58 +0000</pubDate>
			<description>I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are ...</description>
			<content:encoded><![CDATA[ <p>I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are populated --<br />
box 1 = "product desc"<br />
Box 2 = "inventory"<br />
box 3 = "unit price"</p>

<p>The preceding completes the selection of product A. Now suppose I want to give the user the option of selecting another product B, any ideas on how I can achieve this? Part of the challenge --at least for me, is that this will need to stored to db, so I need to create names for the values of any additional products that are selected.</p>

<p>Any thoughts!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>mbarandao</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423339/adding-optional-list-box-on-a-fly</guid>
		</item>
				<item>
			<title>Profile Update</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423338/profile-update</link>
			<pubDate>Wed, 16 May 2012 02:52:27 +0000</pubDate>
			<description>just keep wondering, is it me or there isn't any prompt that says that i have successfully updated my profile? i tend to click Update Member Profile button several times cause i've been waiting for the prompt or i wasn't sure enough that i have edited/saved it, well i keep ...</description>
			<content:encoded><![CDATA[ <p>just keep wondering, is it me or there isn't any prompt that says that i have successfully updated my profile?<br />
i tend to click Update Member Profile button several times cause i've been waiting for the prompt or i wasn't sure enough that i have edited/saved it,<br />
well i keep searching for that prompt til now but it's not there right?</p>

<p>if not, then wouldn't it be better if there was??</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>azareth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423338/profile-update</guid>
		</item>
				<item>
			<title> javascript with  ajax  function error</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423337/-javascript-with-ajax-function-error</link>
			<pubDate>Wed, 16 May 2012 02:11:42 +0000</pubDate>
			<description> Hi ,anybody plz help me. i created own musttry button(same as like button).what is the problem. this javascript function does not working. planbook is class name. function musttry_add(planbook_id) { $.ajax({ url: $('planbook').val(), type: 'POST', data: { personalId:personalId, planbookId:planbookId }, success: function(data, textStatus, jqXHR){ musttry_get(planbook_id); } }); } function musttry_get(planbook_id) { ...</description>
			<content:encoded><![CDATA[ <p>Hi ,anybody plz help me.</p>

<p>i created own musttry button(same as like button).what is the problem.</p>

<p>this  javascript function does not working.</p>

<p>planbook is class name.</p>

<pre><code class="language-js">function musttry_add(planbook_id)
{
     $.ajax({
            url: $('planbook').val(),
            type: 'POST',
            data: { personalId:personalId,  planbookId:planbookId },
            success: function(data, textStatus, jqXHR){
                musttry_get(planbook_id);
            }

            });
}



function musttry_get(planbook_id) {


     $.ajax({
            url: $('planbook').val(),
            type: 'POST',

            data: { personal_id:planbook_id },      
          $('planbook' + planbook_id + 'likes').text(Data);

            });
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>Vijaysurya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423337/-javascript-with-ajax-function-error</guid>
		</item>
				<item>
			<title>Web Hosting Problem</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/423336/web-hosting-problem</link>
			<pubDate>Wed, 16 May 2012 01:52:22 +0000</pubDate>
			<description>I am using somee.com free hosting. However, my web site cannot read the style sheet. But it can display well in localhost.... HELP. Thank you...</description>
			<content:encoded><![CDATA[ <p>I am using somee.com free hosting. However, my web site cannot read the style sheet. But it can display well in localhost.... HELP. Thank you...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>lhsunshine</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/423336/web-hosting-problem</guid>
		</item>
				<item>
			<title>Extracting infomation from XML</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423335/extracting-infomation-from-xml</link>
			<pubDate>Wed, 16 May 2012 01:27:47 +0000</pubDate>
			<description>Hi, I need some help extracting information from a XML file. So far I am able to extract data from elements that look like the following: &lt;element1&gt;Element Information&lt;/element1&gt; &lt;element2 attribute=”Element 2 Attribute Information” /&gt; But I have come across an element that has got me stumped: &lt;element3&gt;&lt;![CDATA[Information that I need ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I need some help extracting information from a XML file. So far I am able to extract data from elements that look like the following:</p>

<pre><code class="language-cs">&lt;element1&gt;Element Information&lt;/element1&gt;

&lt;element2 attribute=”Element 2 Attribute Information” /&gt;
</code></pre>

<p>But I have come across an element that has got me stumped:</p>

<pre><code class="language-cs">&lt;element3&gt;&lt;![CDATA[Information that I need to extract]]&gt;&lt;/ element3&gt; 
</code></pre>

<p>So I need some help working out how to get the information between &lt;![CDATA[  and  ]]&gt;. Either ignore it or be able it to be viewed as a sub-element of element3.</p>

<p>Here is the code I use to extract the information:</p>

<pre><code class="language-cs">if (topElement.Element("element1") == null)
{
    l.element1Information = "";
}
else
{
    l.element1Information = topElement.Element("element1").Value;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>abathurst</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423335/extracting-infomation-from-xml</guid>
		</item>
				<item>
			<title>self generating form html php</title>
			<link>http://www.daniweb.com/web-development/php/threads/423334/self-generating-form-html-php</link>
			<pubDate>Wed, 16 May 2012 00:51:22 +0000</pubDate>
			<description>i have a form in html. when user hit sumbit. i want to run top php code. when i run it it give me 2 errors Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134 Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134 ...</description>
			<content:encoded><![CDATA[ <p>i have a form in html. when user hit sumbit. i want to run top php code.<br />
when i run it it give me 2 errors</p>

<p>Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134<br />
Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134</p>

<pre><code>&lt;?php
include("connect.php");

//grab submitted data
echo "flag 1";
if(isset($_POST['submit']))
{
    echo "workinging";  
    $reg_error = "";
    echo "herere";
    //check for empty fields
    if(empty($_POST['firstname']) || empty($_POST['lastname']) || empty($_POST['username']) || 
    empty($_POST['password']) || empty($_POST['confirm_password']) || empty($_POST['dob_year']) 
    || empty($_POST['dob_month']) || empty($_POST['dob_day']) || empty($_POST['gender']))
    {
        $reg_error .= "Missing field! Please fill in  all field!";
    }
    else 
    {
        //grab submitted data   
        $firstname =  $_POST['firstname'];
        $lastname = $_POST['lastname'];
        $username = $_POST['username'];
        $password = $_POST['password'];
        $confirm_password = $_POST['confirm_password'];

        $dob_year = $_POST['dob_year'];
        $dob_month = $_POST['dob_month'];
        $dob_day = $_POST['dob_day'];
        $gender = $_POST['gender']; 

        //check len of firstname, lastname, username
        if(strlen($firstname) &gt; 20 || strlen($lastname) &gt; 20 &amp;&amp; strlen($username) &gt; 20)
        {   
            $reg_error .= "Fistname, lastnmae and username must be no more than 25 characters!";
        }
        else
        {
            //check len of passwords
            if(strlen($password) &gt; 25 || strlen($password) &lt; 6)
            {
                $reg_error .= "Password must be between 6 and 25 characters!";
            }   
            else
            {
                //compare password
                if($password != $confirm_password)
                {
                    $reg_error .= "Password do not match!";
                }
                else
                {
                    //check for dob is number
                    if(!(is_numeric($dob_year) || is_numeric($dob_month) || is_numeric($dob_day)))
                    {
                        $reg_error .= "Date of birth must be in number form. For example, 1989/06/09";
                    }
                    else
                    {
                        //check value limit of dob
                        if(strlen($dob_year) &gt; 4 || strlen($dob_month)&gt;2 || strlen($dob_day)&gt;2)
                        {
                            $reg_error .= "Date of birth year musb be 4 characters, month and day must be 2 characters.";
                        }
                        else
                        {
                            //check value of dob
                            if($dob_month &gt; 12 || $dob_day &gt; 31)
                            {
                                $reg_error .= "Date of birth month or day is bigger than expected!";
                            }
                            else
                            {
                                //check for gender
                                if($gender != "Male" &amp;&amp; $gender != "Female")
                                {
                                    $reg_error .= "Gender must be Male or Female!";
                                }
                                else
                                {
                                    //check for existing user
                                    $query = mysql_query("Select * FROM user WHERE username = '$username'");        
                                    if(mysql_num_rows($query) &gt;= 1)
                                    {
                                        $reg_error .= "That username is already taken";
                                    }
                                    else
                                    {
                                        //success
                                        $dob_db = "$dob_year-$dob_month-$dob_day";
                                        $password_db = $password;
                                        switch($gender)
                                        {
                                            case "Male";
                                                $gender_db = "M";
                                            break;
                                                case"Female";
                                            $gender_db = "F";
                                            break;
                                        }
                                        $register = mysql_query("INSERT INTO register VALUES('','$firstname','$lastname','$username','$password','$dob','$gender')");
                                        //header('Location: index.php');
                                        echo"WORKS";
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
        $_SESSION['reg_error'] = $reg_error;      //for errors
        header('Location: register.php');         //go back to register page    
}   
else
{
echo "dead";
}
?&gt;



&lt;html&gt;
&lt;title&gt;Register&lt;/title&gt;
&lt;head&gt;
&lt;link rel = "stylesheet" href = "css.css"&gt;
&lt;/head&gt;
&lt;body&gt;
                         &lt;!-- go to top php --&gt;
    &lt;form action="&lt;?php echo $_SERVER['$PHP_SELF']; ?&gt;" method="post"&gt;
        &lt;?php
        //print errors
        if(array_key_exists('reg_error', $_SESSION) &amp;&amp; !empty($_SESSION['reg_error']))
        {
            echo $_SESSION['reg_error'];
            unset($_SESSION['reg_error']);
        }
        ?&gt;
    Firstname: &lt;input class = "text" type="text" name="firstname"&gt;&lt;br&gt;
    Lastname: &lt;input class = "text" type="text" name="lastname"&gt;&lt;br&gt;
    Username: &lt;input class = "text" type="text" name="username"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
    Password: &lt;input type="password" name="password"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;                  
    Confirm your password: &lt;input type="password" name="confirm_password" size="30"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
    Email: &lt;input type="text" name="email"&gt;&lt;br/&gt;
    DOB:
        &lt;input type='text' name='dob_year' maxlength='4' size='3' value='YYYY'&gt; / 
        &lt;input type='text' name='dob_month' maxlength='2' size='1' value='MM'&gt; /
        &lt;input type='text' name='dob_day' maxlength='2' size='1' value='DD'&gt; &lt;br/&gt;
    Gender:
        &lt;select name="gender"&gt;
             &lt;option&gt;Female&lt;/option&gt;
            &lt;option&gt;Male&lt;/option&gt;
         &lt;/select&gt; 
    &lt;input type="submit" name="submit" value="Register"&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>hwoarang69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423334/self-generating-form-html-php</guid>
		</item>
				<item>
			<title>Hello Everyone</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/423333/hello-everyone</link>
			<pubDate>Wed, 16 May 2012 00:47:31 +0000</pubDate>
			<description>Hello all, my name is Glenn and I live in Carterton, a small town about an hours drive north of Wellington, in New Zealand. I am trying my hand at web design and design, having done more conventional things such as building and joinery in my past. I am also ...</description>
			<content:encoded><![CDATA[ <p>Hello all, my name is Glenn and I live in Carterton, a small town about an hours drive north of Wellington, in New Zealand.<br />
I am trying my hand at web design and design, having done more conventional things such as building and joinery in my past. I am also in the process of re-educating myself with everything that I forgot in high school, with the hope of attending university and getting a meaningful qualification.</p>

<p>I wish you all the best and hope to learn lots from your posts.</p>

<p>Glenn.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>Bluescreendeath</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/423333/hello-everyone</guid>
		</item>
				<item>
			<title>List Box problem</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423332/list-box-problem</link>
			<pubDate>Wed, 16 May 2012 00:35:42 +0000</pubDate>
			<description>System.Data.DataRowView Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping ...</description>
			<content:encoded><![CDATA[ <p>System.Data.DataRowView</p>

<p>Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping cart in which the product that user has chosen will go to. When I click on product category there is no problem, the listbox2 will list all products, BUT when I select a product to go to my shopping cart(listbox3) this message will appear in listbox3 - System.Data.DataRowView</p>

<p>Here are my codes:</p>

<p>'I think the code below is where the problem can be found</p>

<pre><code class="language-vb">Private Sub listCategory_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listCategory.SelectedIndexChanged
        Dim getCategoryDesc As MySqlCommand = New MySqlCommand("Select * from category where catDesc=@field2;", connection)
        Dim reader1 As MySqlDataReader

        Try
            With getCategoryDesc
                .Parameters.AddWithValue("@field2", listCategory.Text)
            End With

            reader1 = getCategoryDesc.ExecuteReader()

            While (reader1.Read())
                txtcatNo.Text = (reader1("catNo"))
            End While
            getCategoryDesc.Dispose()
            reader1.Close()

        Catch ex As Exception

        End Try

        Try
            Dim category As String
            category = listCategory.Text
            Dim sqlcommand As String = "select product.prodNo, product.productDesc from product, category where category.catDesc='" &amp; category &amp; "' and product.catNo=category.catNo;"
            Dim adapter As New MySqlDataAdapter(sqlcommand, connection)
            Dim dataset As New DataSet
            adapter.Fill(dataset, "product")

            With listproduct
                .ValueMember = "prodNo"
                .DisplayMember = ("productDesc").ToString
                .DataSource = dataset.Tables("product")
                .SelectedValue = "prodNo"
                .SelectedIndex = 0
            End With

        Catch ex As Exception
        End Try

    End Sub
</code></pre>

<p>' What the code below does is that when I click on an item that item will be transferred to my shopping cart(listbox3)</p>

<pre><code class="language-vb">    Private Sub listproduct_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listproduct.SelectedIndexChanged
        getprod()

        Try
            Dim i As Integer
            For i = 0 To listproduct.SelectedItems.Count - 1
                'Dim str As String =
                listItemsBought.Items.Add(listproduct.SelectedItems.Item(i))
            Next i
        Catch ex As Exception
        End Try

    End Sub
</code></pre>

<p>so thats my problem you guys. Help would be really appreciated</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Iamkenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423332/list-box-problem</guid>
		</item>
				<item>
			<title>how to create table for date of bith</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/423331/how-to-create-table-for-date-of-bith</link>
			<pubDate>Wed, 16 May 2012 00:04:28 +0000</pubDate>
			<description>hi, just want to maek sure some thing. so i have a table called user. in user table i want to add a field called date of birth. but i dont know which type to choice. it has int, varchar, date, datetime etc. but no date of birth. do i ...</description>
			<content:encoded><![CDATA[ <p>hi, just want to maek sure some thing.<br />
so i have a table called user. in user table i want to add a field called date of birth. but i dont know which type to choice. it has int, varchar, date, datetime etc. but no date of birth.</p>

<p>do i just choice type date?</p>

<p>2nd question.<br />
i also want a field called gender. so user can pick male or female. but i cant find the right type.</p>

<p>do i just choice boolean? 1 or maile and 0 for femail? but i want m for male and f for female</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>hwoarang69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/423331/how-to-create-table-for-date-of-bith</guid>
		</item>
				<item>
			<title>Using SqlDataAdapter to populate an empty SQL Server table</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423330/using-sqldataadapter-to-populate-an-empty-sql-server-table</link>
			<pubDate>Tue, 15 May 2012 23:42:02 +0000</pubDate>
			<description>I have a SQL Server table that has no rows. Programmatically in WinForms C#, I have created a DataTable with the same schema and populated it with data. I would then like to write the contents of this DataTable to the SQL Sever table using a SQLDataAdapter. Since the data ...</description>
			<content:encoded><![CDATA[ <p>I have a SQL Server table that has no rows. Programmatically in WinForms C#, I have created a DataTable with the same schema and populated it with data. I would then like to write the contents of this DataTable to the SQL Sever table using a SQLDataAdapter. Since the data adapter requires at least a SELECT statement, I've coded it like this:</p>

<pre><code class="language-cs">using (SqlDataAdapter oAdapter = new SqlDataAdapter("SELECT * FROM invoice", oConnection))
{
    oAdapter.Fill(oDT);
    oAdapter.Update(oDT);
}
</code></pre>

<p>The trouble with this is that there are no rows returned because the SQL Server table is empty! So it seems the Fill and Update are working with no data, but I know my DataTable has over 7000 rows which I would like saved to the SQL Server table. Obviously, I'm doing something wrong, but I haven't been able to come across anything with a Google search like "SqlDataAdapter update empty SQL Server table" or similar phrases. It's probably a simple solution, so I'm hoping someone out there can tell me what it is. :) Forgive me if I've posted this in the wrong forum. TIA</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>dvongrad</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423330/using-sqldataadapter-to-populate-an-empty-sql-server-table</guid>
		</item>
				<item>
			<title>Select query for multiple tables and group by</title>
			<link>http://www.daniweb.com/web-development/databases/oracle/threads/423328/select-query-for-multiple-tables-and-group-by</link>
			<pubDate>Tue, 15 May 2012 23:18:51 +0000</pubDate>
			<description>Hi, I have following table structures. # Table1 # link - varchar hlink - varchar top-cap - varchar (FK) sub-cap - varchar (FK) lk - varchar(PK) # Table 2 # cap - varchar(PK) caps - varchar captype - varchar top cap and sub-cap in Table1 are FK. They refer cap ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have following table structures.</p>

<h1>Table1</h1>

<p>link -  varchar<br />
hlink - varchar<br />
top-cap - varchar (FK)<br />
sub-cap - varchar (FK)<br />
lk - varchar(PK)</p>

<h1>Table 2</h1>

<p>cap - varchar(PK)<br />
caps - varchar<br />
captype - varchar</p>

<p>top cap and sub-cap in Table1 are FK. They refer cap values of Table2, where cap is PK for Table2. captype in Table2 says if it is of type 'top' or 'sub'.<br />
Now, i need to have a view where i get link and hlink values grouped based on top-cap and next grouping based on sub-cap.</p>

<p>I was trying the following way,</p>

<pre><code class="language-sql">select top-cap, sub-cap, link, hlink, cap from Table1, Table2 GROUP BY top-cap, sub-cap;
</code></pre>

<p>But it didn't work.</p>

<p>Can anyone help me out with writing the query for the same?</p>

<p>Thanks,<br />
VC</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/oracle/129">Oracle</category>
			<dc:creator>VenusCrystal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/oracle/threads/423328/select-query-for-multiple-tables-and-group-by</guid>
		</item>
				<item>
			<title>sql create tabel for dob</title>
			<link>http://www.daniweb.com/web-development/databases/threads/423327/sql-create-tabel-for-dob</link>
			<pubDate>Tue, 15 May 2012 22:57:01 +0000</pubDate>
			<description>hi, just want to maek sure some thing. so i have a table called user. in user table i want to add a field called date of birth. but i dont know which type to choice. it has int, varchar, date, datetime etc. but no date of birth. do i ...</description>
			<content:encoded><![CDATA[ <p>hi, just want to maek sure some thing.<br />
so i have a table called user. in user table i want to add a field called date of birth. but i dont know which type to choice. it has int, varchar, date, datetime etc. but no date of birth.</p>

<p>do i just choice type date?</p>

<p>2nd question.<br />
i also want a field called gender. so user can pick male or female. but i cant find the right type.</p>

<p>do i just choice boolean? 1 or maile and 0 for femail?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>hwoarang69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/423327/sql-create-tabel-for-dob</guid>
		</item>
				<item>
			<title>How to Create a Folder Using code</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/423326/how-to-create-a-folder-using-code</link>
			<pubDate>Tue, 15 May 2012 22:56:10 +0000</pubDate>
			<description>Hello everyone, can some one help me with the code to create a folder by code in vb6? The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so when logged on can ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone, can some one help me with the code to create a folder by code in vb6?<br />
The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so when logged on can only access the pre created folder by his/her name,thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/visual-basic-4-5-6/4">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Bile</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/423326/how-to-create-a-folder-using-code</guid>
		</item>
				<item>
			<title>Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\re</title>
			<link>http://www.daniweb.com/web-development/php/threads/423325/parse-error-syntax-error-unexpected-end-in-cxampphtdocslogin_testre</link>
			<pubDate>Tue, 15 May 2012 22:52:06 +0000</pubDate>
			<description>sorry, i forgot to put php code. Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on line 152 line 152 is the last lne &lt;/form&gt; &lt;?php include(&quot;connect.php&quot;); //grab submitted data if(isset($_POST['submit'])) { //grab submitted data $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $username = $_POST['username']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; ...</description>
			<content:encoded><![CDATA[ <p>sorry, i forgot to put php code.</p>

<p>Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on line 152<br />
line 152 is the last lne &lt;/form&gt;</p>

<pre><code>&lt;?php
include("connect.php");

//grab submitted data
if(isset($_POST['submit']))
{
    //grab submitted data
    $firstname =  $_POST['firstname'];
    $lastname = $_POST['lastname'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $confirm_password = $_POST['confirm_password'];

    $dob_year = $_POST['dob_year'];
    $dob_month = $_POST['dob_month'];
    $dob_day = $_POST['dob_day'];
    $gender = $_POST['gender'];

    $reg_error = "";

    //check for empty fields
    if(empty($_POST['firstname']) || empty($_POST['lastname']) || empty($_POST['username']) || 
    empty($_POST['password']) || empty($_POST['confirm_password']) || empty($_POST['dob_year']) 
    || empty($_POST['dob_month']) || empty($_POST['dob_day']) || empty($_POST['gender']))
    {
        $reg_error .= "Missing field! Please fill in  all field!";
    }
    else 
    { 
        //check len of firstname, lastname, username
        if(strlen($firstname) &gt; 20 || strlen($lastname) &gt; 20 &amp;&amp; strlen($username) &gt; 20)
        {   
            $reg_error .= "Fistname, lastnmae and username must be no more than 25 characters!";
        }
        else
        {
            //check len of passwords
            if(strlen($password) &gt; 25 || strlen($password) &lt; 6)
            {
                $reg_error .= "Password must be between 6 and 25 characters!";
            }   
            else
            {
                //compare password
                if($password != $confirm_password)
                {
                    $reg_error .= "Password do not match!";
                }
                else
                {
                    //check for dob is number
                    if(!(is_numeric($dob_year) || is_numeric($dob_month) || is_numeric($dob_day)))
                    {
                        $reg_error .= "Date of birth must be in number form. For example, 1989/06/09";
                    }
                    else
                    {
                        //check value limit of dob
                        if(strlen($dob_year) &gt; 4 || strlen($dob_month)&gt;2 || strlen($dob_day)&gt;2)
                        {
                            $reg_error .= "Date of birth year musb be 4 characters, month and day must be 2 characters.";
                        }
                        else
                        {
                            //check value of dob
                            if($dob_month &gt; 12 || $dob_day &gt; 31)
                            {
                                $reg_error .= "Date of birth month or day is bigger than expected!";
                            }
                            else
                            {
                                //check for gender
                                if($gender != "Male" &amp;&amp; $gender != "Female")
                                {
                                    $reg_error .= "Gender must be Male or Female!";
                                }
                                else
                                {
                                    //check for existing user
                                    $query = mysql_query("Select * FROM user WHERE username = '$username'");        
                                    if(mysql_num_rows($query) &gt;= 1)
                                    {
                                        $reg_error .= "That username is already taken";
                                    }
                                    else
                                    {
                                        //success
                                        $dob_db = "$dob_year-$dob_month-$dob_day";
                                        $password_db = $password;
                                        switch($gender)
                                        {
                                            case "Male";
                                                $gender_db = "M";
                                            break;
                                                case"Female";
                                            $gender_db = "F";
                                            break;
                                        }
                                        $register = mysql_query("INSERT INTO register VALUES('','$firstname','$lastname','$username','$password','$dob','$gender')");
                                        //change to header(LOCTION
                                        die("You have been registered! &lt;a href='index.php'&gt;Return&lt;/a&gt; to login page");
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }                                           
?&gt;

&lt;html&gt;
&lt;title&gt;Register&lt;/title&gt;
&lt;head&gt;
&lt;link rel = "stylesheet" href = "css.css"&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form action="register.php" method="post"&gt;
        &lt;?php
        //print errors
        if(array_key_exists('reg_error', $_SESSION) &amp;&amp; !empty($_SESSION['reg_error']))
        {
            echo $_SESSION['reg_error'];
            unset($_SESSION['reg_error']);
        }
        ?&gt;
    Firstname: &lt;input class = "text" type="text" name="firstname"&gt;&lt;br&gt;
    Lastname: &lt;input class = "text" type="text" name="lastname"&gt;&lt;br&gt;
    Username: &lt;input class = "text" type="text" name="username"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
    Password: &lt;input type="password" name="password"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;                  
    Confirm your password: &lt;input type="password" name="confirm_password" size="30"&gt;&lt;br&gt;
    &lt;!-- HINT --&gt;
    &lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
    Email: &lt;input type="text" name="email"&gt;&lt;br/&gt;
    DOB:
        &lt;input type='text' name='dob_year' maxlength='4' size='3' value='YYYY'&gt; / 
        &lt;input type='text' name='dob_month' maxlength='2' size='1' value='MM'&gt; /
        &lt;input type='text' name='dob_day' maxlength='2' size='1' value='DD'&gt; &lt;br/&gt;
    Gender:
        &lt;select name="gender"&gt;
             &lt;option&gt;Female&lt;/option&gt;
            &lt;option&gt;Male&lt;/option&gt;
         &lt;/select&gt; 
    &lt;input type="submit" value="Register"&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>hwoarang69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423325/parse-error-syntax-error-unexpected-end-in-cxampphtdocslogin_testre</guid>
		</item>
				<item>
			<title>NumberFormatException in parseInt</title>
			<link>http://www.daniweb.com/software-development/java/threads/423324/numberformatexception-in-parseint</link>
			<pubDate>Tue, 15 May 2012 22:43:56 +0000</pubDate>
			<description>i have a program that converts a text string into a hash sequence using parseInt(). but parseInt() keeps throwing a NumberFormatException. any ideas why? is it becuase i'm using &lt;= instead of = in my for loop? EDIT: ingnore r. it's not being used. sorry. package test; import java.util.Random; import ...</description>
			<content:encoded><![CDATA[ <p>i have a program that converts  a text string into a hash sequence using parseInt(). but parseInt()  keeps throwing a NumberFormatException.</p>

<p>any ideas why? is it becuase i'm using &lt;= instead of = in my for loop?</p>

<p>EDIT: ingnore r. it's not being used. sorry.</p>

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

import java.util.Random;
import java.util.Scanner;

public class minecraft_check {

    public static void main(String[] args)
    {
        String yn =  null;
        Random rand = new Random();
        String r = null;
        int hash = 0;
        do
        {
            do
            {
            System.out.print("Enter the Seed to be converted (max 30 chars.): ");
            r = new Scanner(System.in).nextLine();
            }
            while(r.length() &gt; 31);
            hash = getHashCode(r, rand);
            System.out.println("\nYour Hash code for " + r + " is: " + hash + "\n\n");
            System.out.println("Again? (y/n)");
            yn = new Scanner(System.in).nextLine();
        }while(yn != "n" &amp;&amp; yn != "N");
        System.exit(0);
    }


    public static int getHashCode(String seed, Random rand)
    {
        char[] split = seed.toCharArray();
        int generatornum = 0, r = 0;
        for(int i = 0; i &lt;= seed.length();)
        {
             r = rand.nextInt(256);
            if(!(r == 0 || r == 256))
            {
                generatornum+=(Integer.parseInt(Integer.toString((int)split[i]), 256)) * Math.pow(31,seed.length()-i);
                i++;
            }else continue;
        }
        return generatornum;
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>TTTHXC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/423324/numberformatexception-in-parseint</guid>
		</item>
				<item>
			<title>how can i work with forms with .htaccess?</title>
			<link>http://www.daniweb.com/web-development/php/threads/423323/how-can-i-work-with-forms-with-.htaccess</link>
			<pubDate>Tue, 15 May 2012 21:56:04 +0000</pubDate>
			<description>hi guys, well i am using .htaccess in my website to make SEO friendly urls.. the urls are supposed to look like this: http://localhost/home or http://locahost/singup it is working nicely.. the problem is when i came to makin forms.. how should i submit my forms?? the .htaccess takes all the ...</description>
			<content:encoded><![CDATA[ <p>hi guys, well i am using .htaccess in my website to make SEO friendly urls..<br />
the  urls are supposed to look like this:<br />
<a href="http://localhost/home" rel="nofollow">http://localhost/home</a><br />
or<br />
<a href="http://locahost/singup" rel="nofollow">http://locahost/singup</a></p>

<p>it is working nicely.. the problem is when i came to makin forms..<br />
how should i submit my forms??<br />
the .htaccess takes all the requests as a files and redirects all the calls to index.php<br />
here is my .htaccess file that i made:</p>

<pre><code>RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?url=$1 [L]
</code></pre>

<p>and here is my form:</p>

<pre><code>&lt;u&gt;&lt;center&gt;&lt;h1&gt;Sign Up!&lt;/h1&gt;&lt;/center&gt;&lt;/u&gt;

                    &lt;form method="post" action="signup/process/"&gt;
                        &lt;label for="Name"&gt;First Name:&lt;/label&gt;
                        &lt;input type="text" name="Name1" id="Name" /&gt;

                        &lt;label for="Name"&gt;Last Name:&lt;/label&gt;
                        &lt;input type="text" name="Name2" id="Name2" /&gt;

                        &lt;label for="City"&gt;Email:&lt;/label&gt;
                        &lt;input type="email1" name="Email" id="Email" /&gt;
                        &lt;label for="City"&gt;Re-enter Email:&lt;/label&gt;
                        &lt;input type="email2" name="Email2" id="Email2" /&gt;
                        &lt;label for="Email"&gt;New Password:&lt;/label&gt;
                        &lt;input type="password" name="Password" id="Password" /&gt;
                        &lt;label for"I am"&gt;I am:&lt;/label&gt; 
                        &lt;select name="iam" id="select" style="height: 50px;"&gt;
                            &lt;option id ="select"&gt;Male&lt;/option&gt;
                            &lt;option id="select"&gt;Female&lt;/option&gt;
                        &lt;/select&gt;
                        &lt;label for="birthday"&gt;Birthday&lt;/lable&gt;
                            &lt;table&gt;
                                &lt;tr&gt;&lt;td&gt;&lt;select name="bday" id="select_small"&gt;
                                            &lt;option&gt;Day:&lt;/option&gt;
                                            &lt;option&gt;1&lt;/option&gt;
                                        &lt;/select&gt;&lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;select name="bmonth" id="select_small"&gt;
                                            &lt;option&gt;Month:&lt;/option&gt;
                                            &lt;option&gt;January&lt;/option&gt;
                                        &lt;/select&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;&lt;select name="byear" id="select_small"&gt;
                                            &lt;option id ="select"&gt;Year:&lt;/option&gt;
                                            &lt;option id="select"&gt;1990&lt;/option&gt;
                                        &lt;/select&gt;
                                    &lt;/td&gt;
                                &lt;/tr&gt;

                            &lt;/table&gt;


                            &lt;input type="submit" name="submit" value="Submit" class="submit-button" /&gt;
                    &lt;/form&gt;



                &lt;/div&gt;
            &lt;/div&gt;
</code></pre>

<p>so please tell me what is wrong with my code above??<br />
whenever i submit something, the url looks as follows:<br />
<a href="http://localhost/A-zone/%3C?php%20$url%20=%20$_SERVER%5B%27HTTP_HOST%27%5D;%20echo%20$url;%20?%3E" rel="nofollow">http://localhost/A-zone/%3C?php%20$url%20=%20$_SERVER[%27HTTP_HOST%27];%20echo%20$url;%20?%3E</a></p>

<p>it torally doesn't make sense to me! please tell me wt to do...<br />
thanks to anyone who tries to help me..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>the prince Awah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423323/how-can-i-work-with-forms-with-.htaccess</guid>
		</item>
				<item>
			<title>Parse error:</title>
			<link>http://www.daniweb.com/web-development/php/threads/423322/parse-error</link>
			<pubDate>Tue, 15 May 2012 21:45:38 +0000</pubDate>
			<description>Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on last line 2nd question. what is different between name, class, and id? if i just use id will it make difference? &lt;form action=&quot;register.php&quot; method=&quot;post&quot;&gt; &lt;p id = &quot;reg_error&quot;&gt;&lt;/p&gt; Firstname: &lt;input class = &quot;text&quot; type=&quot;text&quot; name=&quot;firstname&quot;&gt;&lt;br&gt; Lastname: &lt;input class = &quot;text&quot; type=&quot;text&quot; ...</description>
			<content:encoded><![CDATA[ <p>Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on last line<br />
2nd question. what is different between name, class, and id? if i just use id will it make difference?</p>

<pre><code>&lt;form action="register.php" method="post"&gt;
&lt;p id = "reg_error"&gt;&lt;/p&gt;
Firstname: &lt;input class = "text" type="text" name="firstname"&gt;&lt;br&gt;
Lastname: &lt;input class = "text" type="text" name="lastname"&gt;&lt;br&gt;
Username: &lt;input class = "text" type="text" name="username"&gt;&lt;br&gt;
&lt;!-- HINT --&gt;
&lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
Password: &lt;input type="password" name="password"&gt;&lt;br&gt;
&lt;!-- HINT --&gt;
&lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;                  
Confirm your password: &lt;input type="password" name="confirm_password" size="30"&gt;&lt;br&gt;
&lt;!-- HINT --&gt;
&lt;p class="hint"&gt;20 characters maximum (letters and numbers only)&lt;/p&gt;
Email: &lt;input type="text" name="email"&gt;&lt;br/&gt;
DOB:
    &lt;input type='text' name='dob_year' maxlength='4' size='3' value='YYYY'&gt; / 
    &lt;input type='text' name='dob_month' maxlength='2' size='1' value='MM'&gt; /
    &lt;input type='text' name='dob_day' maxlength='2' size='1' value='DD'&gt; &lt;br/&gt;
Gender:
    &lt;select name="gender"&gt;
         &lt;option&gt;Female&lt;/option&gt;
        &lt;option&gt;Male&lt;/option&gt;
     &lt;/select&gt; 
&lt;input type="submit" value="Register"&gt;
&lt;/form&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>hwoarang69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423322/parse-error</guid>
		</item>
				<item>
			<title>Having Issues with Login System</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423321/having-issues-with-login-system</link>
			<pubDate>Tue, 15 May 2012 21:09:39 +0000</pubDate>
			<description>Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is. Could someone help, thanks! class TestLogin { public: char ...</description>
			<content:encoded><![CDATA[ <p>Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is.</p>

<p>Could someone help, thanks!</p>

<pre><code class="language-cpp">class TestLogin
{
    public:
    char name[16];
    char pword[10];

        void sendname();
        void sendpassword();
};

#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;

using namespace std;

void TestLogin::sendname()
{
    cout &lt;&lt; "Enter your desired username(max 16 characters): ";
    cin &gt;&gt; name;
    cin.ignore(numeric_limits&lt;streamsize&gt;::max(), '\n');
};

void TestLogin::sendpassword()
{
    cout &lt;&lt; "Enter your password(max 10 characters): ";
    cin &gt;&gt; pword;
    cin.ignore(numeric_limits&lt;streamsize&gt;::max(), '\n');
};

int ListMenu()
{
    int option;
    cout &lt;&lt; "Welcome to the login menu..." &lt;&lt; endl;
    cout &lt;&lt; "\tPress '1' to login." &lt;&lt; endl;
    cout &lt;&lt; "\tPress '2' to register." &lt;&lt; endl;
    cout &lt;&lt; "Your option: ";
    cin &gt;&gt; option;
    cin.ignore(numeric_limits&lt;streamsize&gt;::max(), '\n');
    return option;
};

int main()
{
    ifstream readFile ("list.txt");
    ofstream writeFile ("list.txt", ios::app);
    TestLogin charInfo;
    do
    {
        int option = ListMenu();
        cout &lt;&lt; endl;

        if(option == 1)
        {
            string username;
            string password;
            string temp;
            string temp1;

            if(readFile.is_open())
            {
                cout &lt;&lt; "Enter Name: ";
                cin &gt;&gt; username;
                cout &lt;&lt; "Enter Password: ";
                cin &gt;&gt; password;
                cout &lt;&lt; endl;
                readFile &gt;&gt; temp;
                cout &lt;&lt; "scanning for username...";


                if(username == temp)
                {
                    cout &lt;&lt; "\nusername found, checking password" &lt;&lt; endl;

                    readFile&gt;&gt;temp1;
                    if(password == temp1)
                    {
                        cout &lt;&lt; "Welcome " &lt;&lt; username &lt;&lt; "!" &lt;&lt; endl;
                        break;
                    }
                }
                else
                {
                    cout &lt;&lt; "Invalid username or password." &lt;&lt; endl;
                }
                readFile.close();
            }
        }
        cout &lt;&lt; endl;
        if(option == 2)
        {
            charInfo.sendname();
            cout &lt;&lt; endl;
            charInfo.sendpassword();
            cout &lt;&lt; endl;
            if (writeFile.is_open())
            {
                writeFile &lt;&lt; charInfo.name &lt;&lt; endl;
                writeFile &lt;&lt; charInfo.pword &lt;&lt; endl;
                writeFile.close();
            }
            else
            {
                cout &lt;&lt; "Unable to open file";
            }
        }
    }while(1);
    return 0;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>nathaniscool99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423321/having-issues-with-login-system</guid>
		</item>
				<item>
			<title>Calling localhost project on different machine on same LAN</title>
			<link>http://www.daniweb.com/web-development/php/threads/423320/calling-localhost-project-on-different-machine-on-same-lan</link>
			<pubDate>Tue, 15 May 2012 20:54:33 +0000</pubDate>
			<description>Hi, I am using WAMP on Win7 and my root folder is obviously `c:\wamp\www\` On same computer I use `http://localhost/project/` to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I am using WAMP on Win7 and my root folder is obviously <code>c:\wamp\www\</code></p>

<p>On same computer I use <code><a href="http://localhost/project/" rel="nofollow">http://localhost/project/</a></code> to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming for it like <code><a href="http://project.local/" rel="nofollow">http://project.local/</a></code></p>

<p>As far as I know I should create a file and place under somewhere which resolves all.</p>

<p>Can you please enlighting me for this issue.</p>

<p>Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423320/calling-localhost-project-on-different-machine-on-same-lan</guid>
		</item>
				<item>
			<title>Computer Died moving files</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/423319/computer-died-moving-files</link>
			<pubDate>Tue, 15 May 2012 20:40:23 +0000</pubDate>
			<description>Computer died with XP. Bought new one with Win7-64. I was using the Caribean Wallpaper with a small peninsula and two Palm trees. It wasn't included with the stuff in Win7 and I want to bring it over, but in Windows Explorer I cannot find it on the hardrive that ...</description>
			<content:encoded><![CDATA[ <p>Computer died with XP. Bought new one with Win7-64. I was using the Caribean Wallpaper with a small peninsula and two Palm trees. It wasn't included with the stuff in Win7 and I want to bring it over, but in Windows Explorer I cannot find it on the hardrive that XP is on. Can anyone point me in the right direction? Thanks, Giddyup</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>GiddyupGilbert</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/423319/computer-died-moving-files</guid>
		</item>
				<item>
			<title>Alien Object and JS in Chrome Inspect Element</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423318/alien-object-and-js-in-chrome-inspect-element</link>
			<pubDate>Tue, 15 May 2012 20:22:57 +0000</pubDate>
			<description>Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: &lt;object type=&quot;{0C55C096-0F1D-4F28-AAA2-85EF591126E7}&quot; cotype=&quot;cs&quot; id=&quot;cosymantecbfw&quot; style=&quot;width: 0px; height: 0px; display: block;&quot;&gt;&lt;/object&gt; Then in the head area: &lt;script type=&quot;text/javascript&quot; id=&quot;WCIDWAXScript&quot; defer=&quot;defer&quot;&gt;function WCIDCollect() { var VIS_SIG_TEXT = &quot;T&quot;; var VIS_SIG_IMAGE = ...</description>
			<content:encoded><![CDATA[ <p>Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies:</p>

<p>Directly below the html tag:</p>

<pre><code class="language-js">&lt;object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"&gt;&lt;/object&gt;
</code></pre>

<p>Then in the head area:</p>

<pre><code class="language-js">&lt;script type="text/javascript" id="WCIDWAXScript" defer="defer"&gt;function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = "G"; var VIS_SIG_INPUT = "I"; var VIS_SIG_BUTTON = "B"; var VIS_SIG_CHECKBOX = "C"; var VIS_SIG_RADIO = "R"; var VIS_SIG_SELECT = "S"; var VIS_SIG_LINE = "L"; var VIS_SIG_FILE = "F"; var VIS_SIG_NEWLINE = "n"; function PageData() { this.separator = String.fromCharCode(1); this.output = new Array(); this.backgroundImages = new Array(); this.backgroundImage = ""; this.bodyHTML = ""; this.bodyText = ""; this.buttonText = new Array(); this.comments = new Array(); this.forms = new Array(); this.frames = new Array(); this.iFrames = new Array(); this.inputs = new Array(); this.images = new Array(); this.linkTags = new Array(); this.areaTags = new Array(); this.aTags = new Array(); this.pageSignature = ""; this.referrer = ""; this.scripts = new Array(); this.title = ""; this.url = ""; this.hasFlash = false; this.numPTags = 0; this.numVisiblePTags = 0; this.numBRTags = 0; this.numTRTags =  .......... &lt;/script&gt;  [TRUNCATED BY ME]
</code></pre>

<p>This is the first time I've noticed them. Are they in any way involved with the Inspect Element or could there be something nefarious going on? I've got an inkling it's built in to Inspect Element, as View Page Source does not show these elements. Every site, both local and remote show the same 2 items. I've tried Googling but I can't find anything. ANybody come across this or have any info?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>diafol</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423318/alien-object-and-js-in-chrome-inspect-element</guid>
		</item>
				<item>
			<title>Adding Single 8GB Ram to 2 x 4GB </title>
			<link>http://www.daniweb.com/hardware-and-software/pc-hardware/motherboards-cpus-and-ram/threads/423317/adding-single-8gb-ram-to-2-x-4gb-</link>
			<pubDate>Tue, 15 May 2012 19:54:20 +0000</pubDate>
			<description>I currently have 8GB installed (2x4GB) and am wanting to add another single 8GB stick to give me 16GB but the CAS timing on my RAM is 9-9-9-24 and the new one is 10-10-10-27 the make is the same would this be possible to add the single 8GB stick or ...</description>
			<content:encoded><![CDATA[ <p>I currently have 8GB installed (2x4GB) and am wanting to add another single 8GB stick to give me 16GB but the CAS timing on my RAM is 9-9-9-24 and the new one is 10-10-10-27 the make is the same would this be possible to add the single 8GB stick or would this cause issues??</p>

<p>Thanks for any answers</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/pc-hardware/motherboards-cpus-and-ram/104">Motherboards, CPUs and RAM</category>
			<dc:creator>sgunnery</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/pc-hardware/motherboards-cpus-and-ram/threads/423317/adding-single-8gb-ram-to-2-x-4gb-</guid>
		</item>
				<item>
			<title>SoRayPickAction in Open Inventor? </title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423315/soraypickaction-in-open-inventor-</link>
			<pubDate>Tue, 15 May 2012 19:13:38 +0000</pubDate>
			<description>Hi there, I'm trying to implement SoRayPickAction that will, when the mouse is clicked, select a particular node so then I can translate, rotate, etc. I have three nodes: desk, lamp, and frame (picture frame). However, I don't think that my code is at all right. I also have various ...</description>
			<content:encoded><![CDATA[ <p>Hi there,</p>

<p>I'm trying to implement SoRayPickAction that will, when the mouse is clicked, select a particular node so then I can translate, rotate, etc. I have three nodes: desk, lamp, and frame (picture frame). However, I don't think that my code is at all right. I also have various methods such a MouseButtonCallback (which will check if the mouse is clicked and then use a navigator) and MouseMoveCallback (same idea). So here's the code that I have, but do you have any suggestions? Right now, well, it doesn't do anything.</p>

<pre><code class="language-cpp">SbViewportRegion viewport(400,300); 
    SoRayPickAction m(viewport); 
    m.setRay(SbVec3f(0.0,0.0,0.0), SbVec3f(0.0,0.0,-1.0));
    m.apply(callback_node);
    const SoPickedPoint *mpp = m.getPickedPoint(); 
    if(mpp != NULL) {
        std::cout &lt;&lt; "test" &lt;&lt; std::endl;
    }
</code></pre>

<p>Might you also know of an action in OpenInventor that can "place" a node in the scene, i.e. place the lamp on top of the desk, frame on the wall, etc. Is it with paths? I don't even know what I'm looking for, unfortunately. Thanks so much for your help!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>dark_sider_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423315/soraypickaction-in-open-inventor-</guid>
		</item>
				<item>
			<title>Error (Index was outside the bounds of the array.)</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/423314/error-index-was-outside-the-bounds-of-the-array</link>
			<pubDate>Tue, 15 May 2012 18:48:13 +0000</pubDate>
			<description>Hi all, I am using DataReader for the first time and i faced more than one error and this is the last one ((Index was outside the bounds of the array.)) and it's point to this line Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection) I think I have problem with closing ...</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I am using DataReader for the first time and i faced more than one error and this is the last one</p>

<p>((Index was outside the bounds of the array.))</p>

<p>and it's point to this line</p>

<pre><code>Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection)
</code></pre>

<p>I think I have problem with closing the data reader but I tried several things and its still not working</p>

<pre><code>Public Sub LogIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click


        Dim connStr As String = "Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Users\sony\Documents\Visual Studio 2010\Projects\SADA\SADA\App_Data\SADA2.mdf';Integrated Security=True;User Instance=True"
        Dim sqlconnet As Data.SqlClient.SqlConnection
        Dim MyComm As Data.SqlClient.SqlCommand
        Dim dr As SqlDataReader
        Dim UserType As String
        Dim Pateint As String
        Dim SLP As String
        Dim Admin As String
        Dim logID As String
        Dim PassW As String

        sqlconnet = New Data.SqlClient.SqlConnection()
        sqlconnet.ConnectionString = connStr
        MyComm = New Data.SqlClient.SqlCommand("", sqlconnet)
        MyComm.CommandType = Data.CommandType.Text
        '  MyComm.CommandText = "SELECT * FROM LoginTable WHERE (loginId ='" &amp; TextBox1.Text &amp; "') AND (Password = '" &amp; TextBox2.Text &amp; "') "
        MyComm.CommandText = "SELECT * FROM LoginTable WHERE (loginId ='" &amp; TextBox1.Text &amp; "') AND (Password = '" &amp; TextBox2.Text &amp; "') "
        sqlconnet.Open()
        dr = MyComm.ExecuteReader()
        dr.Read()
        logID = dr.ToString(0)
        PassW = dr.ToString(1)
        Admin = dr.ToString(2)
        SLP = dr.ToString(3)
        Pateint = dr.ToString(4)
        UserType = dr.ToString(5)





        Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection)
        If result.HasRows = False Then
            MsgBox("Error")

        ElseIf result.HasRows = True And UserType = "S" Then
            '  Session("logAccount") = TextBox3.Text
            Response.Redirect("SLPMain.aspx")
        ElseIf result.HasRows = True And UserType = "A" Then
            Response.Redirect("Admin.aspx")
        ElseIf result.HasRows = True And UserType = "P" Then
            Response.Redirect("WebForm4.aspx")

        End If
        result.Close()
    End Sub
</code></pre>

<p>Plz help me !!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Maha Sh.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/423314/error-index-was-outside-the-bounds-of-the-array</guid>
		</item>
				<item>
			<title>new guy</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/423313/new-guy</link>
			<pubDate>Tue, 15 May 2012 18:41:32 +0000</pubDate>
			<description>Hello all, I'm. new to the site and the IT field.</description>
			<content:encoded><![CDATA[ <p>Hello all, I'm. new to the site and the IT field.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>jhill123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/423313/new-guy</guid>
		</item>
				<item>
			<title>Best way to connect to server</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/423312/best-way-to-connect-to-server</link>
			<pubDate>Tue, 15 May 2012 18:31:08 +0000</pubDate>
			<description>I'm developing an app that will be sending data back to a server every minute. Along with this data it will also be possible that someone running a program from a computer can updata the data in the database. When they update the data in database I will need to ...</description>
			<content:encoded><![CDATA[ <p>I'm developing an app that will be sending data back to a server every minute. Along with this data it will also be possible that someone running a program from a computer can updata the data in the database. When they update the data in database I will need to send the new info to the device. I was planning on doing this via long polling, but as I understand it this would require me to setup a second connection to send the data off every minute.</p>

<p>How would you suggest opening a data connection between a device and a server so that data can be transfered both ways? Keep in mind that the IP address of the device might be unmapble due to GPRS and that the IP address might change via tower hopping.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>GH23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/423312/best-way-to-connect-to-server</guid>
		</item>
				<item>
			<title>adding css at runtime using jquery</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423311/adding-css-at-runtime-using-jquery</link>
			<pubDate>Tue, 15 May 2012 18:11:51 +0000</pubDate>
			<description>Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: &lt;table width='100%' cellpadding='0' cellspacing='0' &gt; &lt;tr&gt; &lt;td valign='top' width='70%'&gt;&lt;span class='header-text'&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; I need to add css style to the table. I can access span element of td within table. ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have to add css attribute at runtime using jquery..<br />
For example i have the following code:</p>

<pre><code class="language-js">&lt;table width='100%' cellpadding='0'  cellspacing='0' &gt;
    &lt;tr&gt;
      &lt;td valign='top' width='70%'&gt;&lt;span class='header-text'&gt; &lt;/span&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
</code></pre>

<p>I need to add css style to the table. I can access span element of td within table. From that how do i get table element.</p>

<p>Help immediately required.</p>

<p>Thanks,<br />
VC</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>VenusCrystal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423311/adding-css-at-runtime-using-jquery</guid>
		</item>
				<item>
			<title>experience</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/423310/experience</link>
			<pubDate>Tue, 15 May 2012 17:44:59 +0000</pubDate>
			<description>I am in the process of trying to get into the IT field.I just passed my Net+ cert, and now need some help volunteering to get some real life experience in the maryland are.a</description>
			<content:encoded><![CDATA[ <p>I am in the process of trying to get into the IT field.I just passed my Net+ cert, and now need some help volunteering to get some real life experience in the maryland are.a</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>jhill123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/423310/experience</guid>
		</item>
				<item>
			<title>how to run servlet automatically</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/423309/how-to-run-servlet-automatically</link>
			<pubDate>Tue, 15 May 2012 17:25:51 +0000</pubDate>
			<description>how to run servlet automatically on everytime browserstart up</description>
			<content:encoded><![CDATA[ <p>how to run servlet automatically on everytime browserstart up</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>bcwoodz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/423309/how-to-run-servlet-automatically</guid>
		</item>
				<item>
			<title>Line-rect collision detection</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423308/line-rect-collision-detection</link>
			<pubDate>Tue, 15 May 2012 17:14:31 +0000</pubDate>
			<description>Hello, I'm fairly new to programming, and I'm not exactly sure how to do line-rect collision detection. If it helps, I'm using SFML 2. Can someone explain to me how I would go about coding line-rect collision detection? Thanks in advance.</description>
			<content:encoded><![CDATA[ <p>Hello,<br />
I'm fairly new to programming, and I'm not exactly sure how to do line-rect collision detection.  If it helps, I'm using SFML 2.  Can someone explain to me how I would go about coding line-rect collision detection?<br />
Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Chuckleluck</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423308/line-rect-collision-detection</guid>
		</item>
				<item>
			<title>Operator Overloading</title>
			<link>http://www.daniweb.com/software-development/threads/423307/operator-overloading</link>
			<pubDate>Tue, 15 May 2012 16:49:57 +0000</pubDate>
			<description>I'm having a really werid issue with overloading the insertion operator (&lt;&lt;). Here's my code snippet: class instream { void operator&lt;&lt; (instream&amp;, char[]); }; Visual Studio keeps telling me I have &quot;too many arguments for binary operator &lt;&lt;&quot;. I don't see the problem here. Is there something obvious I'm missing?</description>
			<content:encoded><![CDATA[ <p>I'm having a really werid issue with overloading the insertion operator (&lt;&lt;).<br />
Here's my code snippet:</p>

<pre><code>    class instream
    {
        void operator&lt;&lt; (instream&amp;, char[]);
    };
</code></pre>

<p>Visual Studio keeps telling me I have "too many arguments for binary operator &lt;&lt;". I don't see the problem here. Is there something obvious I'm missing?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>C++ Forever</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/423307/operator-overloading</guid>
		</item>
				<item>
			<title>How to encrypt admin credentials during initialization of an application</title>
			<link>http://www.daniweb.com/software-development/java/threads/423306/how-to-encrypt-admin-credentials-during-initialization-of-an-application</link>
			<pubDate>Tue, 15 May 2012 16:41:49 +0000</pubDate>
			<description>I am developing an java application for for login autentication form, I have pre saved username and password in my database. When admin enter his credetials, it validates to my DB and gives access to actual application Now, my application is used by admin and database is managed by DBA. ...</description>
			<content:encoded><![CDATA[ <p>I am developing an java application for for login autentication form, I have pre saved username and password in my database. When admin enter his credetials, it validates to my DB and gives access to actual application</p>

<p>Now, my application is used by admin and database is managed by DBA. and I have a database named with USERS in which I saved admin credentials.<br />
when DBA tries to access USERS database, so that he can easily get access admin application using credentials in USERS database.</p>

<p>For all this, I want to encrypt admin credentials. I wrote a program where my admin application automatically creates USERS database and its credentials in the begining itself and then it asks me to enter credentials.</p>

<p>How could I encrypt admin credentials during initialization..Please help.</p>

<p>Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>venkateshyeluri</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/423306/how-to-encrypt-admin-credentials-during-initialization-of-an-application</guid>
		</item>
				<item>
			<title>Help with Python Maya Programming!</title>
			<link>http://www.daniweb.com/software-development/python/threads/423305/help-with-python-maya-programming</link>
			<pubDate>Tue, 15 May 2012 16:40:20 +0000</pubDate>
			<description> import maya import sys import os from functools import partial import maya.cmds as cmds def customVer(FileName, version): #create a file path with the file you have and version you want version = 9000+int(FileName[(location-3):location]) newFileName = str((myFileName[0:(location-3)])) version = str(version-1) version = version[1:] newFileName = newFileName+str(version) return newFileName def newFile(myFileName): #find ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-py">import maya
import sys
import os
from functools import partial
import maya.cmds as cmds

def customVer(FileName, version):
#create a file path with the file you have and version you want 
    version = 9000+int(FileName[(location-3):location])
    newFileName = str((myFileName[0:(location-3)]))
    version = str(version-1)
    version = version[1:]
    newFileName = newFileName+str(version)
    return newFileName


def newFile(myFileName):
#find what the file path would be for the next version

    #find version number (with 9 at front) of file currently being referenced to
        version = 9000+int(myFileName[(location-3):location])

    #find what the file path would be with no number at end
    newFileName = str((myFileName[0:(location-3)]))

    #find next version number
    version = str(version+1)
    #take out 9 (start from second term)
    version = version[1:]

    newFileName = newFileName+str(version)

    return newFileName

def refUpdate(inst = None, new = '', old = '', window = ''):
#replace old reference with updated reference (with new version)

    window = unicode(window)
    cmds.file( new, r=True)
    cmds.file( old, rr = True)
    cmds.deleteUI(window, window=True)

def main(myFileName):
#find what new filepath name would be. if it's not updated, give an option to update...if it is updated...give option to close

    newFileName = newFile(myFileName)
    fileList = myFileName

    #if path exists
    if os.path.isdir(newFileName):
        print "THERE IS A NEWER VERSION!"
        while os.path.isdir(newFileName) != False:
            newFileName = newFile(newFileName)
            highest_version = int(newFileName[(len(newFileName)-3):len(newFileName)])-1

        #pathname for highest version
        newFileName = customVer(newFileName, highest_version)
        fileList = fileList[(location):len(fileList)]
        fullName = str(newFileName+fileList)

        window = cmds.window( title="Check for Updates", iconName='UpdateChecker', width=400, height=100 )
        cmds.columnLayout( )
        cmds.button( label='Latest version of ' + name + ' is Version '+ str(highest_version)+". Click to update reference.", command = partial(refUpdate, new = fullName, old = myFileName, window = str(window)))     
        cmds.setParent( '..' )
        cmds.showWindow( window )
    else:
        window = cmds.window( title="Check for Updates", iconName='UpdateChecker', width=300, height=30 )
        cmds.columnLayout( )
        cmds.button( label='You currently have the latest version of ' + name + '. Click to close', align = 'center', command=('cmds.deleteUI(\"' + window + '\", window=True)') )
        cmds.setParent( '..' )
        cmds.showWindow( window )       
        print "NO NEWER VERSION!"

refsList =  cmds.file(q = True, list = True)
references = []
for i in refsList:
    if i.find('.ma') != -1:
        references.append(str(i))
for elements in references:
    location = elements.rfind("/")
    name = elements[(location+1):len(elements)]
    myFileName = elements
    main(elements)
</code></pre>

<p>So what I'm wanting to do here is have it so that a button is added for each loop into a main general window (this would be done at the bottom)..so at the end of it I would have one window with as many buttons as necessary. What I have now is a bunch of seperate popup windows coming up each time. Any help?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>sabid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/423305/help-with-python-maya-programming</guid>
		</item>
				<item>
			<title>any one can help me ?</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/423304/any-one-can-help-me-</link>
			<pubDate>Tue, 15 May 2012 16:11:42 +0000</pubDate>
			<description>You are to design a computer network for a retail company which has been assigned an IP class full network of 201.20.20.0; the company to have several locations in City2, City3 and City4; the company headquarters in City1. In City2 the company has two branches, three in City3 and one ...</description>
			<content:encoded><![CDATA[ <p>You are to design a computer network for a retail company which has been assigned an IP class full network of 201.20.20.0; the company to have several locations in City2, City3 and City4; the company headquarters in City1.<br />
In City2 the company has two branches, three in City3 and one in City4. The company is growing and more branches are to be open in the next 5 years.<br />
Each branch shall have a maximum of 10 stations.<br />
You are to design the network for the company by including all the necessary hardware (routers, switches, hubs, modems, cables, etc..).<br />
Draw the topology of the network.<br />
Assign IP addresses to all interfaces on the routers.<br />
You need to assign IP addresses for the stations.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>easa0562</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/423304/any-one-can-help-me-</guid>
		</item>
				<item>
			<title>JPA annotation help</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/423303/jpa-annotation-help</link>
			<pubDate>Tue, 15 May 2012 16:02:21 +0000</pubDate>
			<description>actually i dont know where this post is suitable.anyway i need to know how can i set textarea lenth by annotation in the entity class to be stored in the MYSQL(actually 255 &lt; characters).i used JPA.</description>
			<content:encoded><![CDATA[ <p>actually i dont know where this post is suitable.anyway i need to know<br />
how can i set textarea lenth by annotation in the entity class to be stored in the MYSQL(actually 255 &lt; characters).i used JPA.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>bcwoodz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/423303/jpa-annotation-help</guid>
		</item>
				<item>
			<title>Getting replies</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423302/getting-replies</link>
			<pubDate>Tue, 15 May 2012 15:30:03 +0000</pubDate>
			<description>Hello. I am new to this forum. I want to know exactly how long does any posts gets replies here.How long does a post stay in this forum. Does it get deleted after a period of time??. Thank you.</description>
			<content:encoded><![CDATA[ <p>Hello. I am new to this forum. I want to know exactly how long does any posts gets replies here.How long does a post stay in this forum. Does it get deleted after a period of time??. Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>Vedoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423302/getting-replies</guid>
		</item>
				<item>
			<title>How do I fadeIn using JQuery</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423301/how-do-i-fadein-using-jquery</link>
			<pubDate>Tue, 15 May 2012 15:24:04 +0000</pubDate>
			<description>I have this succes message that the visitor sees after submitting the contact form via ajax using jquery: My question is: How can I first fadeIn the image, and then &quot;500 later&quot; fadeIn the rest of the text that is appended after the image? -Now it fades in all at ...</description>
			<content:encoded><![CDATA[ <p>I have this succes message that the visitor sees after submitting the contact form via ajax using jquery:</p>

<p>My question is:<br />
How can I first fadeIn the image, and then "500 later" fadeIn the rest of the text that is appended after the image?</p>

<p>-Now it fades in all at the same time.</p>

<p>This is the code:</p>

<pre><code class="language-js">var dataString = 'navn='+ navn + '&amp;email=' + email + '&amp;besked=' + besked + '&amp;virksomhed=' + virksomhed + '&amp;hjemmeside=' + hjemmeside + '&amp;om=' + om;  
//alert (dataString);return false;  
$.ajax({  
  type: "POST",  
  url: "includes/mail_process.php",  
  data: dataString,  
  success: function() {  
    $('#kontakt_form').html("&lt;div id='mail_succes'&gt;&lt;/div&gt;");  
    $('#mail_succes').html("&lt;h2 class=\"catch_font26\" style=\"background-color:#849fa5; padding:1px; color:#FFF;\"&gt;Tak for din besked!&lt;/h2&gt;")  
    .append("&lt;br /&gt;&lt;div style=\"float:left;\"&gt;&lt;img id='checkmark' src='styles/frontend_img/email_ok.jpg' width=\"30\" height=\"30\"/&gt;&lt;/div&gt;")
    .append("&lt;div style=\"float:left; margin-left:20px;\"&gt;&lt;p style=\"font-size:20px;\"&gt;Vi vil vende tilbage på din henvendelse hurtigst muligt.&lt;/p&gt;&lt;br /&gt;&lt;p style=\"font-size:16px;\"&gt;Hvis I har yderligere spørgsmål kan vi også kontaktes pr. telefon:&lt;/p&gt;&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;p style=\"font-size:14px;\"&gt;&lt;b&gt;Telefon nr. &lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=\"padding-left:15px;\"&gt;&lt;p&gt;+0045 00 00 00 00&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style=\"font-size:14px;\"&gt;&lt;b&gt;Tidsrum: &lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=\"padding-left:15px;\"&gt;&lt;p style=\"font-size:14px;\"&gt;Alle hverdage fra kl. 9-17.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;p style=\"font-size:14px;\"&gt;Med Venlig Hilsen&lt;/p&gt;&lt;p style=\"font-size:14px;\"&gt;&lt;b&gt;enkelt-webdesign&lt;/b&gt;&lt;/p&gt;") 
    .hide() 
    .fadeIn(1700);  
    }  
});  
return false; 

  });  
}); 
</code></pre>

<p>Sorry if it looks a little messy.. :-)</p>

<p>Klemme</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>klemme</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/423301/how-do-i-fadein-using-jquery</guid>
		</item>
				<item>
			<title>Looking for a guide regarding hexadecimal / unsigned binary</title>
			<link>http://www.daniweb.com/software-development/computer-science/threads/423300/looking-for-a-guide-regarding-hexadecimal-unsigned-binary</link>
			<pubDate>Tue, 15 May 2012 14:55:54 +0000</pubDate>
			<description>Hi there, I was just wondering if anyone knows of a good resource or tutorial regarding computer arithmetic. I'm having trouble grasping the following: Assume an 8-bit binary number $9C (in hexadecimal format) is stored in a computer. What decimal value does this number represent, assuming that it is: (i) ...</description>
			<content:encoded><![CDATA[ <p>Hi there,</p>

<p>I was just wondering if anyone knows of a good resource or tutorial regarding computer arithmetic. I'm having trouble grasping the following:</p>

<pre><code class="language-tex">Assume an 8-bit binary number $9C (in hexadecimal format) is stored in a computer. What decimal value does this number represent, assuming that it is:

(i) An unsigned binary integer?
(ii)    A signed two’s complement binary integer?
(iii)   A fixed-point number with the 4 most significant bits for integer and the 4 least significant bits for fraction?

(i)   2^7 + 2^4 + 2^3 +2^2 = 156
(ii)  -2&amp;7 + 2^4 + 2^3 +2^2 = -100
(iii)  int = 2^3+1; frac = 2^-1 + 2^-2

(b) Perform the following calculation in 8-bit two’s complement arithmetic: 

        –64 + 40 = ?

(i) Express each number in the formula as an 8-bit two’s complement number.
(ii)    Perform the calculation and express the result as: (1) an 8-bit two’s complement number, and (2) a hexadecimal number.
(iii)   State the values of the condition code flags N, Z, V, C after the calculation has been performed.

(i)   -64 = 1100 0000, 40 = 0010 1000
(ii) 1100 0000 + 0010 1000 = 1110 1000 = $E8
(iii) NZVC = 1000
</code></pre>

<p>I know the answers are provided but if anyone could link me to some resources explaining how this is calculated etc then that would be greatly appreciated.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/computer-science/14">Computer Science</category>
			<dc:creator>Kamboodle</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/computer-science/threads/423300/looking-for-a-guide-regarding-hexadecimal-unsigned-binary</guid>
		</item>
				<item>
			<title>C# Challenge #1</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423299/c-challenge-1</link>
			<pubDate>Tue, 15 May 2012 14:45:35 +0000</pubDate>
			<description>Below you'll find a small program. The challenge is to predict the output of the program, then explain why it gave the output it did. using System; using System.Collections.Generic; namespace Sample { class Program { static void Main(string[] args) { MyStruct a; a.a = 1; a.b = 2; Dictionary&lt;MyStruct, int&gt; ...</description>
			<content:encoded><![CDATA[ <p>Below you'll find a small program. The challenge is to predict the output of the program, then explain why it gave the output it did.</p>

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

namespace Sample {
    class Program {
        static void Main(string[] args) {
            MyStruct a;

            a.a = 1;
            a.b = 2;

            Dictionary&lt;MyStruct, int&gt; dic = new Dictionary&lt;MyStruct, int&gt;();
            dic.Add(a, 1);

            Console.WriteLine("{0}", dic[a]);

            a.a = 3;

            Console.WriteLine("{0}", dic[a]);

            Console.ReadLine();

        }
    }

    struct MyStruct {
        public int a;
        public int b;
    }
}
</code></pre>

<p>Before you run off to Microsoft to report a bug, this isn't one. It's working as intended. The challenge is to explain why it is working as intended :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Momerath</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423299/c-challenge-1</guid>
		</item>
				<item>
			<title>store time in mysql </title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423298/store-time-in-mysql-</link>
			<pubDate>Tue, 15 May 2012 14:44:48 +0000</pubDate>
			<description>hello all I try to store DateTime to mysql , but when i open the table in mysql command line I see that the hour is decrease 12 by it self , why this can happen ,? my insert command is insert = &quot;Insert into Table1(DtIn)values('&quot;+ hin.ToString(&quot;yyyy,MM,dd,HH,mm,ss&quot;)+&quot;')&quot;;; hope someone help ...</description>
			<content:encoded><![CDATA[ <p>hello all<br />
I try to store DateTime to mysql ,<br />
but when i open the table in mysql command line I see that<br />
the hour is decrease 12 by it self ,<br />
why this can happen ,?</p>

<p>my insert command is<br />
insert = "Insert into Table1(DtIn)values('"+ hin.ToString("yyyy,MM,dd,HH,mm,ss")+"')";;</p>

<p>hope someone help<br />
thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>robin99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423298/store-time-in-mysql-</guid>
		</item>
				<item>
			<title>problem with query</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423297/problem-with-query</link>
			<pubDate>Tue, 15 May 2012 14:37:32 +0000</pubDate>
			<description>i have problem with query the database. i want to add data into two table that share same Primary key. here my code error message :The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the ...</description>
			<content:encoded><![CDATA[ <p>i have problem with query the database.<br />
i want to add data into two table that share same Primary key. here my code</p>

<p>error message :The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship.  Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.</p>

<pre><code class="language-vb"> Dim con As New OleDb.OleDbConnection(My.Settings.KK3DB)
        Dim com As New OleDb.OleDbCommand
        Dim adap As New OleDb.OleDbDataAdapter
        Dim ds As New DataSet
        con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\User\Desktop\dia\14052012\KK3MailingSystem\KK3MailingSystem\db\KK3MailingSystem.mdb;Persist Security Info=True")
        con.Open()

        com.CommandText = " INSERT INTO Staff (Staff_Id,Staff_Name, Staff_IC,Staff_Ext,Staff_HP,Staff_Email,Staff_Position) VALUES ('" + txtId.Text + "','" + txtName.Text + "','" + txtIC.Text + "','" + txtExt.Text + "','" + txtHP.Text + "','" + txtEmail.Text + "','" + txtPosition.Text + "')"
        com.Connection = con
        com.ExecuteNonQuery()&lt; error here

        com.CommandText &amp;= " INSERT INTO Login (Staff_Id, Staff_Username) VALUES ('" + txtId.Text + "','" + txtUsername.Text + "')"
        com.Connection = con
        com.ExecuteNonQuery()
        adap = New OleDbDataAdapter("select * from Staff", con)
        adap.Fill(ds, "1")
        StaffDataGridView.DataSource = ds.Tables("1")
        Me.StaffDataGridView.Rows(Me.StaffDataGridView.RowCount - 2).Selected = True
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>mie.ilani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423297/problem-with-query</guid>
		</item>
				<item>
			<title>Active directory,booting OS from the network questions</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/423296/active-directorybooting-os-from-the-network-questions</link>
			<pubDate>Tue, 15 May 2012 14:29:56 +0000</pubDate>
			<description>1. Is that possbble to boot an OS from a server thorough the network without having any Local OS? 1.1 if possible, are we doing all the things on that server? logged in using active directory? 2.if we logged into a PC on a netowork by using active directory account ...</description>
			<content:encoded><![CDATA[ <ol><li><p>Is that possbble to boot an OS from a server thorough the network without having any Local OS?<br />
1.1 if possible, are we doing all the things on that server? logged in using active directory?<br />
2.if we logged into a PC on a netowork by using active directory account thorugh a client compuer, what file locations belogns to the active directory's user account and have no connection to the loca computer? (i meab, is the loaded desktop local one or the remote one?what about my documents? what about other important O/S files? local or server's(which has the active directory) locations?</p></li>
<li><p>usually when we go to the CMD in windows, it takes us to the c:\ (which Os is installed on). I did the same on my netowork's client pc but it tkes me to the Z:/ (netowrk drive) . why not c:\ default.</p></li>
</ol>

<p>yes i can change back to Z:/ ,but why is the defualt Z? is the phyical location of the cmd.exe OS file on the local computer or netowrk ?</p>

<p>yeah too many questions. please answer to the point. at least one quetion</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>silvercats</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/423296/active-directorybooting-os-from-the-network-questions</guid>
		</item>
				<item>
			<title>Tokens in file</title>
			<link>http://www.daniweb.com/software-development/java/threads/423295/tokens-in-file</link>
			<pubDate>Tue, 15 May 2012 14:23:31 +0000</pubDate>
			<description>Plz can anybody help me.i want to store some records in files.i m working on a project.my teacher told me to use tokens.i dun have any idea about that.plz help me thanx in advance</description>
			<content:encoded><![CDATA[ <p>Plz can anybody help me.i want to store some records in files.i m working on a project.my teacher told me to use tokens.i dun have any idea about that.plz help me thanx in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>uetgate</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/423295/tokens-in-file</guid>
		</item>
				<item>
			<title>files missing in system 32</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/423294/files-missing-in-system-32</link>
			<pubDate>Tue, 15 May 2012 14:19:11 +0000</pubDate>
			<description>Hello All, I have window vista in my desktop. Whenever I start my computer after booting always open a dialogue box for three time with different messeges. 1) window\system32\Adobe\shockw~1\netbt.pif Window could not load or run this file when i searched in similar folder for this file there was n't . ...</description>
			<content:encoded><![CDATA[ <p>Hello All,</p>

<p>I have window vista in my desktop. Whenever I start my computer after booting always open a dialogue box for three time with different messeges.<br />
1) window\system32\Adobe\shockw~1\netbt.pif   Window could not load or run this file</p>

<p>when i searched in similar folder for this file there was n't . I have no idea why this netbt.pif used in computer.searching over internet no information  related this.</p>

<p>2) system\32\drivers\en-us\nv_app.com</p>

<p>3) EULALauncher.exe   Application error</p>

<p>About all of them i dont know anything ? Can I download them form internet .Is my computer safe?<br />
Please guide me ....</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/99">Microsoft Windows</category>
			<dc:creator>preetg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/423294/files-missing-in-system-32</guid>
		</item>
				<item>
			<title>Forgot the administrator pswd of the active directory .help</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/423293/forgot-the-administrator-pswd-of-the-active-directory-.help</link>
			<pubDate>Tue, 15 May 2012 14:06:13 +0000</pubDate>
			<description>I had to increase the password's number of charaters. Then I put a long and new password (same passord for server and client) to adminsitrator. now I do not remember the password.help! I know how to boot and reset the local password. but this is active directory. help???</description>
			<content:encoded><![CDATA[ <p>I had to increase the password's number of charaters. Then I put a long and new password (same passord for server and client) to adminsitrator.<br />
now I do not remember the password.help!</p>

<p>I know how to boot and reset the local password. but this is active directory. help???</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>silvercats</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/423293/forgot-the-administrator-pswd-of-the-active-directory-.help</guid>
		</item>
				<item>
			<title>Use loop in HTML</title>
			<link>http://www.daniweb.com/web-development/php/threads/423292/use-loop-in-html</link>
			<pubDate>Tue, 15 May 2012 13:44:51 +0000</pubDate>
			<description>I want to use while loop in html. I have the following php code. But it does not work. How can i solve this problem? Please any one help me. while($row = mysql_fetch_array($result)) { echo &quot;&lt;tr&gt;&quot;; echo &quot;&lt;td&gt;&quot; . $row['ID'] . &quot;&lt;/td&gt;&quot;; echo &quot;&lt;td&gt;&quot;; echo &quot;&lt;input name=&quot;txtf&quot; type=&quot;text&quot;&gt;&quot;; echo &quot;&lt;/td&gt;&quot;; ...</description>
			<content:encoded><![CDATA[ <p>I want to use while loop in html. I have the following php code. But it does not work. How can i solve this problem? Please any one help me.</p>

<pre><code>while($row = mysql_fetch_array($result))
            {
                echo "&lt;tr&gt;";
                echo "&lt;td&gt;" . $row['ID'] . "&lt;/td&gt;";
                echo "&lt;td&gt;"; echo "&lt;input name="txtf" type="text"&gt;"; echo "&lt;/td&gt;";
                echo "&lt;td&gt;" . &lt;input name="txtf1" type="text" /&gt; . "&lt;/td&gt;";
                echo "&lt;td&gt;" . &lt;input name="txtf2" type="text" /&gt; . "&lt;/td&gt;";
                echo "&lt;/tr&gt;";
            }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Shougat</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423292/use-loop-in-html</guid>
		</item>
				<item>
			<title> help! iwant to know the versions of HTML language</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/423291/-help-iwant-to-know-the-versions-of-html-language</link>
			<pubDate>Tue, 15 May 2012 13:32:46 +0000</pubDate>
			<description>help me pliz</description>
			<content:encoded><![CDATA[ <p>help me pliz</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>sentongogray</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/423291/-help-iwant-to-know-the-versions-of-html-language</guid>
		</item>
				<item>
			<title>I need to learn how to create a website having;  menus,links,downloads,</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/423290/i-need-to-learn-how-to-create-a-website-having-menuslinksdownloads</link>
			<pubDate>Tue, 15 May 2012 13:28:49 +0000</pubDate>
			<description>teach me members,coz its my coursework</description>
			<content:encoded><![CDATA[ <p>teach me members,coz its my coursework</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>sentongogray</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/423290/i-need-to-learn-how-to-create-a-website-having-menuslinksdownloads</guid>
		</item>
				<item>
			<title>Suggestion for IT final Project</title>
			<link>http://www.daniweb.com/software-development/threads/423289/suggestion-for-it-final-project</link>
			<pubDate>Tue, 15 May 2012 13:23:15 +0000</pubDate>
			<description>Hi guys Can anyone give me a suggestion on what system to do and on easy programmin languages to use. I want to make something interesting and which is also managable to work on. Thanks</description>
			<content:encoded><![CDATA[ <p>Hi guys</p>

<p>Can anyone give me a suggestion on what system to do and on easy programmin languages to use. I want to make something interesting and which is also managable to work on.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>vimbai</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/423289/suggestion-for-it-final-project</guid>
		</item>
				<item>
			<title>how do i upload a website</title>
			<link>http://www.daniweb.com/web-development/threads/423288/how-do-i-upload-a-website</link>
			<pubDate>Tue, 15 May 2012 13:22:04 +0000</pubDate>
			<description>help!</description>
			<content:encoded><![CDATA[ <p>help!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>sentongogray</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/423288/how-do-i-upload-a-website</guid>
		</item>
				<item>
			<title>help</title>
			<link>http://www.daniweb.com/web-development/threads/423287/help</link>
			<pubDate>Tue, 15 May 2012 13:18:01 +0000</pubDate>
			<description>configuring e-mail addresses</description>
			<content:encoded><![CDATA[ <p>configuring e-mail addresses</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>sentongogray</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/423287/help</guid>
		</item>
				<item>
			<title>Enrollment System for Csharp</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423286/enrollment-system-for-csharp</link>
			<pubDate>Tue, 15 May 2012 12:43:20 +0000</pubDate>
			<description>hi there guys can anyone here provide me with a guide on how to create an enrollment system in cSharp the OOP way? I just want to create it for a school project. Please help me I really need it if someone can provide me one I'd be very thankful ...</description>
			<content:encoded><![CDATA[ <p>hi there guys can anyone here provide me with a guide on how to create an enrollment system in cSharp the OOP way? I just want to create it for a school project. Please help me I really need it if someone can provide me one I'd be very thankful or if someone can help me start the code it will be okay with me as well. Thanks in advanced.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Lightning03</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423286/enrollment-system-for-csharp</guid>
		</item>
				<item>
			<title>relationship between three tables</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423285/relationship-between-three-tables</link>
			<pubDate>Tue, 15 May 2012 12:31:36 +0000</pubDate>
			<description> I use Visual Basic 2008 Database is Mysql Three tables: 1. table article fields: item number, item description, color number, month number 100 chair 2 3 2. table colors fields: color number, color description 1 red 2 blue 3. table months fields: month number, month description 1 January 2 February ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-vb">I use Visual Basic 2008
     Database is Mysql


         Three tables:

         1. table article
              fields: item number, item description, color number, month number
                   100        chair       2            3
         2. table colors
              fields: color number, color description
                             1 red
                             2 blue



     3. table months
     fields: month number, month description
                   1 January
                   2 February
                   3 March

     I want a relationship between article and table table table colors and months.
     I want to see in the datagridview :
     item number, item description, color , month 
         100       chair           ,blue  ,  March
</code></pre>

<p>How do I do this in Visual Basic 2008</p>

<p>Thanks,</p>

<p>Andre</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>dre-logics</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423285/relationship-between-three-tables</guid>
		</item>
				<item>
			<title>System.Data.DataRowView</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423284/system.data.datarowview</link>
			<pubDate>Tue, 15 May 2012 12:21:28 +0000</pubDate>
			<description>Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping cart ...</description>
			<content:encoded><![CDATA[ <p>Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping cart in which the product that user has chosen will go to. When I click on product category there is no problem, the listbox2 will list all products, BUT when I select a product to go to my shopping cart(listbox3) this message will appear in listbox3 - System.Data.DataRowView</p>

<p>Here are my codes:</p>

<p>`'I believe the code below is the problem</p>

<pre><code class="language-vb">Private Sub listCategory_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listCategory.SelectedIndexChanged
        Dim getCategoryDesc As MySqlCommand = New MySqlCommand("Select * from category where catDesc=@field2;", connection)
        Dim reader1 As MySqlDataReader

        Try
            With getCategoryDesc
                .Parameters.AddWithValue("@field2", listCategory.Text)
            End With

            reader1 = getCategoryDesc.ExecuteReader()
            If (reader1.Read()) Then
                txtcatNo.Text = (reader1("catNo"))
            End If

            getCategoryDesc.Dispose()
            reader1.Close()

        Catch ex As Exception

        End Try

        Try
            Dim category As String
            category = listCategory.Text
            Dim sqlcommand As String = "select product.prodNo, product.productDesc from product, category where category.catDesc='" &amp; category &amp; "' and product.catNo=category.catNo;"
            Dim adapter As New MySqlDataAdapter(sqlcommand, connection)
            Dim dataset As New DataSet
            adapter.Fill(dataset, "product")

            With listproduct
                .ValueMember = "prodNo"
                .DisplayMember = "productDesc"
                .DataSource = dataset.Tables("product")
                .SelectedValue = "prodNo"
                .SelectedIndex = 0
            End With


        Catch ex As Exception

        End Try

    End Sub

'What the code below does is that when the user clicks on an item it goes to the shoppingcart(listbox3)

    Private Sub listproduct_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listproduct.SelectedIndexChanged
        getprod()

        Try
            Dim i As Integer
            For i = 0 To listproduct.SelectedItems.Count - 1
                listItemsBought.Items.Add(listproduct.SelectedItems.Item(i))
            Next i
        Catch ex As Exception

        End Try

    End Sub
</code></pre>

<p>so thats my problem you guys. Help would be really appreciated</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Iamkenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423284/system.data.datarowview</guid>
		</item>
				<item>
			<title>help for cloudism</title>
			<link>http://www.daniweb.com/community-center/threads/423283/help-for-cloudism</link>
			<pubDate>Tue, 15 May 2012 12:19:34 +0000</pubDate>
			<description>Hi .I did download Cloudism for simulations but the program have not executable file.how can i simulate with this program? you can help me?</description>
			<content:encoded><![CDATA[ <p>Hi .I did download Cloudism for simulations but the program have not executable file.how can i simulate with this program?<br />
you can help me?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/3">Community Center</category>
			<dc:creator>clapton</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/threads/423283/help-for-cloudism</guid>
		</item>
				<item>
			<title>htaccess of the secondary domain</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/423282/htaccess-of-the-secondary-domain</link>
			<pubDate>Tue, 15 May 2012 12:13:11 +0000</pubDate>
			<description>Hi Im doing SEO for my client sites(2 websites) which is now ranked in Good position in all search engines. now my client register some 50 domains related to their business keywords and redirect those 50 domain to the websites that I'm currently doing SEO. Now he wants to track ...</description>
			<content:encoded><![CDATA[ <p>Hi<br />
Im doing SEO for my client sites(2 websites) which is now ranked in Good position in all search engines. now my client register some 50 domains related to their business keywords and redirect those 50 domain to the websites that I'm currently doing SEO. Now he wants to track the traffic coming from those secondary domains and i use Google URL builder to generate the tracking URL and i put that code in the .htaccess of the secondary domain, but its not working correctly for me, so kindly anyone help me on this issues.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>webmaster@123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/423282/htaccess-of-the-secondary-domain</guid>
		</item>
				<item>
			<title>J2ME database connection and attach DB to JAR file</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/423281/j2me-database-connection-and-attach-db-to-jar-file</link>
			<pubDate>Tue, 15 May 2012 11:56:10 +0000</pubDate>
			<description>This post about J2ME in Netbeans. Actually I'm new to mobile development and so interest to learn it. I want to create a jar file and should be attached database to it. (Netbeans has built in database creating facility, which i want to use) There are a lot of codes ...</description>
			<content:encoded><![CDATA[ <p>This post about J2ME in Netbeans.<br />
Actually I'm new to mobile development and so interest to learn it. I want to create a jar file and should be attached database to it. (Netbeans has built in database creating facility, which i want to use) There are a lot of codes in the internet for database connection string. those are so complex to understand for beginners. (for an example <a href="Link">www.ezdia.com/epad/j2me-tutorial-connect-database/375/</a>) I expect a very simple code for database connection and please tell me how to attach that database to the JAR file step by step.<br />
I think after initializing my project properly, it will be able to do all other parts using my experience of desktop application.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>Prasad.weer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/423281/j2me-database-connection-and-attach-db-to-jar-file</guid>
		</item>
				<item>
			<title>Problem with getline()</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423279/problem-with-getline</link>
			<pubDate>Tue, 15 May 2012 11:44:02 +0000</pubDate>
			<description>I have this function: void read(){ int id; string desc; string title, type; cout&lt;&lt;&quot;Movie's id: &quot;; cin&gt;&gt;id; cout&lt;&lt;&quot;Movie's title: &quot;; cin&gt;&gt;title; cout&lt;&lt;&quot;Movie's description: &quot;; getline(cin, desc, '\n'); cout&lt;&lt;&quot;Movie's type: &quot;; cin&gt;&gt;type; cout&lt;&lt;&quot;You have typed in: &quot; &lt;&lt;id &lt;&lt;&quot; &quot; &lt;&lt;title &lt;&lt;&quot; &quot; &lt;&lt;desc &lt;&lt;&quot; &quot; &lt;&lt;type &lt;&lt;&quot;.\n&quot;; } and my ...</description>
			<content:encoded><![CDATA[ <p>I have this function:</p>

<pre><code class="language-cpp">void read(){
    int id;
    string desc;
    string title, type;
    cout&lt;&lt;"Movie's id: ";
    cin&gt;&gt;id;
    cout&lt;&lt;"Movie's title: ";
    cin&gt;&gt;title;
    cout&lt;&lt;"Movie's description: ";
    getline(cin, desc, '\n');
    cout&lt;&lt;"Movie's type: ";
    cin&gt;&gt;type;
    cout&lt;&lt;"You have typed in: "
        &lt;&lt;id
        &lt;&lt;" "
        &lt;&lt;title
        &lt;&lt;" "
        &lt;&lt;desc
        &lt;&lt;" "
        &lt;&lt;type
        &lt;&lt;".\n";
}
</code></pre>

<p>and my problem is that in the desc field, when I must insert something, it skips over, passing to the type field, not letting me insert anything. I've tried in another project only with the <code>getline(cin, desc, '\n')</code> and it worked, it took all the line, but here it just skips the field. My question is this: why does this thing happens? and did I do something wrong?<br />
10x.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>lucaciandrew</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423279/problem-with-getline</guid>
		</item>
				<item>
			<title>Edit profile</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423278/edit-profile</link>
			<pubDate>Tue, 15 May 2012 11:39:13 +0000</pubDate>
			<description>Can you please replace text fields in Edit profile for short bio and others to text area? Editing of more then 20 characters data is just impossible in current state</description>
			<content:encoded><![CDATA[ <p>Can you please replace text fields in Edit profile for short bio and others to text area? Editing of more then 20 characters data is just impossible in current state</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>peter_budo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/423278/edit-profile</guid>
		</item>
				<item>
			<title>Problem with SELECT in Prepared Statement</title>
			<link>http://www.daniweb.com/web-development/php/threads/423276/problem-with-select-in-prepared-statement</link>
			<pubDate>Tue, 15 May 2012 10:08:55 +0000</pubDate>
			<description>Hi I'm trying to re-do my code so that SELECT, INSERTS etc use prepared statements..... But I'm having a problem My original code which worked was: if (isset($_POST['submit1'])) { // Grab the profile data from the POST $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm'])); // Make sure a review doesn't already exist for ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I'm trying to re-do my code so that SELECT, INSERTS etc use prepared statements.....</p>

<p>But I'm having a problem</p>

<p>My original code which worked was:</p>

<pre><code>if (isset($_POST['submit1'])) {
    // Grab the profile data from the POST
        $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm']));



// Make sure a review doesn't already exist for this Condo
      $query = "SELECT * FROM condo_reviews WHERE condo_nm = '$condo_nm'";
      $data = mysqli_query($dbc, $query);
      if (mysqli_num_rows($data) == 0) 
      {

          echo '&lt;span class="agenttitle"&gt;Condo Overview: Available&lt;/span&gt;';
      }
      else {
          echo '&lt;span class="agenttitle"&gt;Condo Overview: Exists&lt;/span&gt;';
      }
}
</code></pre>

<p>However when trying to put it into a prepared statement - I can not get the 'if' statement to work which then shows whether a condo is available or not:</p>

<p>THe code I've done so far is:</p>

<pre><code>if (isset($_POST['submit1'])) {
    // Grab the profile data from the POST
        $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm']));



 // Connect to the database
     require_once ('myaccess/dbc.php');

      // $stmnt1 = $db-&gt;stmt_init();

    if ($stmnt1 = $dbc -&gt; prepare("SELECT * FROM condo_reviews WHERE condo_nm = ?")) {

     $stmnt1-&gt;bind_param("s",$condo_nm);
     $stmnt1-&gt;execute();
     $stmnt1-&gt;close();

     if ('condo_nm' != $condo_nm) {


          echo '&lt;span class="agenttitle"&gt;Condo Overview: Available&lt;/span&gt;';
      }
      else {
          echo '&lt;span class="agenttitle"&gt;Condo Overview: Exists&lt;/span&gt;';
      }
}
}
</code></pre>

<p>I'm pretty sure it is this part that doens't work, but have just can't work out what to change it to:</p>

<pre><code>if ('condo_nm' != $condo_nm) {
</code></pre>

<p>Any help would be great as I have quite  a few of these to change sitewide..</p>

<p>Many thanks as always</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>ebanbury</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423276/problem-with-select-in-prepared-statement</guid>
		</item>
				<item>
			<title>Modifying a char * and returning it from a function</title>
			<link>http://www.daniweb.com/software-development/c/threads/423275/modifying-a-char-and-returning-it-from-a-function</link>
			<pubDate>Tue, 15 May 2012 10:07:19 +0000</pubDate>
			<description>Can anyone explain to me why this simple program won't print anything? #include &lt;stdio.h&gt; #include &lt;ctype.h&gt; char * mkUpperCase(char *); int main(void) { char name[] = &quot;information&quot;; printf(&quot;%s\n&quot;, mkUpperCase(name)); return 0; } char * mkUpperCase(char *s) { while(*s != '\0') { *s = toupper(*s); s++; } return s; }</description>
			<content:encoded><![CDATA[ <p>Can anyone explain to me why this simple program won't print anything?</p>

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

char * mkUpperCase(char *);

int main(void)
{
    char name[] = "information";
    printf("%s\n", mkUpperCase(name));
    return 0;
}

char * mkUpperCase(char *s)
{
    while(*s != '\0')
    {
        *s = toupper(*s);
        s++;
    }
    return s;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>cossay</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/423275/modifying-a-char-and-returning-it-from-a-function</guid>
		</item>
				<item>
			<title>C++ Qt application slow startup</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/423274/c-qt-application-slow-startup</link>
			<pubDate>Tue, 15 May 2012 10:02:36 +0000</pubDate>
			<description>Hey Everyone, I have run into a bit of a problem with regards to application startup... I have written a C++ application with QT libraries that uses active QT to communicate with our ERP system in our business, the requirements are that any application we use needs to communicate its ...</description>
			<content:encoded><![CDATA[ <p>Hey Everyone,</p>

<p>I have run into a bit of a problem with regards to application startup...</p>

<p>I have written a C++ application with QT libraries that uses active QT to communicate with our ERP system in our business, the requirements are that any application we use needs to communicate its variables into this application by means of an argument list that uses unique splitters, and the application then checks the command (seperate argument) and handles the variables and inserts into XML to communicate them to the ERP</p>

<p>my issue is this, with larger argument lists (larger applications and more intricate functionality) the application take much longer to start up, functionality from the very first coding line to the finish is quick, as quick as I can possibly get it... but the startup is way too slow...</p>

<p>Is there anything I can do to speed up the startup? can this be caused by the large arguments? or could it be something else, I thought of dll loading as a possibility though I have tested running the application over a network and on the same machine (because to my knowledge dll loading takes even longer over a network) but I found exactly the same result</p>

<p>Thanking everyone in advance for the assistance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Eagletalon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/423274/c-qt-application-slow-startup</guid>
		</item>
				<item>
			<title>Suppress additional runtimer error messagebox</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/423272/suppress-additional-runtimer-error-messagebox</link>
			<pubDate>Tue, 15 May 2012 09:38:40 +0000</pubDate>
			<description>I've run into a couple of errors within my program which reads a text file. When a user clicks a button to read the textfile and an exception is thrown, i have it displayed as a string in a message box, but an additional message box related to runtime error ...</description>
			<content:encoded><![CDATA[ <p>I've run into a couple of errors within my program which reads a text file. When a user clicks a button to read the textfile and an exception is thrown, i have it displayed as a string in a message box, but an additional message box related to runtime error 52 'bad filename or number' has shown up and continues to pop up, even after clicking ok. I am currently working on the error itself in the textfile, but until I can work around all of the variables with reading this file, I was wondering if there is anything I can do to either prevent the runtime error box from popping up or figure out why it's popping up so many times. The really weird thing is sometimes after clicking ok on the initial message box displaying the error string, it won't pop up and other times it does, repeatedly.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Gus_19</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/423272/suppress-additional-runtimer-error-messagebox</guid>
		</item>
				<item>
			<title>How to use MediaGateway SIP SDK?</title>
			<link>http://www.daniweb.com/software-development/threads/423271/how-to-use-mediagateway-sip-sdk</link>
			<pubDate>Tue, 15 May 2012 09:27:08 +0000</pubDate>
			<description>Hi, I have found a useful guide on how to connect to a server that is supported by Ozeki VoIP SIP SDK from Silverlight applications. On this page http://www.voip-sip-sdk.com/p_258-silverlight-sip-voip-client-voip.html you will find an explanation for the configuration steps and the source code as well. Best regards, George</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have found a useful guide on how to connect to a server that is supported by Ozeki VoIP SIP SDK from Silverlight applications. On this page <a href="http://www.voip-sip-sdk.com/p_258-silverlight-sip-voip-client-voip.html" rel="nofollow">http://www.voip-sip-sdk.com/p_258-silverlight-sip-voip-client-voip.html</a> you will find an explanation for the configuration steps and the source code as well.</p>

<p>Best regards,</p>

<p>George</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>GeorgeUSA</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/423271/how-to-use-mediagateway-sip-sdk</guid>
		</item>
				<item>
			<title>insert and select in one time</title>
			<link>http://www.daniweb.com/web-development/php/threads/423270/insert-and-select-in-one-time</link>
			<pubDate>Tue, 15 May 2012 08:50:15 +0000</pubDate>
			<description>Hello, I just want to ask. Is it possible to do the insert and select in one time and in one form? I can't see any example of this problem. Can somebody help me? Thanks.</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I just want to ask. Is it possible to do the insert and select in one time and in one form? I can't see any example of this problem. Can somebody help me?</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>aecha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423270/insert-and-select-in-one-time</guid>
		</item>
				<item>
			<title>WPF-Maintain Login Session</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/423269/wpf-maintain-login-session</link>
			<pubDate>Tue, 15 May 2012 08:49:08 +0000</pubDate>
			<description>Hi all, I want to know the way of maintaining sessions in a WPF application. I did the same in ASP.Net but that was a web application. I'm not sure how to do the same task in WPF. Any help is appreciated. Thanks.</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I want to know the way of maintaining sessions in a WPF application. I did the same in ASP.Net but that was a web application. I'm not sure how to do the same task in WPF.</p>

<p>Any help is appreciated.</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>KM499</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/423269/wpf-maintain-login-session</guid>
		</item>
				<item>
			<title>Singleton, yes or no ?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/423268/singleton-yes-or-no-</link>
			<pubDate>Tue, 15 May 2012 08:40:40 +0000</pubDate>
			<description>I'm having doubts about a need to use a singleton pattern in a web service. I'm building a web service that is acting as a server side for multiple clients. I was thinking about making my business logic classes a singleton classes but i'm having doubts because of the following ...</description>
			<content:encoded><![CDATA[ <p>I'm having doubts about a need to use a singleton pattern in a web service.<br />
I'm building a web service that is acting as a server side for multiple clients. I was thinking about making my business logic classes a singleton classes but i'm having doubts because of the following scenario:</p>

<p>When the web service receives calls from multiple clients simultaneously to invoke the same method,i assume that they all have to wait in a queue  because there is only one business logic instance.</p>

<p>On the other hand, having the same scenario without using a singleton will cause multiple business logic instances, one instance for each client.</p>

<p>I would love to receive a recommendation or a best practice for my scenario.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>emilio</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/423268/singleton-yes-or-no-</guid>
		</item>
				<item>
			<title>MYSQL many to many confusion</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/423267/mysql-many-to-many-confusion</link>
			<pubDate>Tue, 15 May 2012 08:31:41 +0000</pubDate>
			<description>I have two tables namely student and subject joined by a table called student_subject. With the following structure student: +----------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+--------------+------+-----+---------+----------------+ | student_ID | int(11) | NO | PRI | NULL | auto_increment | | studentCode | ...</description>
			<content:encoded><![CDATA[ <p>I have two tables namely student and subject joined by a table called student_subject.<br />
With the following structure<br />
student:</p>

<pre><code class="language-sql">+----------------+--------------+------+-----+---------+----------------+
| Field          | Type         | Null | Key | Default | Extra          |
+----------------+--------------+------+-----+---------+----------------+
| student_ID     | int(11)      | NO   | PRI | NULL    | auto_increment |
| studentCode    | varchar(8)   | NO   |     | NULL    |                |
| studentName    | varchar(255) | NO   |     | NULL    |                |
| studentType    | varchar(50)  | NO   |     | NULL    |                |
| visaIssueDate  | date         | YES  |     | NULL    |                |
| visaExpiryDate | date         | YES  |     | NULL    |                |
| parentID       | int(11)      | YES  | MUL | NULL    |                |
+----------------+--------------+------+-----+---------+----------------+
</code></pre>

<p>subject:</p>

<pre><code class="language-sql">+------------+--------------+------+-----+---------+----------------+
| Field      | Type         | Null | Key | Default | Extra          |
+------------+--------------+------+-----+---------+----------------+
| id         | int(11)      | NO   | PRI | NULL    | auto_increment |
| code       | varchar(255) | NO   |     | NULL    |                |
| name       | varchar(255) | NO   |     | NULL    |                |
| department | varchar(255) | NO   |     | NULL    |                |
+------------+--------------+------+-----+---------+----------------+
</code></pre>

<p>student_subject:</p>

<pre><code class="language-sql">+-----------+---------+------+-----+---------+----------------+
| Field     | Type    | Null | Key | Default | Extra          |
+-----------+---------+------+-----+---------+----------------+
| id        | int(11) | NO   | PRI | NULL    | auto_increment |
| studentID | int(11) | NO   | MUL | NULL    |                |
| subjectID | int(11) | NO   | MUL | NULL    |                |
| grade     | char(2) | YES  |     | NULL    |                |
+-----------+---------+------+-----+---------+----------------+
</code></pre>

<p>I want to query all the subjects for a particular student using the field student.student_ID. How do i go about doing that?<br />
Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>soUPERMan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/423267/mysql-many-to-many-confusion</guid>
		</item>
				<item>
			<title>Undefined index error.</title>
			<link>http://www.daniweb.com/web-development/php/threads/423266/undefined-index-error</link>
			<pubDate>Tue, 15 May 2012 08:09:16 +0000</pubDate>
			<description>well I have this code, at first it was working perfectly....then a little modification just caused an error. I want to know what are the possible causes of this error Notice: Undefined index: CSM_blackmere_portside2_1 in C:\xampp\htdocs\PMS\F51-AI_insert.php on line 16 aside from, of course being defined .. i'm thinking of something ...</description>
			<content:encoded><![CDATA[ <p>well I have this code, at first it was working perfectly....then a little modification just caused an error.<br />
I want to know what are the possible causes of this error</p>

<pre><code>Notice: Undefined index: CSM_blackmere_portside2_1 in C:\xampp\htdocs\PMS\F51-AI_insert.php on line 16
</code></pre>

<p>aside from, of course being defined ..<br />
i'm thinking of something like a code might be hindering the variable to get its value ?<br />
e.g. getting the  value of an input box but the property Disabled is blocking it</p>

<p>i've been stucked with this, any help would be appreciated...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Kewne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/423266/undefined-index-error</guid>
		</item>
				<item>
			<title>Looking for team collaboration tools</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/423265/looking-for-team-collaboration-tools</link>
			<pubDate>Tue, 15 May 2012 07:53:48 +0000</pubDate>
			<description>Hello, first apologies if I posted in the wrong forum, but am looking for some tools (free or paid), which could be use to help teams share ideas/documents and have discussions over a LAN using the web browser. Anyone who has used such tools can help me? Am currently having ...</description>
			<content:encoded><![CDATA[ <p>Hello, first apologies if I posted in the wrong forum, but am looking for some tools (free or paid), which could be use to help teams share ideas/documents and have discussions over a LAN using the web browser.</p>

<p>Anyone who has used such tools can help me? Am currently having a look at Open Atrium as well.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>lordrt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/423265/looking-for-team-collaboration-tools</guid>
		</item>
			</channel>
</rss>
