199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bossie09

The following code contain some errors which im unable to locate. The problem is.....Im doing search and update. Im able to search the database and update Animal_Type and Animal_Breed BUT cannot update Premium_Habitat and Age...... Can some one locate that fatal error please Thanks [code]<?php include("svrconfig.php"); $svr_connect = mysql_connect("localhost","root","magicpass"); if(!$svr_connect) …

Member Avatar for bossie09
0
166
Member Avatar for squizzel

Hey Guys, I am new here but looking to come here often and obtain some leet skills in java. I am new to programming but do enjoy it. I was just assigned some homework that has me stumped. I would go talk to someone at my school but they are …

Member Avatar for Anyday
0
185
Member Avatar for hszforu

what does an array contain when it is declared? For example, when i declare an int array numbers like: int[] numbers=new int[5]; now without intializing any values, i tried to print that array.So it showed me that all elements inside that array were 0. Now if 0 means empty, then …

Member Avatar for hszforu
0
138
Member Avatar for Zssffssz

I was going through all of the tags gettn' used to my fresh DM compiler (love it) and in optimization there was a rather long tag called 'expensive optimization' Th DM website didn't have anything and google just brought up car engines. What does it do?

Member Avatar for mzimmers
0
124
Member Avatar for avani20391

Hello Friends... I'm writing a C program to print pattern of swastik using *. I want to set my pattern in the center of the screen. Can anyone tell me how can I do this ???? Below is the C program for swastik, but it do not print swastik in …

Member Avatar for avani20391
0
868
Member Avatar for teenshee_rosean

Hi there.! I've been working on our Software Analysis Development project for how many days and sleepless nights, the application is an Online Shopping. I'm using Microsoft Visual Studio 2010 as my environment, then I used C# as language for the site. I used Microsoft SQL 2008 R2 as my …

Member Avatar for teenshee_rosean
0
559
Member Avatar for Se7Olutionyg

I am trying to write the string to text file after heap sort.... it works correctly, just don't know why there's some weird charracter in the output file.. Any help with be appreciated. Content of input file in1 is abc efg ghi q w Thanks [CODE]#include <stdio.h> #include <ctype.h> #include …

Member Avatar for Smeagel13
0
189
Member Avatar for sujan.dasmahapa

Dear Friends I have a mfc application which I already converted to a dll. now I want to launch that application from another win32 client application. So how I can achieve this. Any h elp would be highly appreciated. check my code snippet. [CODE]//in App.h header extern "C" __declspec(dllexport) void …

Member Avatar for sujan.dasmahapa
0
347
Member Avatar for ckwolfe

Hey, I'm a beginner at compiling (or interpreting) Haskell and some of the basic things are hard to do especially when theres not a lot of info out there for me to use. My question is, how do I run a test file after I have compiled? I compiler with: …

Member Avatar for ckwolfe
0
131
Member Avatar for Zssffssz

Ok here it is: I want to read a file backwards, the catch is that I want to do this in binary mode to make a, really lame, data encryption program. Is there any easy way (<10 lines) To do this?

Member Avatar for vijayan121
0
704
Member Avatar for Lendaanx

Im new to java and trying to get buttons to work. My next button works as intended however the first and last do not and the previous one only takes me back one space if i'm on the second item. I need the prev button to rotate backwards through the …

Member Avatar for hiddepolen
0
184
Member Avatar for AliHurworth

Hi all, I have a database which I would like to use to power an HTML list. I'm struggling to get the loop to print out more than one line. This is the script: [CODE] <?php $query = "SELECT * FROM `table` ORDER BY `year` ASC"; $resultID = mysql_query($query, $conn) …

Member Avatar for AliHurworth
0
206
Member Avatar for xiangzhuang

Hey guys I keep getting the "no return statement error in two places, I have commented them for you [CODE] /** * A WordsCompare object stores Strings. It is used to determine if the first word * should be placed before or after the second word in the dictionary */ …

Member Avatar for JamesCherrill
0
292
Member Avatar for c++_fem

