199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I am using Java code to send email to users. The code is SMTPTransport tr = (SMTPTransport) poSession.getTransport("smtps"); tr.connect(MailHost,FromMailId,Password); tr.sendMessage(Message,Message.getAllRecipients()); FromMailId is from user mailid Password is from user password. Message is what can from user sent to toUser Message.getAllRecipients() are to user mail id.. But how do … | |
A very simple MySQL database class. [B]Usage:[/B] [CODE]// connect $config = array( 'host' => $host, 'user' => $user, 'password' => $password, 'database' => $database); $DB = Database_MySQL::getInstance($config); // set query $DB->query("select * from table1 where col1 = %d and col2 = '%s' LIMIT 1", 5, 'a'); // get rows $rows … | |
Please help with this new sorting algorithm. I implement it on VB but i cant get a correct output. It's a new sorting algorithm and the pseudocode was provided. Here are the informations about it. Here are the steps: 1. In a single pass on the array, the algorithm finds … | |
I am writing a very simple program that subtracts 16 bit integers. After the subtractions I want to view the registers' final values by using DumpRegs. The information displayed seems accurate for EAX, but EBX and ECX have values that don't seem to be correct. Why is this so? [CODE]TITLE … ![]() | |
Hello guys, I have a question. In one form i have a treeview. I get the value by doing treeview.selectednode.text; But in the same project i have another form. I want to send the value of the selectednode to the other form. How can i do this? | |
I have this output from a mysql export: [code] <?xml version="1.0"?> <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" statement="select product as sample,count(*) as count from table1 where itemno in (5,10,37) and type='food' and package='boxed' group by package,product order by count(*),product desc limit 5 "> <row> <sample>cereal</sample> <count>1</count> </row> <row> <sample>macaroni</sample> <count>1</count> </row> <row> <sample>cookies</sample> <count>2</count> … | |
:-/ Hey friends I have a problem regarding operator overloading concept in C# language,can anyone among you please make me understand and supply some example of operator overloading concept.Some codes can you guys please send me for better understanding and with a brief description..please. | |
Hi, Everyone!! I'm really new in this business and I've been having some trouble with these errors: ====================================================================== Message: Object expected Line: 1 Char: 1 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] =================================================================== Message: Expected '}' Line: 707 Char: 301 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] ================================================================== Message: Expected '}' Line: 738 Char: 301 Code: … | |
programe to randomly generate store and display the age of N studnets (e.g ,18,24,38 etc).the minimum age is 18 and maximum age is 75.N should be equal to 9. 1.How we can intialise all the elements of the array to -1. 2.Randomly generate and store the age of N studnets … | |
Hi, I have some problems with validating form in javascript. I have a following HTML code: <form action="registracija_preview.php" method="post" onsubmit="return ValidirajFormu();"> </form> <div id='poruka></div> What I want in validation is to check all the field in form (check for required fields etc). I want to show user error message in … | |
hi everyone i would like to fill an array with random numbers i know i can use the next line srand( time(NULL) ); return 1 + rand() % 10 ; but the problem is that it fills my array with only one number what can i do ? | |
Good afternoon, does anyone know of a free web component which can display a pop-up calendar upon clicking a button, and allow the developer to capture the date chosen by the user? Thanks for your time... | |
pls does anyone of you help me how to connect vb6 to access.i have a system wherein my pc can receive and send sms.I used nokia cp,and dku50 cable to connect my pc and cp.I want that the text will be store in my access,so that i can see the … | |
HOW TO CHANGE THE TIMING 15 MIN EARLY THAN CURRENT TIME OR TIME VALUE WHICH IS IN MS-ACCESS TABLE USING VB6.0?????????????????? plZ HELP ITS URGENT ?????????????????? | |
Iam getting this error code ;Line 5, char 45, unterminated string constant code 800A03F7 with the ff script. Please help. [CODE]var thisAd = 0; function rotate() { var adImages = new Array("images/green.gif", "images/red.gif","images/gre.gif","images/ apple2.gif"); thisAd++; if (thisAd == adImages.length) { thisAd = 0; } document.getElementById("adBanner"). src = adImages[thisAd]; setTimeout(rotate, 3 … | |
hey guys. i get an error "Could not find a part of the path" for inputStream = File.OpenText(textBox1.Text). The idea is to enter a folders path then in another textbox enter word to search. all the files in the folder have to be searched then the word,filename and path are … | |
// program implement the working of files simple stock // management #include <iostream.h> #include <fstream.h> #include <iomanip.h> #include <stdlib.h> #include <stdio.h> class stock{ int code; char name[30]; float cost; char flag; public: void getStock(); void putStock(); char getFlag(); void putFlag(char); int getCode(); }; int stock :: getCode(){ return code; } … | |
Hi all, sorry if this post is a duplicate, I had a search and couldn't find what I was looking for. In simplest terms I need to use the string split method using a sting as the seed i.e. [code] string[] sections = line.Split("><"); [/code] Sorry if this is a … | |
Asslamo alekom and Hello, Please tell me how to make a Setup file of VB6 projects.? | |
Hey guys, I posted earlier about py2exe not working in general. Now I got it to actually run, but the .exe produced does not work... Any help would be appreciated. Thanks. Info: I've tried various things to solve this issue, but no luck. When I run my setup.bat file, which … | |
Hi there, i'm currently having trouble re-sorting an array based on a letter that a user has submitted. this is the associative array I want to sort. [CODE] $people = array( 0 => array( 'id' => 12345, 'name' => 'abi', ), 1 => array( 'id' => 12346, 'name' => 'ben', … | |
Hi experts out there, I have a program where the backend is access database. I was able to run the program in user's pc after i placed it at C drive. After that, i placed it in the server and created shortcut to the.exe, the program ran. But, when i … | |
Hi, I want to disable the cache in browser using asp.net.If I click the back button of the browser the value of cache should be changed. Can anyone help on this how to do?? Regards, Pavan Kumar | |
Hi All, Can anyone please help me. I am trying to connect to a Pervasive SQL v9 database using a PHP script. I have been trying for hours to make a connection but all my browsers keep loading with no response from the server. The PHP code is as follows: … | |
could u please show me the codes too? (example may be) | |
Using py2exe I've made an exe file which processes a file then creates a new file which details the errors found in the original file. However, at the moment I have to change the file allocation in the code each time I want to do it on a different file … | |
Hi I'm trying to generate two random numbers using the ramdom class. However, I always get the same random number for both variables. Is there a way I can get two distinct numbers? Thanks. | |
Having a problem connecting via dsn on windows 2003 x64. Keep getting : ADODB.Connection error '800a0ea9' Provider is not specified and there is no designated default provider. Code works fine on regular server 2003 | |
Hi there. I am getting the errors below when I am trying to compile this code using DEV C++. [Linker error] undefined reference to 'CheckLeapYear'(int) [Linker error] undefined reference to 'CalcDayNumOfYear'(int) [Linker error] undefined reference to 'CheckLeapYear'(int) Id returned 1 exit status Please help. Below I have included my coding … | |
Hey guys, I've been helping a buddy of mine trying to figure out this problem with his asp.net site, basically from the admin panel you add a product and it will make the page not work, but if you delete it, it'll work fine, heres the code coming back. [CODE] … | |
hi there, my programme stores all the coordinates from a text file into an arrayList. And from the arrayList I want to read out 3 elements at a time. Each element being a pair of (x, y) values already in a arrayList, e.g.[...., 34.123 2.121,....]. Now I need to read … | |
I have a project which deal with DAILY TIME RECORD, i want to add the time in my form to the current record. Here it is. if i enter my EmployeeID then click cmdFind the records will be given [CODE]Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdFind_Click() … | |
Hi I need to write data which I have successfully read in from a text file, to a new file. The original text file contains data for many objects. The read in data is stored using stl vectors in 3 nested objects: Structure, Polygon and Point i.e. a Structure contains … | |
Dear Everybody ; How r u all? Does anyone know any idea for a graduation project in the field of computer science ..... plzzzz help me :( ..... i dnt know any idea :'( ..... Any suggestions?? Thnx :) | |
Hi everyone, I want to intitialise an object to perform a certain computation and wait for the object to finish, but I'm not sure what the best way is to go about this. Here's a couple of methods to give you an idea of what I'd like to do: [CODE] … | |
Hello1! First af all, excuse me for my bad english! I need to read user input that contains a certain command. My problem is that it depends on the command, the amount of strings i'll need to read. For example, there's a command with the following sintaxis: Command1 name = … | |
I have a registration form and I want to feed the contents of it into an SQL database that I created in Visual Web Developer. I have the proper code to insert the contents into the database table, but there is a problem with my connection string. What's the problem … | |
#include <iostream> using namespace std; int main() { int i,j,k; int Matrix1[3][3] = { {1,2,3}, {4,5,6}, {1,2,3}, }; int Matrix2[3][3] = { {3,2,1}, {6,5,4}, {3,2,1}, }; int Matrix3[3][3]; cout << "Matrix 1: " << endl; for( i = 0; i < 3; i++) { for( j = 0; j < … | |
What it want from me? [CODE]<?php if (isset($_POST['submit']) && $_POST['submit'] == "Update") { $query_update = "UPDATE preturi SET preturi = '" . $_POST['preturi'] . "' WHERE username = '" . $_SESSION['user_logged'] . "' AND password = '" . $_SESSION['user_password'] ."'"; $result_update = mysql_query($query_update) or die(mysql_error()); $query = "SELECT * FROM … | |
I need a vb code as below This is my login page [ATTACH]16718[/ATTACH] This is my login page code Private Sub StudentLoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentLoginButton.Click Dim connection As New OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0;Data Source = ../Data/Student.accdb;") Dim command As New OleDbCommand("SELECT * FROM Student WHERE … | |
please can any one write the code without using pointers and in a simplest way... my question is finding substring position in main string .....these both strings you have to take at the run time and dont use any library methods.....you yourself have to write the code.....please give eply ASAP..... | |
Hi everyone Could someone please help me, I need to loop through all the records in a column in my access database, Currently my program only views the first record in the column and does not go any further, I tried a While loop but I get a NullException error … | |
I am trying to create a JavaScript menu, but I can't hide the sub-menu? I am trying to create a menu with JavaScript for a friend of mine. I can't get the part that drops down to be invisible though. My code is below. Any ideas? HTML File: <!DOCTYPE html … | |
Dear SQL sharks.... Please somebody help me with this struggle. I have been searching the web for hours now. I have a table with sales data. In this table i have a columne called SalesAmount, CustomerName and SalesDate(the format i smalldatetime) Now I would like to retreive all the records … | |
I have a JSP( a form) that calls a servlet when I click the submit button. I want to add javascript validation to the form fields. When I try to embed the script it does not run. I tried to link the file to the JSP, but that also did … | |
I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo … | |
Hi, I have requirement on shell scripting. I require scripts for the following 1) Full backup(application and DB) 2) incremental back up of files 3) restoring of files Please help me in providing the scripts. Thanks in advance | |
Hello All, I am not sure, if this is the right place to post this query. If not, please redirect me. Here is the brief explanation of I have a web application (GWT application) project in Eclipse. I have a server side code which interacts with LDAP directory for some … | |
Hi, I want to update records in the access table which is connected to vb. Can somebody give code for that please. (ie)when i click add button the entered fields should get updated in the tables and the form should be refreshed again to enter datas. |
The End.