199,114 Archived Topics
Remove Filter ![]() | |
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) … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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? | |
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 … | |
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) … | |
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 */ … | |
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 … | |
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; … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 | |
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 | … | |
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 … | |
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? | |
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 … | |
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; … | |
[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; … | |
[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; … | |
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[] … | |
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; … | |
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 … | |
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 … | |
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. :) | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 = … |
The End.