199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for saw89

Hello,everyone..I am a beginner in using c#. Now, i have some problems in my project. I hope someone can help me. Below is my coding:- public partial class Form1 : Form { string file; double allTransaction; SortedList frequency = new SortedList(); SortedList<string, double> m_dicAllFrequentItems = new SortedList<string, double>(); SortedList<int, String> …

Member Avatar for nhungk32
0
167
Member Avatar for nanba

Hi guys I need help in creating login page for my web application. There are two users who will login to the system: Admin and User in my database I have UserID, Password and Type for column Type i have 'Administrator' and 'Users' This is what i'm doing, but it …

Member Avatar for hirenpatel53
0
179
Member Avatar for Kremlin

Hey all, I have a JApplet that runs in browser and I can't get it to create a new JFrame popup when a button is clicked. It works fine in my IDE (Eclipse) but not when I upload it. Here's the code for the JFrame I'm trying to create: import …

Member Avatar for NormR1
0
452
Member Avatar for wandie

Can someone please help me I have made an example, of an cookies I have added a value 45 but i have created another page that displays. This prob is when i run the code that has the value 45 its suppose to give me a blank page byut i …

Member Avatar for Ami_Bogus
0
170
Member Avatar for easterbunny

Hi, I got a problem. I'm new to $ and i want to make a div to be displayed 3 seconds after the page loaded but i want it displayed on the desktop( behind the webpage). I made the part where the div slides from the right-bottom corner but i …

Member Avatar for JorgeM
0
178
Member Avatar for mie.ilani

anyone can help? i want to check whether the data has been exist or not. but its shows some error in this code. error :No value given for one or more required parameters. Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.KK3DB) Dim cmd As New OleDb.OleDbCommand Dim adap As New …

Member Avatar for mie.ilani
0
110
Member Avatar for wan632

Hye i am running difftime tu different 2 time values, but unfortunately when i run on my laptop it does return values, but when i pass it to my friend the value returned is 0... and also when i run in windows the value returned also zero.. here is a …

Member Avatar for WaltP
0
713
Member Avatar for ryanpells

I am sure I just cannot get the syntax correct. I have a table that is populated with names from a database. I want to make it so when the user click the hyperlink uses the link in the database to direct the user to the new page. Once on …

Member Avatar for diafol
0
143
Member Avatar for stu7mcc

Hi, I have a backup script for a reseller hosting account. The idea is that all the accounts in a reseller account can be backed up every day to an external server. The only problem is the scripts seems to start backing up all the accounts at once. Is it …

Member Avatar for diafol
0
138
Member Avatar for coder389

I have a long string of characters as input and I want to count the number of words in that string. How can I do it through regular expression?

Member Avatar for Mitja Bonca
0
201
Member Avatar for wan632

