199,113 Archived Topics
Remove Filter ![]() | |
Hello, I know nothing about PHP and this error has come up and I've been researching for days and have tried just about everything. Hopefully, I've given you enough information, but can you tell me why this line: $row2 = mysql_fetch_assoc($res); is the one called up in the following error? … ![]() | |
how to create stored procedure for altering multiple coulmns , how to create stored for creating dynamic table and add multiple columns to created table | |
what is the difference between malloc , calloc and realloc? what r their uses? | |
I'm a newbie in C.For a month or so i have started learning and a friend is giving me tips and homework.My newest homework is something like this: I have a garaje with 3 floors,each with 10 parking spaces.Each hour cost 5$.Only the cars who have left pay. The problem … | |
So basically I am done with my project, I've passed to our instructor already, and I've achieved an above average grade, but one thing though I am still not satisfied, can someone check this code out for me? give me few tips? ? or tricks about this? here's my code … | |
Hi all I need to send form data to email .. Can any one share some sample code .. Thanks in advance | |
I m getting this three warning when i m opening my website. [B]Can any one explain me what is this errors and how it comes[/B] any help will be very much appreciated. Warning: require(Non-permanent posts) [function.require]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\kcd.co.in\httpdocs\index.php on line 17 … | |
My professor in his grading robot decided to put a unicode character in a ciphering program and my code really doesnt like it at all. Can anyone help me without using loops? [CODE]// //Caesars Cipher //program encrypts a file using caesars cipher //Due 9/9/11 //created 9/9/11 //last modified 9/9/11 #include … | |
I want to create a program in which the output currently on screen is stored in the file and when required, can be read and printed on the screen as it is. I want to use it to create a program in turbo c++. | |
I get a warning about recursion when I compile the code below. I think the warning is wrong. Here is the background. I have two functions which "add a layer" to a DXF file. They have the same names but different parameters. One of them takes a CString and one … | |
Hi, I have created an applet in which it is possible to select a shape from the combo box and the the shape moves with the mouse.Everything works just fine except a few problems. 1. The combo box is only displayed when mouse is moved over it. 2. The triangle … | |
Write a program that helps the user to consider a range of interest rates for a mortgage over 20, 25, and 30 years. Prompt the user to enter the amount of the loan and a minimum and maximum interest rate (in whole percentages). Then write a text file containing a … | |
As far as normal ascii is concerned can I compare a wchar_t with a char type to see if they are equal? I think, but do not know, that the most common ASCII chars have the same integer value in char and wchar_t. Is that true? Do I need to … | |
void FUNCTIONS WITH DIFFERENT TYPES AND NUMBERS OF PARAMETERS Ms Smart, a lecturer at a famous university, wants to compare the results of male and female students. She decides to calculate four averages, namely the average year mark for male students, the average year mark for female students, the average … | |
The code runs but the problem is that the the discount value is not calculated wrong. Which part did I miss here. Here is the question: You now have to add a function discFee that has three value parameters - two of type int representing the number of sport and … | |
is there anyway to generate numbers from 0.0 to 999 999 without repetition? I am thinking of making an array that you can put 27 integer datas in it like this [CODE]double amounts[] = { 0, 0.01, 1000000, 25, 250000, 75, 50, 1000, 200, 100, 400000, 750, 5000, 750000, 500, … | |
I want to upload images that will be saved in a folder. That folder is inside my website folder. eg: mywebsite(website folder). myimage(image folder). And the path of image should be saved in mysql. I tried the following but it is giving error "path not found." This is my path:- … | |
I'm trying to get this to execute my main function but for the life of me, I can't seem to let is do that. there are no errors when running the code. What it is suppose to do is to prompt a user for gender between m for male and … | |
I decided to give this a go again today. The pupils of the Annandale High School have to pay a fee for each extramural activity that they want to partake in. These activities include sport, and other activities such as chess, ballet, etc. The fee for sport activities is R120 … | |
So today I learned you can't modify an arraylist while you are iterating through it. In this case, I must be able to add elements though, while staying inside my loop. Any ideas? I tried using the Iterator class based off some examples online. Excuse my in-elegant code, it was … | |
Hey everyone, I've searched around Google a bit but most places suggest just using "\n" over and over. This gets messy though, for the code and the interface. Is there a built in method for Java that can clear the console? | |
Hi, I am having problem understanding the below: 1) List a = new ArrayList(); 2) List <?> b = a; 3) List <? extends Object> c = a; // with warning of course Why there is an unchecked warning at clause 3) while no unchecked warning at 2) ? I … | |
Very trivial program which could be thought as conclusion from the Quiz posts (thanks Gribouillis for inspiration for format) | |
Hi! I got this messaging system on my website up and running now. But there is something i need to do when the user click the message they got. All the new messages are flagged as New! when they get the message. When they click on it, i got this … | |
I have this function and when I load the page in the browser I keep on receiving an error that the last'}' shouldn't be there and I don't know why because everything seems right to me. Anyone could tell me where could be the problem? [CODE] function PageCompTopRated($w,$h) { global … | |
Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] … | |
How do I nest a while loop inside a do..loop without using if statement? | |
guys can you please help me in displaying columns from my ms access table to a listview in vb.net.. i use oledb in connecting to ms access.. | |
Hi, I was wanting to write a (ba)sh script to allow me to wait for the detection of a new USB device, and when that device is detected, execute some commands. The scripts are intending to be working on the principle that whenever I plug in a usb device a … | |
Hi I have around 2500 pages that I need to link to various pages on my site. Each of these 2500 pages contains stock and share information, and I want to link them to pages according the the first letter of the company's name. So BP would be under B, … | |
I have a program assignment in my C and Unix class that allows the user to enter two numbers in binary seperated by (*,+,-,or /). It then has to produce an answer and loop back to the beginning. It also has to have an option to exit. Can anyone help? | |
hello.. just want to ask if it's possible to save html form field values in an xml file without using any server side script like ajax or php. i just want to use javascript and i want to do it offline witthout using any server like tomcat. is it possible? … | |
Hello, I am trying to do a simple word count of a text file and output it to a text file. For eg my array looks like this: word_freq = [('test', 1), ('of', 1), ('function', 1), ('first', 1), ('the', 2)] I was able to output to a text file in … | |
[CODE]import java.io.*; public class Prime{ public static void main(String[] args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); boolean isPrime = true; System.out.print("Enter number: "); int input = Integer.parseInt(jill.readLine()); if(input < 2){ isPrime = false; } if (input == 2) { isPrime = true; } if (isPrime) … | |
im making a C++ web browser, i have the basic design all i want now is it to be an anonymous browser, similar to a proxy site. is there a code you can give my to do this. im doing this for a friend who likes to play games in … | |
![]() | Hello. I'm using ncurses with a side project I'm working on, and I'm using colored characters. To use colors, you have to wrap each mvprintw() function with some code to set the color. I thought I'd write a function that wraps mvprintw() so I could just specify the color whenever … ![]() |
I'm working my way through Accelerated C++ and I've come across this exercise. The read_hw function works fine if it's void as long as I comment out the "return in" line. The author didn't bother to explain why he's returning a reference to the cin that was passed in the … | |
I have the following code. My program loads 20 pictures in one panel and each pictures has for the moment like 500 Kb, but in the future they shall have like 2~6 Mb. When I use this part of code, my program that uses only 6 Mb of memory, but … | |
I attempted to make a shell script to launch a java program packaged into a .jar file. It should have been pretty simple. [CODE] #!/bin/sh java -jar Test.jar [/CODE] but for some reason this script never runs. i've manually executed the command and it works perfectly, i've checked the path … | |
Hello again. I have another conundrum on my hands. At the moment I am trying to program a simple flowchart of an ordering system of sorts. At one part, the program will ask the user for his/her name, then continue on. Later on, the user will place an order, and … | |
Hi, Is there any way to "clear" work space in Lua similar to the [ICODE]clear [/ICODE]command in Matlab ? Thanks !! | |
C:\Program Files\Java\jdk1.6.0_18\bin>javac -d ../bin rmidir\Chatserver.java rmidir\Chatserver.java:6: cannot find symbol symbol : class Chatclient location: interface rmidir.Chatserver public String[] login(Chatclient cc) throws RemoteException; ^ 1 error | |
hello I am asking if someone can be kind and make who is next live scipit for me please I will be greatfully with any ideas or tips a friend of my owner of a radio station called liverbird radio | |
ok i got a assignment to do for college, i gotta create a form, a simple form with just 2 textboxes for input of title & password, this is simple & i know how to do this, the next part of my assignment is to create a page with the … | |
hi there! guys can you help me how the form will automatically close in 5 or 10 seconds and so on? like a countdown timer, when the time runs out then it will close automatically? give me some specific codes. tnx! :| | |
Hello, Does anyone know about a good tutorial for a user login system? I searched the net for a day and a half now, downloaded few scripts, tutorials and classes, but each one had a problem in it. I need a simple and secure user login script. Any help? Thanks | |
hi guys, am pretty new to socket programming in vb.net . i am used to the winsock control in vb6 but it seems that vb.net has a difft approach as i could not find the control. Could someone please explain to me about sockets | |
DATA TYPE MISMATCH ERROR CRITERIA [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text <> " " And TextBox2.Text <> " " And TextBox3.Text <> " " And TextBox4.Text <> " " And TextBox5.Text <> " " And TextBox6.Text <> " " And TextBox7.Text <> … | |
Why is it saying "Notice: Undefined variable: cnt in C:\Wamp\www\librarie\cos.php on line 24". Here is the code: [CODE]<?php session_start(); include("conectare.php"); include("page_top.php"); include("meniu.php"); if (isset($_GET['actiune']) && ($_GET['actiune'] == "adauga")) { if (!isset($_SESSION['cnt']) || !$_SESSION['cnt']) $_SESSION['cnt'] = '0'; $cnt = $_SESSION['cnt']; $cnt++; $_SESSION['cnt'] = $cnt; $_SESSION['nr_buc'][] = 1; $_SESSION['pret'][] = $_POST['pret']; $_SESSION['titlu'][] … | |
hello Everyone! I want to implement fast transpose of a sparse matrix. It's really hard for me to understand the algorithm explained in book. Can anyone please explain in simple manner? Thank you ! :) |
The End.