Hi, Is there a way to stop a function from returning a value if a condition evaluates to true. For example my function returns the sum of two integers. How can I stop it from returning anything if one of the integers is negative [CODE] Class C1 { ... public …

Member Avatar for c++_fem
0
234
Member Avatar for Shwetha Dali

Here is my code,problem is i'm able to login even with wrong username and password. Can anybody tell wat is the mistake in my code.. [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using MySql.Data.MySqlClient; …

Member Avatar for hericles
0
395
Member Avatar for dilansankalpa

Hi, i need to validate some text in a text box and restrict entering invalid characters. So i thought to use Key_Pressed event. But this event doesn't fire when i paste some text directly in the text box. what event can be used for paste text in a text box …

Member Avatar for dilansankalpa
0
105
Member Avatar for superjj

hi I want to write a program where I can load files into, for example XML. When the file is uploaded, I want to use the data that is in the file. can someone help me please. Thanks

Member Avatar for superjj
0
185
Member Avatar for deepak1331

Help Me i have created a program to take password from user while accessing a small project, but while user is inputting password it is displayed, i don't want it, i have created all other functions for deleting, editing password. e.g enter password : india001 //i am getting that enter …

Member Avatar for Narue
0
10K
Member Avatar for Ayavan

i am just developing a library management system as one of my project. i using vb.net 2010 and the MS Access 2007 as back end. when i save some records into my database through my application it is correctly saved and i confirmed it through opening the relevant table in …

Member Avatar for Mitja Bonca
0
111
Member Avatar for soham.m17

I want to add a Lable in a JComponent when a button will be clicked. I have added a actionlistner on that button. I've added this.add(label) in the JComponent. but the location, which is set by label.setLocation(...) is not maintained in the JComponent. If i use FlowLayout() in the JComponent …

Member Avatar for JamesCherrill
0
122
Member Avatar for fishman6

Hey, I've been trying to get this to work for most of the day. Basically I have an array of strings and I'm adding to them using strcat in a loop. It works fine for the first few loops but then the strings start to go all out of whack. …

Member Avatar for Narue
0
166
Member Avatar for techyworld

i need to modify the following code so that the parent thread can pass to the created thread a number (from 1 to 10) and the child thread should display that number of values. The number passed to each created thread can be a different one. Note: In this case …

Member Avatar for gerard4143
0
128
Member Avatar for jacksantho

Hi, I am facing the parser error in the following line: [CODE]<td><select name="type"><option value=" ">select the type</option><option value="C" [B]"'.if(trim($_POST['ctype2'])=="C") echo "selected".'"[/B]>Calcium</option><option value="V">Vitamin</option></td> </tr> [/CODE] Error: Parse error: syntax error, unexpected T_IF in C:\xampp\htdocs\test.php on line 78

Member Avatar for bijoy340
0
222
Member Avatar for rahulrulez

Hey there. I'm planning to develop a software for my father's business. The software is very simple, it has two tables. 1. Stock 2. Sale Whenever stock arrives, the quantity and content will be added to Stock table.. Structure is something like 1. Stock Table | Brand | Quantity | …

Member Avatar for peter_budo
0
212
Member Avatar for artee

I am sure this must be very simple, but unforunately I can't figure it out. I have the following code which populates the dropdown lists from the database. This works fine. Now, when the user selects a particular employee name from the list, I want to get the Employee Id …

Member Avatar for navera
0
349
Member Avatar for dandeliondream

Hi, I wish to display the homepage of 3 websites (e.g. [url]www.msn.com[/url], [url]www.google.com[/url], [url]www.apple.com[/url]) on screen. What should i use? Is there a tutorial somewhere?

Member Avatar for Anyday
0
138
Member Avatar for zack_falcon

I've created a class called Piece, which I used to create a 2D array in my main program. This is the class: [CODE]namespace GG { class Piece { public int rank; public int player; } }[/CODE] And is instantiated in my main program like so: [CODE] namespace GG { public …

Member Avatar for Mitja Bonca
0
135
Member Avatar for jklasd

I have a problem with getting an input from class A to class B. I already created a method which gets the value but when I call it in class b it returns empty. These are my codes: [B]CLASS A[/B] [CODE] public class log extends javax.swing.JFrame { public String name; …

Member Avatar for Anyday
0
3K
Member Avatar for gahhon

[CODE]import java.util.Scanner; public class Bakery { private static String flavors; private static String weight; private static int quantity; public Bakery(){ this("Chocolate Moist", "1(KG)", 1); } public Bakery(String flavors, String weight, int quantity) { this.flavors = flavors; this.weight = weight; this.quantity = quantity; } public void setFlavors(String flavors){ this.flavors = flavors; …

Member Avatar for gahhon
0
123
Member Avatar for gahhon

[CODE]import java.util.Scanner; public class Course { private String courseTitle; private double feesPerStudent; private int noOfStudents; private String[] studentName = new String[100]; private int courseCount; public Course(String courseTitle, double feesPerStudent) { this.courseTitle = courseTitle; this.feesPerStudent = feesPerStudent; } public void setCourseTitle(String courseTitle){ this.courseTitle = courseTitle; } public String getCourseTitle(){ return courseTitle; …

Member Avatar for gahhon
0
202
Member Avatar for x69chen

MY bad this should below to C#... ignore this one please, sorry about that... --------------------------------------------------------------------------------------------- Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method, [CODE] static void Main() { int[] …

Member Avatar for stereomatching
0
163
Member Avatar for amras123

I am having a hard time figuring out how to delete a row from the datagridview using a datasource that will also delete the row in SQL Database. [CODE] public partial class Form1 : Form { const String sStr = "Server= ************;Database=***; Integrated Security=SSPI"; SqlConnection sConn; SqlDataAdapter daCourse; DataSet ds; …

Member Avatar for Mitja Bonca
0
237
Member Avatar for Voldemort2

I am trying to add a data(string) to a url in javascript and pass to java controller. In server side i am using spring mvc. The javascript code below redirects to the save.htm with the data concatenated. I couldnt figure out how to catch. Is there any way to pass …

0
131
Member Avatar for djmonster

Hello All, Can everyone help me to solve this problem ? Im doing an assignment about downloading a file and write it to a new file. My problem is the file that I was trying to download is very large, so everytime I compile my Download class and the main …

Member Avatar for Anyday
0
198
Member Avatar for gahhon

is that any good ideas to fixed the aligment of the output instead of using \t, due to some of the output words have more or less. :)

Member Avatar for stevanity
0
86
Member Avatar for furlanut

Hi, I have been learning PHP/Mysql for only a few moths and am working on my own dynamic web-site. Stuck on what is probably very simple. User inputs name($name)in form. Table containing it has 15 fields - $name could be in any or none How do I put $name into …

Member Avatar for cwarn23
0
104
Member Avatar for melkai

Hello, Working on my final project for a Java Class and have become stumped on the final leg of the code. We are supposed to create a program to add a record, remove a record, display a record, and list all records. The records must be written to a file. …

Member Avatar for stevanity
0
404
Member Avatar for suliya

Hi Morning all, here I've code how to insert data into multiple tables in Sql Server using asp.net C# form but the data unable to enter ang got error, may anyone help fix it form me? because i've tried so many times already but still cannot, there is the code …

Member Avatar for nakor77
0
3K
Member Avatar for MrNo

Hey guys, I'm having a little trouble putting this together. I believe I have the formula correct on the bottom, but I can't seem get the program to work. The idea is that it needs to be able to run like this: ./sdev < input.file I have a simple understanding …

Member Avatar for D33wakar
0
1K
Member Avatar for ittanfkh

the view_count of the notes table will increment 2 times everytime i click the button that link into this page.. need help desperately.. thanks! [CODE]<?php ob_start(); $note_id=$_GET['note_id']; include 'fconnect.php'; if ($note_id!=null) { $query_ncount = "UPDATE notes SET view_count = (view_count+1) WHERE note_id = '$note_id'"; $result_ncount = mysql_query($query_ncount); if(!$result_ncount ){ die('invalid …

Member Avatar for ittanfkh
0
192
Member Avatar for alfiechiong

Hi can i ask for help pls. I have this xml values from a given xml file i wanted to retrieved it from there and when I was trying to retrieved it and echo it out it shows the correct value together with the decimal values. But when the i …

Member Avatar for alfiechiong
0
119
Member Avatar for jacob21

Hi I am getting uploaded image in text format. [B].txt[/B] need help & suggestions. [CODE] $email_from = "resume@ihmjobs.com"; // Who the email is from $email_subject = "Attached image"; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message that …

Member Avatar for jacob21
0
237
Member Avatar for random12

Hi, im new here and also new to C++ (pretty much new to programming anyways) I have been working in an assignment and got stuck trying to store information into a 3x3 array, and then retrieving the data. [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float …

Member Avatar for random12
0
134
Member Avatar for muze

hello guys... I have an html page inwhich I collect some data using text boxes. Now in this page, I have button and I set the action attribute of [B]<form>[/B] a php script like this. [CODE] <form action="test.php" method="post"> ----- [/CODE] Now this does the job. But the problem is …

Member Avatar for codewalkz
0
6K
Member Avatar for terry_bogart

Not sure how to do this I tried googling it but to no avail. I want to print out a specific line in my while loop [CODE]450 42.5 16625.0 460 42.0 16820.0 470 41.5 17005.0 480 41.0 17180.0 490 40.5 17345.0 500 40.0 17500.0 [/CODE] example of part of my …

Member Avatar for JoshuaBurleson
0
149
Member Avatar for effBlam

I am making a program that analyzes text from a user After inputting several line and using the keyword "DONE", the program will ask for one of 8 possible options which is the menu() function where the user will enter the number. How would i be able to run my …

Member Avatar for JoshuaBurleson
0
214
Member Avatar for x69chen

Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method, [CODE] static void Main() { int[] myArray = new int[4]; setLength(myArray, 8); } static void setLength(int[] myArray, int length) { Array.Resize(ref …

Member Avatar for Mitja Bonca
0
172
Member Avatar for Alex Starkov

Hi! I have to write the programm, which will receive any number (at sec) and calculate it to weeks, days, hours, minutes and sec; for e.x. 4102 sec ---> 1h 8m and 22s The problem is that it's forbidden to use atoi(), scanf() and simmilar functions. Insead of them, I …

Member Avatar for Alex Starkov
0
252
Member Avatar for jgat2011

Hi every one! I would like to know if it's possible to have differents items in a combo box in each row. It there is way. Please help!!! Thanks

Member Avatar for Mitja Bonca
0
125
Member Avatar for vaironl

I had quiz today in my IB CS course, and I had a question I could not understand, I will try to stated as closed as possible. "There is an array of integers which holds an unknown amount of integers but it's not bigger than a 100. if a = …

Member Avatar for Akill10
0
194

The End.