199,114 Archived Topics
Remove Filter ![]() | |
So ive been trying to get an average of this array needed, and I seem to be having trouble with it. So far, my current code just adds the numbers up, but doesnt really average them out at all: [CODE]import java.util.Scanner; import java.util.Arrays; public class Grades { public static void … | |
import java.util.Scanner; public class EventFrequency { /** * main method: * ask the user for the average number of events per time interval * (lambda) and the number of time intervals to observe * draw a horizontal and vertical histogram of the number of heads */ public static void main(String[] … | |
Hi guys, I have a problem I need to make an appointment with some bold text in it. I also want to set a category for it (color)... I heared that it is possible to implict RTF into appointment.body - but I dunno how to do that... My code is: … | |
This was the assignment: Write a class with methods to help you balance your checking account(an object class-main method is not in this class). The CheckingAccount Class should have at least two instance variables: the balance and the total service charges, along with methods to get and set each instance … | |
can you help me now i need sales and inventory system using data control and msflexgrid only.. | |
I have an application that is writen in PHP and connects to a MS SQL Server 2008 Database. I'm using ADO recordsets. There are cases where specific IDs and years in the table returns nothing. How do I test for when there are no results? I searched and most of … | |
Hello there, I am a newbie in MySQL and I am extremely confused about one thing. I am currently creating four tables. There's a primary key I have specified for the first table which is a foriegn key in the second table. Now the problem is that I want the … | |
Hi Why am i getting error i the below code. abstract class SuperHeroes { abstract void perform(); } class IronMan extends SuperHeroes{ String action="Blowing bubbles"; IronMan(String action){ this.action = action; } void perform(){System.out.printIn(this.action); } } | |
I'm having some problems with the server side and client events on my web form. What I found is that client side events fire before server events. This is problematic for me because I have a jquery function that clears the form when it's submitted but the form is cleared … | |
Hello, I'm pretty new to SQL and I have only worked with one-two table(s) at time. I got an assignment now against multiple tables, and the queries it wants me to solve is really hard. I was just wondering if you could help me to solve and understand these questions? … | |
![]() | Hi guys I am making a new website. However I have reached a dead end and need assistants. Now I am making something similar to w3schools, if you go to http://www.w3schools.com/ and just click on HTML. Then you see how the website still remains it's consistancy, but the items on … ![]() |
OK, I'm new to VB.Net so forgive me if this was covered else where and my search foo was week. I am trying to read data from a text file which is updated regularly by another program. I only want to read the new data which will then be passed … | |
Hi, I have a PHP file that gets an XML files from a HTML form. The PHP files needs to generate a new HTML file containing a table with the the data retrived from the XML file. I was able to this this properly (using expat). However, before adding the … | |
I am having a problem and that is I have buttons to read text to speech like play pause and stop I have created 4 buttons Play,Pause,Stop,Resume but now I dont want the Resume button, instead when I click on the pause button it should pause the speech and later … | |
I'm making a connect 4 like game in Java and everything I choose a column to drop the piece it goes where I want it to however, when I want to drop a piece on top of that I, my program throws an error and makes me select another move. … | |
I have been trying to explore the source code of the getcontext() and setcontext functions but I have not been able to spot the right file or resource. Any help in this regard will be helpful. I was able to trace to http://fossies.org/dox/glibc-2.14.1/setcontext_8c_source.html but there is no info | |
Hai, I am doing a registration system, and my system should have a report by using a bar/pie chart. How i want to create a bar chart with value generate from database. what component should i have to create those chart? im using visual studio 2008 and mysql query... Anyone … | |
If anyone can help me finish this and point out what had to be done to make the program work, that would be great. -ask for how many days user wants to enter from 1-365 (validate) -ask for temperature for each days between -60 and 90 degrees celsius (loop, validate) … | |
Hello people, i need your help here;I want to use this code on asp.net application that has seperate files "Contactus.aspx and Contactus.aspx.cs" please how do i arrange these codes. [CODE]<%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.Net.Mail" %> <script language="C#" runat="server"> protected void Page_Load(object sender, EventArgs e) { //create the mail … | |
Hi friends, I am a student of BScIT and I want a project which is to be done in VB.NET language. I surfed the internet but not found anything new... So, Is there anyone who can give me good suggestion??? & also help me give some objective i.e. what the … | |
I want to make a program that it can create a HTML page. It should be able to make a table (with data provided) using the HTML by the program itself. This code also uses wsgi so when the program runs you will need to type the localhost on a … | |
Hello, I was looking for a way to post multipart/form data to a servlet using java standalone application. Any information would be helpful. | |
I have a problem to make a selection by using combo box(cbChoice). if I have 2 item [name], [age], [id_number]. After click SEARCH button, the data from database will display to textbox. this my code but its not work myCommand = New MySqlCommand("SELECT * FROM daftarpelajar WHERE " & cbChoice.Text … | |
Notice: Undefined index: txt1 in C:\xampp\htdocs\php\conversion.php on line 76 Notice: Undefined index: select1 in C:\xampp\htdocs\php\conversion.php on line 77 Notice: Undefined index: select2 in C:\xampp\htdocs\php\conversion.php on line 78 Notice: Undefined index: convert in C:\xampp\htdocs\php\conversion.php on line 79 error! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title></title> … | |
Hi, I have to write a recursive method to count the number of user entered even integers in an array (the array size is up to 100). Here's what I have.... public static int countEven (int numbers[], int startIndex, int endIndex) { if(startIndex==endIndex) if (numbers[startIndex]%2 == 0) return 1; else … | |
In one class i have a back button(java Swing)...i want when i click this button it will go to another class and close the current class...however, when i use System.exit(0)...it closes both 2 class...if i use setVisible(false) for the current class...that class still running...how can i close the current and … | |
can anyone help me to get a clear idea what broadcast recievers mean and how they are used.. (i understood that when we want any event to be happened when we recieve any data from any other mobile these broad cast recievers are used. But i am not clear with … | |
Hai, I have 2 question to ask about vb.net. Now i'm using Visual Studio 2005 with connection MySql... 1. how if I want to passing the data from database to the textbox by SEARCH button. I Have 1 SEARCH button and 3 textbox [txtname],[txtage],[txtaddress] and to pass it also on … | |
Hello there, I'm having a problem on this one. I want to update my records, but when I click save, the specific fields/record is null. instead of updating/edit. These is my PHP code for admin_view.php (This is the form where you can choose a specific record/field that you are going … | |
[CODE] #include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces (char *str); void Removevowels (char *str); int main() { system("Color 1A"); char myString[300]; char clear[300]; char cipher[300]; int selection; int x = 0; int i = 0; int opt; cout<<"Enter a string!"<<endl; cin.ignore(); cin.getline(myString,sizeof(myString)); cout<<"Plase select what you … | |
Is it possible to convert Float or double in a string??? Any idea?? | |
hello experts..please help me..How can i solve this error... Using db As New DB_CARRENTALEntities1 Dim x Dim a = db.tbl_customer.Where(Function(b) b.cardesc = "studnum").FirstOrDefault x = a.CustomerID + 1<<<<<(Object reference not set to an instance of an object.) how can i solve this error.. Dim newstudnum As String = "104-" & … | |
Hi, I want to know what is meant by a code footprint. I tried googling but all of them have explanations that I was really not able to understand. Can anyone please tell me what is means? How is it important and how can it be used(if at all it … | |
I'm a total noob to using mod_rewrite and I'm reading tutorials and trying to wrap my head around it but it's not quite coming together. What I need to accomplish is this: take a bunch of urls structed this way: yoursite.com?index.php?id=# and rewriting it so it becomes yoursite.com/whatever depending upon … | |
can anyone take alook at my code, i dont get errors or anything but it doesnt save in my db??? please ... thanks! <?php if(isset($_POST[save])) { //student,grade,section,subject $ids=$_POST['id']; $grades=$_POST['fg']; $secs=$_POST['secs']; $subs=$_POST['subs']; $yirs=$g_year['acad_id']; debug($_POST); if(isset($_POST['save'])) { unset($_POST['save']); $i = count($_POST['id']); $x = 0; for($x=0; $x <$i;$x++){ foreach($_POST as $data =>$d){ echo … | |
here is a code for HTML form [code] **<html> <head> <title>Registration Form</title> </head> <body> <form action="registration.php" method="post"> <fieldset> Name: <input type="textbox" name="fname"/><br/><br/> Last Name: <input type="textbox" name="lname"/><br/><br/> Gender:<select><option value="text">Male</option><option value="text">Female</option></select><br><br> Address: <input type="textbox" name="address"/><br/><br/> Contact: <input type="textbox" name="contact"/><br/><br/> E-mail: <input type="textbox" name="e-mail"/><br/><br/> User_Name: <input type="textbox" name="user_name"/><br/><br/> Password: <input type="password" name="password"/><br/><br/> … ![]() | |
Hi there, I've been learning C lately, and in one of the exercises I've encountered a bit of a frustrating issue. The exercise is to accept a string of characters that are answers to a multiple choice quiz, and then compare them to the correct answers which are in another … | |
hi all, im creating a csv file from sql querry, after that im sending this csv file with email, after i sent the mail i wanna delete the csv file but it says 'its using by another....' dont know how to resolve this. thanks for help. this is my export … | |
When user post a comment, i strip all the html tags in the comment before insert into my database because i do not want them to post external links(SPAM) in the comment. But i only want to strip external links, i want to display my own website URL as normal … | |
hi Every one i am having problem in deleting record from textboxes and gridview. i have customer table and booking table. what i want to do is when i click the delete button the customer and its related booking should be deleted. i have written a code which onlt deletes … | |
I am trying to learn how to make a mobile phone communicate with a server and a database. So far, I have made a web-service on my PC using this tutorial: http://msdn.microsoft.com/en-us/library/ms733069.aspx The above tutorial makes a sortof WCF service. What would be the best Database system for me? Simplicity … | |
I am stuck on trying to figure out a few questions. The questions are listed below. 1: Given the data below, design IA-32 instructions to find the octal string for X and save it in Y. .data X word 200 Y byte 6 dup (' ') 2: Given the data … | |
Hi everybody! I made an applet, and was trying to put it in web page. When I run my applet by itself it works fine, but when I'm trying to run it thrue the web page it doesn't work at all. I mean I have just grey box (like a … | |
Hi! Im kinda new to c# devt I used to do a php project and Im wondering if theres anyway sql commands in php have comparable commands in c# for example if I wanna read a data in php I use $query = "SELECT * FROM table"; then execute that … | |
Hey, how do you declare an array of strings using double pointer ? I normally use [CODE]char* str[] = {"this", "works", "fine" ,"for", "me"}; [/CODE] But I want to know if there is a way of declaring array of strings using something like [CODE]char** str; [/CODE] Please show me how … | |
cHey guy can anyone help me to solve this question because i am begginers i am so sure to use array C++ write a program to find smallest of 30 integer using array Thanks | |
Hi. Sooner or later I had to go into the depths of C. Today was the day I tried my first things with C. However, I am having a problem although I do not know what actually causes it. The goal of the pogram is to combine the parameters into … | |
I have text being loaded onto the page from a MySQL database. When the text is clicked, using JavaScript the element is replaced with a textbox displaying the text. I want to be able to use a MySQL update query to change what is in the textbox and so it … | |
Hello Friends, I want a small help... I have created a text box....a button and a date time picker control I have showed the calander control on click of the button event....when a value is selected in the datetimepicker the value should be showed in the text box... I have … | |
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 st1 = null; Statement st2 = null; ResultSet rs1 = null; ResultSet rs2 = null; ArrayList al = new ArrayList(); conn = … |
The End.