199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for avinash_545

Dear All, I am currently working on an assignment. I am having one error with this php file but I cannot figure out the problem. Can you please help. Fatal error: Function name must be a string in C:\xampp\htdocs\idareyou\searchUser.php on line 2[code]<?php $fme=$_GET('search_fname'); $lme=$_GET('search_lname'); $con=mysql_connect("localhost","root",""); if(!$con){die("could not connect".mysql_error());} mysql_select_db("idareyou",$con); echo("dbconnect …

Member Avatar for avinash_545
0
177
Member Avatar for timb89

im trying to output my bfs in this manner, showing the connections rather than the individual nodes: input 0 1 1 0 1 0 0 0 1 0 0 1 0 0 1 0 output (0,1) (0,2) (2,3) rather than: 0 1 2 3 this is my code so far, …

Member Avatar for alwaysLearning0
0
172
Member Avatar for abi62

Hello Every One. I want to read weight from an electronic weight machine which is connected with computer and save it in a database. Please if any one know the procedure, please help me. Thanks

Member Avatar for AndreRet
0
100
Member Avatar for prashanth s j

Hi all, I have a double pointer in C as follows: [code] void foo(char * , char**); main( ) { char * inbuff = {0x10,0x20}; char * outbuff; foo(inbuff, (char **) &outbuff); } void foo(char *inbuff, char ** outbuff); { //code to manipulate inbuff and outbuff. *outbuff = (char *) …

Member Avatar for hussnain abass
0
362
Member Avatar for snehalj

above code not working, y is 2010 and year0 is also 2010, as per my knowledge Equal should be displayed as output, but the condition does not get equal. Pls help me for this.

Member Avatar for snehalj
0
553
Member Avatar for dmarvp

Hi everyone, I have a little problem with the class XmlDocument in .net. I'm using framework 2.0 and I am loading an xmlDocument from a path. The xml has a node without value like this: <somexmlnode/> When I load the xml using the xmlDocument class, it seems that it is …

Member Avatar for dmarvp
0
141
Member Avatar for edwoodt

hi, i'm entry level webdesigner- following the advice of youtube tutorial "rrphillps" of serverside includes. [url]http://www.youtube.com/user/rrphillips?blend=2&ob=1#p/u/143/9TrsRxFtgSA[/url] really simple stuff; the idea is to put all your hyperlinks in an ".inc" file and link all your webpages to it. but then he explains that your server needs to know to look …

Member Avatar for edwoodt
0
282
Member Avatar for James0l9l

I am attempting to create code where the user can alter the A elements in the list continuously. If another letter in the list is replaced however, it should ask for new input from the user, and go back to the code where the user can alter A elements in …

Member Avatar for TrustyTony
0
166
Member Avatar for shashasaaim

I have a datagrid. Right now, the datagrid has an event which is doubleclick on a row. it doesn't matter at which column i click,it will still be read as a row. this is its code: [CODE]<my:DataGrid x:Name="ProjectDG" LoadingRow="ProjectDG_LoadingRow" IsReadOnly="True" AutoGenerateColumns="False" Cursor="Hand" CanUserReorderColumns="False" CanUserResizeRows="False" CanUserSortColumns="False" ColumnHeaderHeight="25" HorizontalGridLinesBrush="#FF3B3B3B" VerticalGridLinesBrush="#FF3B3B3B" BorderBrush="{x:Null}" Foreground="Black" …

0
113
Member Avatar for Butterflieq

I've toyed around a great deal trying to get my calculations correct in this countdown program, but I keep getting the same result. Basically, I'm creating a program that will countdown from a users inputted number. At each second it will display whatever amount of seconds remaining. My problem is …

Member Avatar for masijade
0
149
Member Avatar for ml.williams

were i work has an access they use to record customer details which has been running forever and just uses a access macro form to enter the data. i am wanting to try viewing and editing this using vb,net which i have a little bit of experience with. can you …

Member Avatar for achinaseller
0
72
Member Avatar for PDB1982
Member Avatar for JamesCherrill
0
98
Member Avatar for Andy_Parr

Hi, I'm writing code for a graphical map of a shopping center. Whilst writing the code I realised it would be simpler to be able to draw objects using "names" instead of values. E.g. g.drawRect(Asda); instead of g.drawRect(100,100,40,40);. Is this possible? I have tried writing various classes but I can't …

Member Avatar for JamesCherrill
0
640
Member Avatar for donmiq

So basically, I have this: [CODE=C] bool getDouble ( double & value, const string & prompt); int main() { char userSelection; do { cin >> userSelection; if (userSelection == '1') { double radius; if (getDouble (radius, "Please enter a value: ")) { cout << "good"; } else { cout << …

Member Avatar for donmiq
0
74
Member Avatar for navi17
Member Avatar for niths

hi all, i had a image upload code and it is working fine but while uploading i need some progress bar. so i got some progress bars..so can any one suggest me how to integrate that progress bar in my code...Is there any examples... Thank u.

Member Avatar for muralibobby2015
0
83
Member Avatar for alanlee9898

I have all the php coding Insert, view, delete. The problem now is user only can use once email address to register at my website. I would want them to register with same email at my website. is it possible? Thanks!

Member Avatar for alanlee9898
0
101
Member Avatar for bob200707

Hello, I am currently working on a program that is supposed to do the following: I am supposed to take a data file of 5 student names that are in the following form: lastName firstName middleName. I am supposed to convert each name to the following form: firstName middleName lastName. …

Member Avatar for jonsca
0
380
Member Avatar for eppoair2

I have just enrolled to a computer sciencee class, and my teacher gave us an assignement about writing a pseudo code, but it's my first time being in computer science class and i don;t have any experience in computer science. Can someone help me? here is the problem: You and …

Member Avatar for apines
0
101
Member Avatar for tKc

I need help in calculating the variance for randomly generated values (using srand(seed)). When i input 5 i should get 97359589.15265 but i am getting 1.29888e+010. I am almost positive i went wrong in the calculation of the variance but have no idea what to do in making it correct. …

Member Avatar for jonsca
0
157
Member Avatar for saadi06

//this code is for upload,i have successfully uploaded my file in to uploads folder please can anyone tell me how can i get the image from my folder if(isset($_REQUEST["upload"])) { $name=$_FILES['uploadedfile']['name']; $type=$_FILES['uploadedfile']['type']; $size=$_FILES['uploadedfile']['size']; $check=$_FILES['uploadedfile']['name']; $uname=str_replace(" ","_",$name); $tmp_name=$_FILES['uploadedfile']['tmp_name']; $target_path = "uploads/"; $target_path = $target_path . basename( $uname); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo …

Member Avatar for naveedkhalid
0
154
Member Avatar for Agnusmaximus

Hi guys, I'm new to this site and I have a question regarding internet bots in general. What I want to do is to use C (or php) to create a bot that will scan the internet (perhaps log into sites, retrieve data, get links, play internet games?) on the …

Member Avatar for Agnusmaximus
0
237
Member Avatar for jdiddy

Hi, I need to store data entered into my java application such as the persons name, address, ph number, date etc to be saved in an xml file. I also need to retrieve it so it can be displayed. If you can point me in the right direction that would …

Member Avatar for ~s.o.s~
0
350
Member Avatar for ZEEPLE

Hey, I have tried everything that does not work to change the color of the text on a JButton I have in a JPanel. Does anyone know how to do this. I need the actual text on the button to be a different color than black..This is an application so …

Member Avatar for ants280
0
4K
Member Avatar for kurmadu

Hello =) I have some problem to set font and color in my program.can you take a look for the moment please?Here is my simple program: [code] import java.awt.event.*; import javax.swing.*; public class showYourLove extends JFrame //inherits from JFrame class { private JPanel panel; //to references a panel private JLabel …

Member Avatar for Eric Cute
0
146
Member Avatar for losh177

Hi, I'm working on an overloding operator homework. I'm overloading the + = += << [] && operators to work with objects that contain int arrays that can be set to have index from x to y instead of 0 to x. I'm getting the LNK2010 & LNK1120 errors on …

Member Avatar for losh177
0
243
Member Avatar for Nathaniel10

An exercise is to write a program that shows how memory is allocated to stack variables compared to heap variables. I ran the following code. [code] #include "../../std_lib_facilities.h" int main () { char c = ' '; char ch0[10]; char *ch = new char[10]; char *init_ch = ch; cout << …

Member Avatar for Nathaniel10
0
157
Member Avatar for edepperson

I'm trying to encrypt a tif file using RijndaelManaged. Initially I was getting "Padding is invalid and cannot be removed" error. Got that fixed by adding FlushFinalBlock() to my Encryption method. Now, however, when I try to decrypt a file that has been encrypted in a different application (they both …

Member Avatar for mrhoso
0
233
Member Avatar for triumphost

Hey guys I found the following code snippet below... I want to know how to compile this... I am a c++ programmer and something is wrong with my mouse/audio so I thought this may programmatically solve it but I have no clue about anything java and in c++ there is …

Member Avatar for kramerd
0
295
Member Avatar for javarook

Im just trying to read a file to see if i did the code correctly but I keep getting this error. Any help is appreciated. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> struct Node { char name[15]; char title[15]; int year; struct Node *next; struct Node *prev; }; typedef struct Node* Box; Box build_node(FILE …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for aappee

Hi, need help as to what is the code doing, if possible each statement if anyone knows: When it is run, when dd/mm/yyyy format is enter, it will give 20 Dec 2010 is a Monday Why is the monthIndices and division done for ? [CODE] public static String dayOfWeek(int dd, …

Member Avatar for aappee
0
140
Member Avatar for tech9x

[code=c++] while( getline( infile2, temp2 ) ) { size_t prev_pos = 0, pos = 0; while( (pos = temp2.find(' ', pos)) != std::string::npos ) { string wordtobold( temp2.substr(prev_pos, pos-prev_pos) ); cout << wordtobold << '\n'; prev_pos = ++pos; } string wordtobold(temp2.substr(prev_pos, pos-prev_pos) ); // Last word cout << wordtobold << …

Member Avatar for tech9x
0
2K
Member Avatar for hussamat

[code] * Asuming the list is sorted in ascending order, inserts n in the list * at the right position to maintain the ascending and returns the resulted list. */ struct node * insert (int n, struct node * list){ struct node * newnode = (struct node *) malloc (sizeof(struct …

Member Avatar for abhimanipal
0
128
Member Avatar for daviddoria

If I use a template function with T where T = itk::Image<unsigned char>::Pointer, everything is fine: [code] #include <itkImage.h> class Test { public: template <class T> void Add(T patch); }; template <class T> void Test::Add(T patch) { } int main(int, char*[]) { Test a; itk::Image<unsigned char>::Pointer image; a.Add(image); return EXIT_SUCCESS; …

Member Avatar for daviddoria
0
3K
Member Avatar for mbouster

Dear all , I have the following UML Diagram and below the associated Code. Can you please help me complete the code? Thanks in advance I have written my UML diagram as follows. -x : double -y : double +MyPoint() +MyPoint(x:double,y:double) +get X() :double +getY() : double +distance: (MyPoint1:MyPoint2):double +distance(p1:MyPoint:p2:MyPoint):double …

Member Avatar for tong1
0
610
Member Avatar for Teelnaw

New to the forum and C. I am trying to write a function that will allow me to remove a certian string from and exisiting one. The below program I wrote by using examples in an text book and online. I understand it at a basic level, but I'm pretty …

Member Avatar for abhimanipal
0
210
Member Avatar for WildBamaBoy

Just started learning C++ today. I'm writing a program to keep up with school assignments. [CODE] #include <iostream> #include <stdlib.h> #include <fstream> #include <string> struct Assignment { string Period; string Title; string Page; string Date; string Instruct; }; void NewAssignment() { system("CLS"); Assignment Work; cout << "New Assignment Entry" << …

Member Avatar for WaltP
0
358
Member Avatar for bookworm619

I keep on messing up the math calculations :@. [U]Error[/U] The output was shown as this" [ICODE] BMR: 40.35 pounds BMI: -83.60 inches TDEE: -114.95 years Your BMI classifies you as Obese [/ICODE] But it should be this way: [ICODE] BMR is 2308.15 BMI is 40.35 TDEE is 3173.71 Your …

Member Avatar for Eric Cute
0
1K
Member Avatar for a-humam

Hello All I need to write a program in C standard to solve the produce -consumer problem but I don't want to use threads, also I don't want to use Semaphore or shared memory. The exactly I need is to write the program using (Message queue) which use functions of …

Member Avatar for group256
0
101
Member Avatar for falkor15

I'm new to Java and just need a little help....The program is supposed to have the user enter in a series of numbers then displays the largest and the smallest....they have to enter -99 to end. My problem is the smallest number is always -99. What do i have wrong? …

Member Avatar for falkor15
0
311
Member Avatar for Oblivious21

ok guys so i have problem here is the goal of this program:Write a Java program that reads in this file and produces a visual representation of the seat assignments, with a passenger's name and his/her seat assignment in each seat slot here is the data in [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/seats.txt"]this[/URL] text file: …

Member Avatar for Ezzaral
0
160
Member Avatar for krosty4782

Hi people, i have been trying a lot of codes to change a resource of a compiled exe, finally what im using is this: [CODE]using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; using Microsoft.Win32; namespace WindowsFormsApplication1 { static class Program …

0
139
Member Avatar for krosty4782

Hello people. Im having a problem with this. I want to create an exe from my own exe. For example in my exe you can put "name: " "haircolor: ". So when yo click ok, this exe make the exe2. So when i open exe2 it shows a messagebox showing …

Member Avatar for krosty4782
0
164
Member Avatar for rlfate

I am relatively new to delphi. what i am try to do it to open a new form from the main one as a pop-up window, let the user input certain values in there (two integers and a check box), and use these values as parameters in a procedure to …

Member Avatar for rlfate
0
621
Member Avatar for dragonpunch

hello how do i open zip and rar files with c ? which lib do u recommend ? is there any one lib that does both zip n rar ? im basically trying to open zip and rar files which contain pics and retrieve a string array of all the …

Member Avatar for Ninetie
0
158
Member Avatar for Malinka

Hello Everyone, I have a list of digits. What is the most efficient way to count the number of tokens between two known digits? Here is what I came up with: [CODE] def dis(l, a1, a2): i1 = l.index(a1) i2 = l.index(a2) distance = i2 - i1 - 1 return …

Member Avatar for TrustyTony
0
123
Member Avatar for Bri426

I'm having so much trouble with this assignment, and I was wondering if anyone would be able to help me out. Here is the assignment: This program uses the file "cities.txt", which contains over 136,000 location names in the United States. Each line of the file contains a place name …

Member Avatar for SasseMan
0
391
Member Avatar for simirnov

Hi all, I am a newbie in php and is developing a cms. I am verifying the email address of the new user when creating an account on a site. The email goes to the email address with activation code of the account, but this email is not having the …

Member Avatar for simirnov
0
812
Member Avatar for scobie

Hi Folks, I'm a noob but I'm slowly getting addicted to python. I've been hitting a wall for about 4 hours trying various things to no avail. It looks to me like it should work and runs without error but.... I expect the blockcount counter to be high (but it's …

Member Avatar for TrustyTony
0
338
Member Avatar for Lennyrogal

Hi! I do have this assignment I have been working on for a while. My lecturer told us that we can produce few different EER models for this assignment and I would like to share with you my point of view at this problem and get as many other ideas …

0
127

The End.