i have previously created time using mktime and stored it in file, now the problem is how can i call it back and read as standard time, not an array. this is because i wanna make use of difftime function. here is my code sample: int ex(){ int typ; printf("\n\n\nEnter …

Member Avatar for wan632
0
115
Member Avatar for celop

how can i build a formal context table based on data that i get from a text file using c#? i can just browse the location of the data but dunno how to create a table of formal context based on that data. below are the data: 1 5 1 …

Member Avatar for celop
0
107
Member Avatar for Avenger_123

Can anyone please help me that how this program works?? i have got this Program on internet and i want it to run..... #include <cstdlib> double** gauss(double **matrix, int dimension) { double **inverse; inverse = (double**) malloc(dimension * sizeof (double *)); for (int i = 0; i < dimension; i++) …

Member Avatar for mike_2000_17
0
323
Member Avatar for happyhd

A console chess program that features normal chess rules including Castling, En Passant and promotion by choice. Detects draw if only kings are left, no moves possible and not in check or 50 consecutive moves without movement of a Pawn or a capture. Detects check/mate (obviously). Would be glad if …

Member Avatar for s.v.pavani
0
10K
Member Avatar for salman_hundekar

Imports System.Data Imports System.Data.SqlClient Public Class LookupForm Dim stable As String Dim SelectQuery As String Dim cs As String Dim htKeys As Hashtable Property FKeyWithTable() As Hashtable Get Return htKeys End Get Set(ByVal value As Hashtable) htKeys = value End Set End Property Public Event LoadRecord(ByVal CurrentRow As Hashtable) Private …

Member Avatar for Mitja Bonca
0
118
Member Avatar for london-G

Hello, I have two linked tables in my database (access), one is for the student and one is the ages(selection drop list ). When I have transfered the data in vb form, a simple text box is shown with numbers in it. How can I have the drop down list …

Member Avatar for Mitja Bonca
0
139
Member Avatar for Idbeyourself

Good day, I am new in programing (still a student). I whant to write a c# program using winform, which will populate data from an external text file(as a array) into a textarea in the form, to check if each data in the textarea is present anywhere in a specified …

Member Avatar for Mitja Bonca
0
83
Member Avatar for Djmann1013

What is wrong with this signup code? > process.php: <?php $host=""; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name=""; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("Cannot connect to server. Try again later."); mysql_select_db("$db_name")or die("Cannot connect …

Member Avatar for diafol
0
248
Member Avatar for abhishekagrawal

Hi All, I am writing a program to find the number between 1 and 100 that has the greatest number of distinct divisors. Below is my code for the same. It is returning an erroneous answer, i.e. 8 for greatest number of distinct divisors and 4 as the number for …

Member Avatar for nullptr
0
200
Member Avatar for Transcendent

I'm looking for a java tutorial site that will teach java and also give some exercises. Any other sites would be helpful too.

Member Avatar for Lerner
0
97
Member Avatar for ElaineTeo

if(empty($_POST['txtEmail'])) { if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } $page='SignUp.php'; header('Location:'.$page); } else { $page='SignUp.php?emptyusr=1'; header('Location:'.$page); }

Member Avatar for ElaineTeo
0
207
Member Avatar for ferit1223

I've just started php and mysql.trying this code to check if mysql account is correct or not. <?php $usr=$_POST['username']; $psw=$_POST['passwd']; echo ' body tag, other things and a message: Logging in! '; echo $usr; $connection = myqsl_connect('localhost',$usr,$psw); if (!$connection){ die('<p>Stopped : ' . mysql_error()); echo '<br /><a href="index.html">Retry</a></p>'; } else …

Member Avatar for ferit1223
0
101
Member Avatar for SixtyFourBitFox

**Before you start complaining that this has been asked before, please hear me out** Hello, I've been trying to write an simple application for windows that can send and recieve packetts over a network. I'm hoping to find some simple library that can simply open the port, and send a …

Member Avatar for SixtyFourBitFox
0
252
Member Avatar for dev90

How to calculate time complexiy of the following line of code using 'Big-O' or 'Big-OH' notation??? 1. scanf("%d",&n); 2. for(i=1,m=n+66;i<=m;i++) 3. printf("%d \n",i); 4. for(j=n/21,m=n/5;j<=m;j++) 5. printf("%d \n",j); I have basic idea but i am getting confused...So, please help me to calculate time complexity of each step, plus overall complexity. …

Member Avatar for Sokurenko
0
298
Member Avatar for Sendy Hipo

Hi! i have problems with input validation, so here goes the problem : Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment VideoNote Solving the Weather Statistics Problem Review …

Member Avatar for Sendy Hipo
0
420
Member Avatar for NestaMarley

The application should have one method that populates the multidimensional array with data and another method that shows the contents of the multi dimensional array. Both methods should be triggered from the main method. Assist because am been notified that the code below is not correct public class ArrayExample { …

Member Avatar for stultuske
0
123
Member Avatar for HTMLperson5

Ok, for some strange reason I cannot move from the "Python27" folder: I have tried this... Python 2.7.3 (default, Apr 10 2012, 23:31:26) Type "help", "copyright", "credits" or "license" for more information. >>> from os import system >>> system('cd') C:\Python27 0 >>> system('cd ..') 0 >>> system('cd') C:\Python27 0 It …

Member Avatar for Gribouillis
0
193
Member Avatar for choosechrist

I am using a tab control on my mdi parent forms. when i open a child window i hide the tab control. but i want the tabcontrol to show itself on child close event. but i cant figure out the code. any help will be great

Member Avatar for choosechrist
0
151
Member Avatar for brightonstu93

**Hey i'm creating basic a shopping cart for a uni project, everything works however when I select the view cart button on my html page it appears, however if i select it repeatedly, the table creates a replica table below and does this everytime I select my button so I …

Member Avatar for Airshow
0
218
Member Avatar for salman_hundekar

The name "Debit" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.

Member Avatar for salman_hundekar
0
183
Member Avatar for Iamateur

There are 2 textboxs to accept from date and to date. I will be comparing the fromdate value and todate with the table column. If the record matches then only that row will get display in the datagridview.

Member Avatar for Iamateur
0
262
Member Avatar for VernonDozier

I have an abstract class. I'm creating a large array in the base class, which appears to never be deleted because no destructor is called. My questions (obviously) are... * Why isn't a destructor called? * How do I fix it? #include <iostream> using namespace std; class A { protected: …

Member Avatar for mitrmkar
0
271
Member Avatar for vicsong93

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> struct account { char AccName[20]; int Age; double AccBalance; struct account *Next; }; typedef struct account BankAcc; void init( struct Account **headOfList ); void insert(struct account **headOfList, char *name, int age, double balance); int Delete(struct account **headOfList, char *name ); void print(struct …

Member Avatar for vicsong93
0
157
Member Avatar for odaite

.please help me I want opearte the code program .model large .stack 4096 .data msg db 0dh, 0ah, "Demonisch Basic Assembly Language Calculator", 0dh, 0ah, 0dh, 0ah, "Press return when each number is entered", 0dh, 0ah, "(done automatically if 4 digits is entered)", 0dh, 0ah, "You may put + or …

Member Avatar for NotNull
0
263
Member Avatar for gandrap

I have problem with rewrite in .htaccess I want to this link http://www.mysite.com/index.php?lang=1 look like this link http://www.mysite.com/index And it should be for every .php file to be like that I have this so far: RewriteEngine On RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php\ HTTP RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301] RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule …

Member Avatar for gandrap
0
91
Member Avatar for Dann0

I'm doing a class project, creating a text based game, separate compilation must be used. The descriptions for each room must be kept in it's own class. Here is an example of what I have: Room.h #ifndef ROOM_H #define ROOM_H #include<iostream> #include<string> using namespace std; class Room{ public: ///set the …

Member Avatar for Dann0
0
138
Member Avatar for mie.ilani

anyone can help me? my login doesnt work smoothly. i want to login based on Username, Password & Category. So that, if the user is Admin all data can be access, while if user is Staff, only few data can be access. Public Sub DoLogin() Dim strsql As String Dim …

Member Avatar for mie.ilani
0
130
Member Avatar for OblibSystems

I am currently working on a project that has hit a bit of a snag. I have the following string; <td class="bld"><span id="ref_12590587_l">5,304.48</span> I want to cut this string so that only the "5,304.48" is remaining. I would also then like to remove the comma. Thanks

Member Avatar for vsa000
0
140
Member Avatar for HTMLperson5

Is it possible to make a Python program which checks if a file exists, maybe like: #!/usr/bin/python if exist 'File.txt': print "File.txt exists!" else: print "File.txt does not exist :-(" Obviously the `if exist` code will fail, as it is not a python command, but is there anything like the …

Member Avatar for HTMLperson5
0
2K
Member Avatar for Gaiety

Hi, I know i am asking a question which can be googled and find lot of explanation. I have actually gone through many but none explained the ownership property completely. > Mutex is acquired by some process, only that process can unlock it how the other process/thread know that the …

Member Avatar for mike_2000_17
0
128
Member Avatar for daravindm

Hi all, How to display search results from MYSQL database in JSP page?? is it possibile to create gridview in jsp page? please help

Member Avatar for anand01
0
329
Member Avatar for arunpawar

I am trying to build a simple app that calculates the farenhit to celsius converter. Here is my code.. from gi.repository import Gtk, GObject class DemoWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Demo Example") self.set_size_request(300, 400) vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) self.add(vbox) self.entry = Gtk.Entry() self.entry.set_text("Enter Farenhit") self.button1 = Gtk.Button(label="Calculate") self.button1.connect("clicked", self.on_button1_clicked) vbox.pack_start(self.entry, True, …

Member Avatar for arunpawar
0
252
Member Avatar for lewashby

#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand(time(NULL)); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> n; // …

Member Avatar for Sky Diploma
0
238
Member Avatar for Patiodude

I've recently found that 1and1, my host, doesn't allow for remote access to MySQL databases and tables, and access is only possible via a slow and cumbersome web UI. Is there any workaround? I don't want to have to spend ten minutes browsing PHPMyAdmin every time I need to timestamp …

Member Avatar for JorgeM
0
311
Member Avatar for jobber15

Hi there, first off I'm relatively new to php so please forgive me if this seems a simple request! I have an existing database and menu system which works great, but I'm trying to modify it so that I have a checkbox that I can tick to determine if I …

Member Avatar for jobber15
0
118
Member Avatar for ozbulldog

I have a problem with my site regularly exceeding Max User Connections. The limit from my hosting provider is 10 and I am regularly exceeding this amount for 1 database user. I'm unsure if this is due to a Coding Error / stuck or errored cfthread / malicious attack / …

Member Avatar for utdream
0
167
Member Avatar for 9tontruck

Hi guys, I need to parse JSON data from an HTTPS protocol so I downloaded and integrated libcurl into my VS2010. Everything works fine and sample codes work fine when I use "http" protocol. However, a CURL error keeps coming out when I try to read from "https" protocol.... The …

Member Avatar for 9tontruck
0
3K
Member Avatar for Ribamar23

Hi I'm using Auctionpress to make a ebay like website. I have over 300 categories you can list an item in. When user is listing a item it only gest a list box with all the categories..... and then has to go throught all them to find the right one. …

Member Avatar for Ribamar23
0
207
Member Avatar for my3h

Hi, I want to have multiple selection checkbox in my website, where user can check for the multiple options. But for checkbox i should get the data from the database table. $query2 = "select * from Products where CategoryID = '$CategoryName' "; mysql_query($query2) or die(mysql_error()); $array = array(); while($row = …

Member Avatar for my3h
0
132
Member Avatar for cdogstu99

Hello all, I have a wordpress site with a certain membership login plugin. When i have an expired user that logs in i get this message: (this same error repeats itself for about fifteen or so lines for pluggable-line 669, 670, 671...etc * Warning: Cannot modify header information - headers …

Member Avatar for madCoder
0
352

The End.