199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for group256

Hello everyone, I have to code an array that in each row, it has 16 columns! So I called it myself a 17 dimensional array but I was wondering what data sturcture in Python can best represent this keeping in mind that, it should be easily addressable and modifible. For …

Member Avatar for group256
0
181
Member Avatar for jahanruhi3@gmai

package com.batch; import java.sql.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import DBConnection.DBConnect; public class Batch { @SuppressWarnings({ "unchecked", "rawtypes" }) public ArrayList BatchAction(String ik) { Connection conn = null; Statement st = null; ResultSet rs; ResultSet rs1; ArrayList al = new ArrayList(); conn = DBConnect.getConnection(); final SimpleDateFormat monthDayYearformatter = new SimpleDateFormat( "dd …

Member Avatar for reubenj
0
151
Member Avatar for flywheeljack

Hi, I have been trying to wrap my head around how to control child windows in other applications. I have several examples of code from various sources and some of it works to control the main windows but im at a loss to figure out how to get control of …

Member Avatar for lolafuertes
0
192
Member Avatar for jone1734

I am having trouble with writing a tic tac toe program. My code executes just fine if the first move results in a win. If it doesn't the code just stops. It doesn't finish but it does not continue to run. Can someone help? Must start with the game board …

Member Avatar for Labdabeta
0
208
Member Avatar for grayson773

I've looked up many different answers to the question I'm asking but none have them have seemed to work and im completely confused as to why. Here the the problem: When ever I enter the information into the form on the website, I get the message Error: No database Selected. …

Member Avatar for Biiim
0
266
Member Avatar for ashboi

[CODE] vector<string> guess(4); cout << "Input a Guess(e.g red blue green yellow): "; cin >> guess[0] >> guess[1] >> guess[2] >> guess[3];[/CODE] this is part of my code to let the user input 4 different guesses, is there anyway I can limit the input by 4 so that if the …

Member Avatar for thines01
0
235
Member Avatar for devin2203

Hey everyone I have created an application interface using Java swing on a mac, which looks exactly how I want it. However on windows and Linux the positioning of the components and what seems to be the dimensions look of place. I have tried to make the sizes of everything …

Member Avatar for JamesCherrill
0
166
Member Avatar for apanimesh061

[CODE] import java.io.*; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.lang.*; import java.util.LinkedList; import java.util.List; /** * * @author Animesh Pandey */ public class Main { public static int [][] sort( int a[][]){ int i, j, t = 0, t1 = 0, t2 = 0 ; for(i = 0; i < a.length; …

Member Avatar for NormR1
0
195
Member Avatar for heshanm

I have a login form and i want to enter username & password to log into the system. When loading the page (index.php) there was an error displayed like this. >Notice: Undefined index: msg in C:\wamp\www\Home page\new student registration\index.php on line 13 index.php <form id="form1" name="form1" method="post" action="adminloginvalidate.php"> <?php $message=$_POST["msg"]; …

Member Avatar for heshanm
0
233
Member Avatar for Samaka

Hello, I'm doing a simple J2EE application that will interact with a database like Oracle and you know that a database can have multiple oracle schemas and that is the problem (because I do not know how to configure hibernat with multiple schemas :( because my application can handle multiple …

Member Avatar for Samaka
0
212
Member Avatar for devindamenuka

Hi all, I am using codeigniter freamwork. The following is a list of all the native rules that are available to use: required No Returns FALSE if the form element is empty. matches Yes Returns FALSE if the form element does not match the one in the parameter. matches[form_item] is_unique …

Member Avatar for cereal
0
132
Member Avatar for Jack_Steel

Hey forum, I'm very new to C++, and I need some help. I'm currently having trouble trying to write a Caesar cipher in C++. So far, I'm able to get it to read characters from a text file, and let it count the # each letter appears in an array. …

Member Avatar for BobS0327
0
2K
Member Avatar for tiredoy

Dear friends, These days ,I am learning something related to linear list.In implmenting the function of realloc.I have been pullzed for several days,although I can use "include" method to directly use the function. However , I deeply wonder that how can I write my own code to solve such questions in …

Member Avatar for tiredoy
0
299
Member Avatar for trilju2005

I have to create a stored procedure that will view data from a table. The user will audit the data, with paid dates. The user comes back to the view report, check/select all lines that have the same paid dates to change. The user will enter the paid date, then …

Member Avatar for trilju2005
0
187
Member Avatar for mangel.murti

hi , i want to delete records form these tablesw i have pk fk relationshilp with addcampid on all tables. master table is add_campaign... i am using CI. mytable are add_campaign cac, add_subscriber cas calender cc, calender_master ccm, task cc, task_master ctm, triggers_actions cta, triggers_email cte, jqcalendar jq, manage_action cma …

Member Avatar for cereal
0
120
Member Avatar for romaineo

[CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ char name[80]; char *searchptr; int i, t; for(i=1; name[i]!=EOF; i++){ printf( "Enter name\n"); scanf("%s", &name[i]); } for(t=i; t<=0; t--){ printf(" name[%d] == %s", i, name[t]); getch(); return 0; }}[/CODE]

Member Avatar for -[xxxxxxx]-
0
109
Member Avatar for bervic

i hove a problem about hot to write a program to determine if a number entered by a user is a prime number. Program Input is : Prompt user for a number between 1 and 1000. the probable Program Output is: Echo the user input, display whether the number is …

Member Avatar for -[xxxxxxx]-
0
159
Member Avatar for applejax77

Below is an address book program I am working on. The way it stands now, when the data is entered and writes to a text file it writes the line of data like, John Doe 1234 Help Me Avenue Dallas Texas 98956 Johnathan Doe 2345 Derby Lane Omaha Nebraska 45678 …

Member Avatar for Philippe.Lahaie
0
173
Member Avatar for faithful4ever

Hi, I'm trying to define a dynamic array that consists of an email address and a home address. How can I define them dynamically using malloc() in the below struct? [CODE] typedef struct entry{ char name[40]; /* contains name */ char phone_number[9]; /* contains phone number */ struct entry *next …

Member Avatar for -[xxxxxxx]-
0
149
Member Avatar for pankaj.garg

Dear All, I am developing a application where I have 1 parent from (windowstate of Parent from is set to Maximized) and 2 child forms. In my Parent form I have a menustrip with following code to activate child - [code] Public Class FormParent Public NewMDIChildForm1 As New Form1() Public …

Member Avatar for mikeybware
0
227
Member Avatar for justindill

costPerItem, itemQuantity, and productName keep getting the error "cannot find symbol" [CODE]package shoppingcart; import java.text.DecimalFormat; public class ShoppingCart { private double totalCost; private LineItem[] myItems; private int max = 100; int numberOfItems; //Provide a constructor for this class public ShoppingCart(int size){ max = size; this.totalCost = 0; myItems = new …

Member Avatar for NormR1
0
144
Member Avatar for LRNPHP

Hi There, I'm very new to Python. Is there a easy way of looping trhough a file and using the values in a grep command? [code] Value A Value B 2011-12-14 20:54:09, 797410378, 2011-12-14 20:55:52, 734451141, 2011-12-14 20:56:30, 796058907, 2011-12-14 20:59:51, 736280553, 2011-12-14 21:09:42, 729858848, 2011-12-14 21:12:02, 825895818, 2011-12-14 21:13:53, …

Member Avatar for Gribouillis
0
95
Member Avatar for veledrom

I've been looking for a answer for this for some time but no luck. Does anyone know how do I check if the mysql db is full? I'll trigger an email in PHP to myself if the db is full cos I cannot check it constantly manually. Thanks

Member Avatar for veledrom
0
138
Member Avatar for naheedkassam

I have a table in sql that holds the rights and values (True/false) for different groups for an application. Using sqldataconnection I have been able to get that data into a radgrid, but all the check boxes have been disabled. How do I enable them so that a user can …

0
165
Member Avatar for mackyflores

[CODE]<html> <head> <title>designplace.org search script</title> <meta name="author" content="Steve R, http://www.designplace.org/"> </head> <!-- © http://www.designplace.org/ --> <body> <form name="form" action="search.php" method="get"> <input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /> </form> <?php // Get the search variable from URL $var = @$_GET['q'] ; $trimmed = trim($var) //trim whitespace from the stored …

Member Avatar for mackyflores
0
171
Member Avatar for Cyre
Member Avatar for Cyre
0
97
Member Avatar for aianne

Hello everyone! :) I'm sorry I'm new to this stuff. So I'm trying to create a simple system information and I am attempting to populate a listview control and I get a Run-time error '380': Invalid property value. I hope you can help me and I hope it made sense. …

Member Avatar for aianne
0
2K
Member Avatar for dtidmas1

Hi everyone, The following code is returning the error message "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/numyspace.co.uk/web_users/home/~unn_u011067/public_html/displayclassbooks.php on line 24" and I'm not sure why? Basically I have a list of classifications (for a book catalogue) and all the options work except for DISPLAY …

Member Avatar for dtidmas1
0
214
Member Avatar for welshly_2010

hey i am trying to find many attacks were logged per day per ip. i am reading from a syslog file. here a line couple lines am reading from [QUOTE]Jan 10 09:32:09 j4-be03 sshd[3876]: Failed password for root from 218.241.173.35 port 47084 ssh2 Jan 10 09:32:19 j4-be03 sshd[3879]: Failed password …

Member Avatar for Gribouillis
0
91
Member Avatar for rotemorb

Hello Guys. my problem is this: I want to use this Jquery: [CODE] <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"> $(document).ready(function () { $("#tblGames tr:even").addClass("alt"); $("#tblGames div:odd").addClass("alt"); }); </script> [/CODE] in order to alternate coloring a table (zebra style) this is the table definition: [CODE] <table id="tblGames" runat="server" border="1" style="border-style: …

Member Avatar for pritaeas
0
482
Member Avatar for SpokaneDude

I had my iPhone app working, developed with Storyboard. I decided to take all of the methods that belonged in a SQLite method and move them to a new SQLite class (.h and .m). Now I have errors that I can't seem to get rid of. The basic problem is …

Member Avatar for peter_budo
0
374
Member Avatar for sha1023012

This is probably kind of simple but trying to understand . When the button is press create a person or an employee based on the above checkbox. Put all of the form data into the class object using either the constructor or properties.Display all of the class information using a …

0
80
Member Avatar for Rami.P

Hi , Anybody please help me in this ..it is an urgent for me. Actually i have a DataGridview in my window which should be with one fixed row and 2 fixed columns. Fixedrow is done in Datagridview with the headercolumn property. Now i need to add 2 columns as …

Member Avatar for Jaypeagi
0
2K
Member Avatar for Cyre

Hi fellas! How can i print my details in a web using php. How can i generate a data report. Thanks

Member Avatar for pritaeas
0
138
Member Avatar for lyrico

Hi to all, Can anyone help me to show the code how to save multiple data into mysql via PHP? Thanks in advance. Here's some code [code] <?php echo "<form action='savetoanothertable.php' method='post'>"; $query = mysql_query("SELECT * FROM tbl_student"); while($result = mysql_fetch_array($query) { echo "<input type='text' name='studname' value='$result[studentname]'>"; echo "<input type='text' …

Member Avatar for lyrico
0
248
Member Avatar for zachattack05

Hi again! I was hoping someone would be kind enough to throw some advice my way here. I'm working on an application (still) that I would like to provide "Wizards" in. I have a general idea of how I would like to implement something like this, but staying in line …

Member Avatar for zachattack05
0
84
Member Avatar for nasmnoob

Hey all, admittedly this is some homework help. I'm trying to write a program which takes a string in of hex characters, calls an assembler function which gives me the decimal value of the hex string. That assembler function calls a "checker" function in C which makes sure each character …

Member Avatar for pgcoder
0
1K
Member Avatar for bernardz26

Hello programmers!. Please help me. :( I have here a combobx1 that has a value of Mr.A and Mr.B. want that if i choose from my combobox1 the selected value will go to my sql database.

Member Avatar for M.Waqas Aslam
0
122
Member Avatar for mp9036

/** A programme which converts weight from pounds to kilograms and the height from inches to centimeters, then it calculates body mass index. @author */ import java.util.Scanner; public class BodyMassIndex { public static void main(String[] args) { Scanner BMI = new Scanner(System.in); System.out.println(BMI.nextLine()); double p, k, c, i, bmi; Scanner …

Member Avatar for stultuske
0
284
Member Avatar for Motifaithed

Hi Guys, What is the way to compare two columns from different table?Say I want to compare column IDNumber from table 1 to column IDNumber to table 2, after that I want to delete Identical IdNumber and show the remaining unique IDNumber, any idea how to start it?

Member Avatar for Motifaithed
0
76
Member Avatar for techieg

Hello All, I am trying to read a short inventory list from a .txt file into a class of objects. To be plain and simple, I have no idea how to get the details in the file into objects to I can prompt for the pluCode and quantity to use …

Member Avatar for Lucaci Andrew
0
2K
Member Avatar for bavenbabu

I dont know how to write to an XML FILE in php.Can anyone help me to let me know by giving a simple example in xml.Any help would be appreciated..An example in xml is shown below <?xml version="1.0" encoding="UTF-8"?> <table> <order> <id>1</id> <name>john</name> <age>23</age> </order> <order> <id>2</id> <name>patrick</name> <age>22</age> </order> …

Member Avatar for bavenbabu
0
117
Member Avatar for jamesaero

Hi there! I'm newbie in part of PHP. Here is my code. [CODE] <?php include("config.php"); $sql = "SELECT * FROM customers ORDER BY CompanyName ASC"; $result = mysql_query($sql); ?> <form name="form" method="post" action="join.php"> <select name="myOptions" onchange="document.form.price.value=this.value"> <option value>----Choose Company Name----</option> <?php while ($rows=mysql_fetch_array($result)) { ?> <option value="<?php echo $rows['Price']?>"><?php echo …

Member Avatar for jamesaero
0
190
Member Avatar for HasNor

Hi all..i have a problem that i want to upload file less than 5MB..but it doesn't work for file size more than 3MB..what happen huh? Please help me.. [CODE] <?php include "connection/db_connect.php"; include "template.php"; $reqid=$_GET['reqid']; if (($_FILES["file"]["type"]) && ($_FILES["file"]["size"] < 5000000000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: …

Member Avatar for HasNor
0
172
Member Avatar for SiPexTBC

In my program, there is a button you click that brings up a new form. This form runs a process. On the form (second form) closing event, I have [CODE]e.Cancel = true; Hide();[/CODE] So now the form that runs the process is hidden. Now, the way i want it to …

Member Avatar for chaitra9
0
804
Member Avatar for crash bash

Hi Guys i do not know how to create Array of object could you help me plese?

Member Avatar for ztini
0
108
Member Avatar for shean1488

Hi everybody I have a little question. I am using JFileChooser to open file and then process it.But the thing is its only works for txt file. What are the other ways to open all ither text files. Plus if would be really helpful if you would tell me how …

Member Avatar for shean1488
0
295
Member Avatar for Eye_Kneed_Help

Hey Everyone, I'm new to JCreator and trying to compile this program, however I keep getting "missing return statement"...please help. import javax.swing.JOptionPane; public class DoCount { public static void main(String[] args) { String nString=JOptionPane.showInputDialog("Enter n:"); int n = Integer.parseInt(nString); factorial(n); } public static int factorial(int n){ int count = n; …

Member Avatar for ztini
0
253
Member Avatar for DanHu

Hi, I am trying to create a binary tree from a string read from a file. The string contains information that tells which is the new left and right nodes, and the node which new these nodes are to be added (assuming there is a root node in the tree …

Member Avatar for ztini
0
537
Member Avatar for Felipevd

Hey guys, I was doing some basic bash shell script, as I am new to this, and I can't seem to pass over this error. Here is the code: [CODE] #!/bin/bash echo "Please, type in the day of the week." read Day if (($Day="Monday"));then Monday=date +%d Tuesday=$(($Lunes+1)) Wednesday=$(($Martes+1)) Thursday=$(($Miercoles+1)) Friday=$(($Jueves+1)) …

Member Avatar for JeoSaurus
0
152

The End.