Validate student id,username if already exist in database table . Using VB.Net 2012 and SQL database on windows10 system. Thanks for your help.this is my first post so thank you for your help guys.

Private Sub InsertSutdent()
SQL.AddParam("@stud_name", txtFirstname.Text)
SQL.AddParam("@stud_lastname", txtlastname.Text)
SQL.AddParam("@stud_id", txtStudentId.Text)
SQL.AddParam("@stud_username", txtUsername.Text)
SQL.AddParam("@stud_course", cbxCourse.Text)
SQL.AddParam("@stud_password", txtpassword.Text)
SQL.AddParam("@active", … Article by Reymark_1 in Software Development
Validate student id,username if already exist in database table . Using VB.Net 2012 and SQL database on windows10 system. Thanks for your help.this is my first post so thank you for your help guys.

Private Sub InsertSutdent()
SQL.AddParam("@stud_name", txtFirstname.Text)
SQL.AddParam("@stud_lastname", txtlastname.Text)
SQL.AddParam("@stud_id", txtStudentId.Text)
SQL.AddParam("@stud_username", txtUsername.Text)
SQL.AddParam("@stud_course", cbxCourse.Text)
SQL.AddParam("@stud_password", txtpassword.Text)
SQL.AddParam("@active", … Article by Reymark_1 in Software Development
Validate student id,username if already exist in database table . Using VB.Net 2012 and SQL database on windows10 system. Thanks for your help.this is my first post so thank you for your help guys.

Private Sub InsertSutdent()
SQL.AddParam("@stud_name", txtFirstname.Text)
SQL.AddParam("@stud_lastname", txtlastname.Text)
SQL.AddParam("@stud_id", txtStudentId.Text)
SQL.AddParam("@stud_username", txtUsername.Text)
SQL.AddParam("@stud_course", cbxCourse.Text)
SQL.AddParam("@stud_password", txtpassword.Text)
SQL.AddParam("@active", … First Post in Article by Reymark_1 in Software Development
Joined the Community
Sponsored 839 Replied To a Post in Broken link
Article by tinstaafl in DaniWeb Community Feedback
I'm thinking the checker is biased. Daniweb links are fine but not any others :)
Sponsored Began Watching Code Snippet
This code shows how to obtain and display a GIF image from an internet website using the Tkinter GUI toolkit that comes with the Python installation. Article by vegaseat in Software Development
Sponsored Replied To a Post in Code Snippet Display An Image From A URL (Tkinter, Python)
Article by vegaseat in Software Development
What about jpg or png images? is there a way to do that?
Joined the Community
Sponsored Marked Solved Status for
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of … Article by Brian_22 in Software Development
Sponsored 1,109 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
25 % 2 == 1. The modulus is the remainder after the division, so 25 / 2 == 12 with a remainder of 1. So, if i % 2 == 1, it is odd. If 0, then it is even.

The bit-wise operation, if the language supports that, is a …
Joined the Community
Replied To a Post in Autocomplete
Article by phphp in Web Development
php
Sir, it is like this

![Untitled.png](/attachments/large/4/57c2c60d12ba9cfee6070f3e338e2eb5.png "align-center")
Joined the Community
1,093 Replied To a Post in Autocomplete
Article by phphp in Web Development
php
Try with:

$i = 0;
while($row=sqlsrv_fetch_array($select))
{
$data[$i]['code'] = $row['code'];
$data[$i]['desc1'] = $row['desc1'];
$i++;
}
Replied To a Post in Autocomplete
Article by phphp in Web Development
php
Thanks, now this time I used these codes



<html>
<head>
<link rel="stylesheet" href="css/jquery-ui.css">

<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript">


$(function() {
$("#coding_language").autocomplete({
minLength: 0,
source: 'autocomplete.php',
focus: function(event, ui) {
$("#coding_language").val(ui.item.desc1);
return false;
},
select: function(event, ui) {
$("coding_language").val(ui.item.desc1);
$("#PT").val(ui.item.code);
return false;
}
});
}); …
I prepare a table in Excel within a Using () statetement. At the end I UsedRange.Copy() to what I understand is the clipboard. Then I Selection.PasteExcelTable in a Word document.
I get an COM Exception "command failed".
When I activate the word document and press Ctrl+V the table gets copied. … Article by PerplexedB in Software Development
I prepare a table in Excel within a Using () statetement. At the end I UsedRange.Copy() to what I understand is the clipboard. Then I Selection.PasteExcelTable in a Word document.
I get an COM Exception "command failed".
When I activate the word document and press Ctrl+V the table gets copied. … Article by PerplexedB in Software Development
I prepare a table in Excel within a Using () statetement. At the end I UsedRange.Copy() to what I understand is the clipboard. Then I Selection.PasteExcelTable in a Word document.
I get an COM Exception "command failed".
When I activate the word document and press Ctrl+V the table gets copied. … First Post in Article by PerplexedB in Software Development
Sponsored 85 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
@ deceptikon - Thank you for comment. I will follow on your recommendation.
Joined the Community
Sponsored 2,467 Replied To a Post in Broken link
Article by tinstaafl in DaniWeb Community Feedback
Posted a link with minus signs in this thread: https://www.daniweb.com/programming/software-development/threads/506841/help-with-sum-of-even-or-odds-array
It got broken.
Strangly enough the above thread url also contains minus signs.
Sponsored 2,785 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
Sorry. C, C++, C#, C no evil... the're all the same to me. But is there ANY language in which 25%2 is 5?

Decepticon: yes please, please do share that proof!
JC
Sponsored 2,467 Gave Reputation to in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
> ... or use bitwise operator `if(i&1)` if true even else odd.

I suppose if you want readers of your code to think you're clever, or have legitimately profiled the code for performance, run all practical test cases, and determined that this micro-optimization is warranted *and* not actively harmful.

> …
Sponsored 2,467 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
According to [this site](http://cc.davelozinski.com/c-sharp/fastest-way-to-check-if-a-number-is-odd-or-even) modulus should be the fastest method!
@JamesCherrill: no C++ here, it's C#, looks deceptively a lot like Java. :)
Sponsored 1,775 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
> zachattack05 : 25 % 2 would return 5

I'm so tempted to write a proof where this actually happens. :D
Sponsored 2,785 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
I'm no expert at C++, so can someone else look at this and see if I'm missing something?

> zachattack05 : 25 % 2 would return 5
Sponsored 1,775 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
> ... or use bitwise operator `if(i&1)` if true even else odd.

I suppose if you want readers of your code to think you're clever, or have legitimately profiled the code for performance, run all practical test cases, and determined that this micro-optimization is warranted *and* not actively harmful.

> …
Joined the Community
Sponsored 85 Began Watching
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of … Article by Brian_22 in Software Development
Sponsored 85 Replied To a Post in Help with sum of Even or Odds Array
Article by Brian_22 in Software Development
... or use bitwise operator `if(i&1)` if true even else odd. Its faster because compare one bit only without mathematics