- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 5
Final Year B. Tech IT @ NITK Surathkal
- Interests
- [strike]Right now, its blogging.[/strike] Otherwise, its driving my car around town. I'm known for marathon…
- PC Specs
- HP dv6222 TX Windows Vista / Ubuntu 9.04 2.5 GB RAM nvidia 7400
111 Posted Topics
Use another SQL statement. Construct it like this- [code=vb.net] Dim strSQL2 As String = "SELECT product_id FROM product where product_name=" & Me.cmbDropDown.SelectedItem [/code]
Hi all! Is there any way in which I can customize the look of the CPanel webmail so as to have custom webmail login with say the company logo and other things on the page?
You can try online examination project. Have done one here- [url]http://dontnet.tekyt.info[/url]
You should use a Command Builder to update records so that changes made to the dataset can be reflected into the database. Here is some sample code- [code=VB.NET] Public Class Form1 Dim cn As New Odbc.OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=shreyas; User=root;Password=;") Dim cmd As Odbc.OdbcCommand Dim adp As Odbc.OdbcDataAdapter Dim ds …
let us say you have a login button on the registration form which gets enabled on validation of registration details. code for login button- form2.showdialog() in the form_load for the 2nd form, do form1.hide() and in the form closing event for the 2nd form, remember to do form1.close()
Check my blog post- [url]http://dotnet.tekyt.info/?p=27[/url] If you still have any doubts, feel free to ask
Hi Folks - back on DaniWeb after a long time. I used to be an active developer a few years back - now I am leading a team that needs some help. So here goes: We need to create a dynamic menu - (dynamic in the sense that the values …
Hi all! I am trying to connect to a remote MySQL database in a VB.NET application. This database is located on my LAN at the address 192.168.1.2. I am using MySQL Connector/ODBC 3.51 (MyODBC 3.51) for the connection. The connection string that I am using is the following- Driver={MySQL ODBC …
I need to check if a databse user exists and if not, create that user. However, I do not know the statement to check if a user already exits. How to check if a user already exists in MySQL?
Hey All, I am looking to develop a web application on the Java platform with Oracle 11g database. I asked one of the dealers for a quote & the quote is for "20 users". I don't really know how this works, but will I be requiring a license for 20 …
Are you sure you are giving 6 parameters? Could you paste your SQL Command text again? It appears broken in your previous post.
In a shell script, I want to 'spool' (record) the shell prompt & command typed alongwith its output into a file. eg: In the script, if I give a 'ls' command, the file should contain: [CODE] <<root@server ~>>$ ls a b c.txt <<root@server ~>>$ [/CODE] i.e. the command as if …
I think it is a better option to use a binding source to solve your problem. You can attach data to a component using the following- dim ds as new dataset dim bs as new bindingsource(ds,"<table name>") me.textbox1.databindings.add("Text",bs,"<field name>") Next button- bs.Movenext() Previous- bs.MovePrevious()
I have made a similar project. You might want to see the code- [url]http://dotnet.tekyt.info/?p=34[/url] In case you have any doubts about the code, do ask here.
Hi, I just installed Tomcat 5.5 and could see the default index page (with images missing) Upon running the sample JSPs, I get the following- HTTP Status 404 - Servlet default is not available In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" Basically, I …
Hi! There is a file on my desktop of size 0 bytes. When I try to delete it, it says "Could not find this item" What is the problem? This is really irritating me. Any help would be highly appreciated
1. Keep an array to hold the random numbers 2. In order to add an element to this array, generate a random number in the required range, and check the array to see if the generated number is already a part of the array (using foreach) 3. If the generated …
Hi, I am running Windows Vista. Sometimes my browsers will abruptly stop displaying webpages. The error on Mozilla says- Unable to Connect, on Safari - Winsock Error 10013 I am able to ping, my DNS servers are working (so its not a connectivity problem- other computers on the same network …
[QUOTE=DoEds;917584] *problem* How to exit this program when the user assigned k to 1 ? [/QUOTE] Use exit() function [url]http://www.cprogramming.com/fod/exit.html[/url]
Check with your network administrator if there is a mail server on your network. If you are running the website on your own server, you might have to configure your mail settings on the localhost
did you try debugging using gdb?
[QUOTE=sumeetdesaeee;915223] Sample question:- Wat will the expression ABC AB AC will become after postfix operation?? [/QUOTE] The expression contains only operands. Where are the operators? If you have a string in infix, ie. in form A+B, and you wish to have it in the form AB+, you can use the …
[QUOTE=Kurt Kubing;917074]I think there's only one reason why your code will never work as you expected: you declare read-only strings. Although you didn't declare it with the const keyword, declaring string that way makes your string variable untouchable. [/QUOTE] Its possible that what the original thread starter meant by 'swap' …
printf("Trip Summary")[COLOR="Red"];[/COLOR] You are missing the semicolon here and here printf("Enter Total amount of fuel required")[COLOR="Red"];[/COLOR] and why do you have the return statement outside the main function?
Hi, I was reading the book "Fundamentals of Database Systems" by Elmasri and Navathe. In that it is given that for a relation to be in 2nd NF, every non prime attribute (attribute which is not a part of any candidate key) should be fully functionally dependent on any candidate …
Hi, On my website, I am using breadcrumb links- A->B->P X->Y->P (same P) The breadcrumbs and other links change depending upon whether a spider visits P from B or Y. So what is the solution to this?
This is how I did it- [code=vb.net] Public Class Form4 Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn As New Odbc.OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=mydb; User=root;Password=xxxxx;") Dim cmd As New Odbc.OdbcCommand("Select * from mytable", cn) cn.Open() Dim dr As Odbc.OdbcDataReader dr = cmd.ExecuteReader While dr.Read …
Hi, [LIST] [*]There are 65536 ports (TCP) i.e 0-65535 [*]Port No 0 to 1023 are reserved for well known services (http, ftp, telnet) [*]If you try to use a port already in use, you will get a [I]BindException[/I] [*]You can run a port scanner program to check what your ports …
Hi, What is the conversion character for long double in gcc?
In a application for online test, the rank list is computed as follows- [CODE] select * from test order by marks DESC[/CODE] How can we make sure that the first record gets rank1, second rank2 and so on... I want to add the field to the table. Can this be …
Hi, I am trying to implement a client server wherein the client must be able to download a requested file off the server and upload a file onto the server. I have implemented the download part of the code using TCP Sockets. In the upload part from the client to …
Well when you click on the button, the page is posted back to the server and you start again with rec_count as 0. Thus when you click on the Next button, you see only your first record and when you say previous (which is again a button click), it does …
Hi ! I really don't know where to put this thread up, so this might be a misfit. I was wondering if we could have new forums on DaniWeb, especially for RIA's like Flex, JavaFx etc.. I guess that would help DaniWeb to scale greater heights.
Hi, I am involved in a project which requires our team to build a web portal for our college. We have gone about the collection of requirements. Hereafter, I need to know which is the best software development model to follow for the creation of a web portal. We tried …
Or you could see youtube video tutorials by Mike Lively, those are good to get started.
Hi! I am trying to initiate a client-server talk but for some reason it is not working. The server starts running, but when I start the client nothing happens. Please point out the mistake in my code- Server- [code="java"] import java.io.*; import java.net.*; public class MyServer { public static void …
Hi all! I have a HP dv6000 laptop, bought it around 18 months back. The laptop battery has fallen to 10% of origin capacity. I'm trying to buy a new battery, but the HP battery costs a bit too high... Has anybody used a battery on the HP 6000 series …
Hi! How can I include CSS styles in a PHP HTML Email? This is what I have so far- [code=php] <?php $msg='<html>This is a <em>test</em> message</html>'; mail('[email protected]', 'Test HTML Mail',$msg,"From: Santa Claus <[email protected]>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ?> [/code]
Hi! Sometimes while browsing, suddenly I stop getting sites, but I am able to ping sites. If I reboot, it starts working correctly again. Here is my HJT log- Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 15:12:52, on 18-10-2008 Platform: Windows Vista (WinNT 6.00.1904) MSIE: Internet Explorer v7.00 …
Maybe you can try something like an automated payroll system?
Check your ethernet connected computer, does it also use automatic IP? Or are the IP settings manually entered there?
try this- [code=php] <?php $name="foo"; $age="bar"; header("Location: print.php?name=".$name."&&age=".$age); ?> [/code]
Hi! Just verify these- Do you have the MySQL Connector installed? Are you sure your connection string is correct?
Hi! I am using a code to echo a row in a database table using ajax. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's?
Hi! I am using a code to echo a row in a database table using ajax with PHP. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's?
Hi! This is the code I have for sending mail- [code=vb.net] Imports System.Web.Mail Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Mailmsg As New System.Web.Mail.MailMessage() SmtpMail.SmtpServer = "mysmtpserver" …
Hi! I am using the following code for a file upload- [code=php] <?php if(isset($_POST['b1'])) { if($_FILES['uploadedfile']['name'] !="") { $target_path = "/home/infotech/myhomepage/uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); echo("Temporary Location is: ".$_FILES['uploadedfile']['tmp_name']."<br />"); echo("Target Path is: ".$target_path."<br />"); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; …
Hi! I have the following code- [code=vb.net] Imports System.Data.OleDb Public Class Form1 Dim x As String = """" Dim cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\sbi\mm.xls;Extended Properties=" & x & "Excel 12.0 Xml;HDR=YES" & x & ";" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn …
Hi! In the following code- [code=php] <?php header('Cache-Control:no-cache'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form id="form1" name="form1" method="post" action="<?php echo($_SERVER['PHP_SELF']);?>"> <p> <label>Name: <input type="text" name="txt" id="txt" value="<?php $_POST['txt'];?>" /> </label></p> <p> <input type="submit" name="b1" id="b1" …
Hi! Can anybody please explain this- [code="php"] <?php $num=5; echo($num.++$num); echo("<br />".$num); ?> [/code] prints: 66 6 while [code="php"] <?php $num=5; echo($num++.++$num); echo("<br />".$num); ?> [/code] prints: 57 7 how exactly is the parsing done?
The End.