199,114 Archived Topics
Remove Filter ![]() | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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? | |
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 … | |
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 … | |
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++) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
I'm looking for a java tutorial site that will teach java and also give some exercises. Any other sites would be helpful too. | |
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); } | |
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 … | |
**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 … | |
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. … | |
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 … | |
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 { … | |
![]() | 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 … |
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 | |
**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 … | |
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. | |
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. | |
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: … | |
#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 … | |
.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 … | |
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 … | |
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 … | |
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 … | |
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 | |
![]() | 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 … ![]() |
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 … | |
Hi all, How to display search results from MYSQL database in JSP page?? is it possibile to create gridview in jsp page? please help | |
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, … | |
#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; // … | |
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 … | |
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 … | |
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 / … | |
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 … | |
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. … | |
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 = … | |
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 … |
The End.