64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tzushky

Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] …

Member Avatar for tzushky
0
277
Member Avatar for cullio

Hello, If I have a table like this where i have the year and the month, how can a get something like 2008 3 after a select? - I mean the maximum month for the maximum year? Thank you. [CODE] year month 2006 1 2007 1 2006 2 2007 2 …

Member Avatar for Seemant
0
72
Member Avatar for Cobber

Hi, I have spent hundreds of hours fixing errors with my phpauction GPL V2.51 script I bought. A lot have been cosmetic but this one is causing onscreen errors and making the page extremely slow to load. To cut a long story short, if the thumbnail image a customer is …

Member Avatar for PomonaGrange
0
157
Member Avatar for ishlux

Hi all, [code=php] $selcount = "SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag=a2.flag='1' " ; [/code]

Member Avatar for Shanti C
0
85
Member Avatar for Smithy888

I have the following code and am trying to get a range of data in an xl file and put into an array, so I can then analyse it. The array says it is not empty, but how can I see the data as the app fails if I try …

0
65
Member Avatar for chentiangemalc

Hi There Normally I'm not designing database but have the need to implement an internal questionaire system. I'm wondering if anyone has examples of desigining a database for exams/etc? What I'm finding difficult is the need for multiple types of questions: 1. Multiple choice, one correct answer 2. Multiple choice, …

Member Avatar for peter_budo
0
90
Member Avatar for aamint

Hi, I'm developing issues database. How to get the ageing or how long the issues has been outstanding. TQ

Member Avatar for aamint
0
111
Member Avatar for veledrom

Hi, I have a form with 3 submit buttons. This is what i want; Click on button1, form action becomes 1.php Click on button2, form action becomes 2.php Click on button3, form action becomes 3.php I dont want to enter action manual. How can we do this? Thanks

Member Avatar for wulawula
0
3K
Member Avatar for bloody_ninja

[url]http://www.visualbuilder.com/jsp/tutorial/pageorder/13/[/url] I got the code from this place, however, when I try to run it, it doesn't work. I am new to JSP, just trying to learn the basics , but I can't even get correct info from the website. A friend altered the code for me like this, although …

Member Avatar for peter_budo
0
315
Member Avatar for Smithy888

I am using D2005 Ent and when I used to close a project with say 5 units open, on opening it back up, the 5 units would be visible and the project would be as I left it. Recently this has changed and only a particular unit is open when …

Member Avatar for Smithy888
0
85
Member Avatar for fatasscp

Hello World! I am trying to read in a list of numbers from a file and put it into an array. Please i would be unbelievably grateful if you could tell me whats wrong with my code. This is my code: [code] #include <stdio.h> FILE *fi; FILE *fo; int main() …

Member Avatar for me_roy
0
189
Member Avatar for QuantNeeds

I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void …

Member Avatar for QuantNeeds
0
418
Member Avatar for QuantNeeds

Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // …

Member Avatar for QuantNeeds
0
1K
Member Avatar for guravharsha

Hi; The below jsp page is compiling fine but executing it shows error as[B]javax.servlet.ServletException: java.sql.SQLException: Column 'Total' not found.[/B] [CODE] <%-- Document : evaluationeventtable Created on : Jul 24, 2008, 6:52:37 PM Author : user1 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ page language ="java" %> <%@ page import="java.sql.*, javax.sql.*, javax.naming.*,java.io.*,java.util.*" %> …

Member Avatar for guravharsha
0
137
Member Avatar for Shanti C

can any one tel me what is reason behind this error??? Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\web\test\thumbnailcode.php on line 18 and i have already installed GD library in my system... thanks ....

Member Avatar for Shanti C
-1
85
Member Avatar for henpecked1

Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot …

Member Avatar for ArkM
0
2K
Member Avatar for max2me99

I've a mySQL db with two tables - advertisers and category. If the advertiser is active, I'd like to have the category name appear, with all active advertisers below, and then the following category, etc. Right now I'm testing and have everything active. Quick structure on tables are [B]advertisers[/B] contains …

Member Avatar for nav33n
0
119
Member Avatar for ishlux

Is the where clause is correct....... [code=sql]$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND where flag='1'";[/code] I am getting this error after executing this statement. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\demonew\contractor_trash.php on line 220

Member Avatar for Shanti C
0
74
Member Avatar for Bulldawg

Sorry, me again. Is it possible to help me with being able to sort by clicking on column headers. And the code again: [code=php]$query = "SELECT firstname, lastname, pilotid1, pilotid2, COUNT(flight_time) AS flights, SUM(block_time) AS block, SUM(flight_time) AS ftime, MAX(date_of_flight) AS date FROM members, pireps WHERE members.pilotid1 = pireps.pilotid2 GROUP …

Member Avatar for newbietech
0
88
Member Avatar for docaholic

how would you sort a class object? say..you have a card class, and in the card class, you can have the suits and face value of a card. how would you sort the cards by face values? (smallest to biggest?) thanks

Member Avatar for docaholic
0
160
Member Avatar for gp04lch

hello guys, i wanted to write a query, or a view to be exact to display data from two tables as follow: 1. schedule_table (scheduleID as pk) 2. remarks (remarkID as pk, scheduleID as fk) meaning a schedule can contain many many remarks and non at all. now the problem …

Member Avatar for gp04lch
0
115
Member Avatar for CoolGamer48

To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of …

Member Avatar for Prabakar
0
92
Member Avatar for pavel989

does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right?

Member Avatar for pavel989
0
144
Member Avatar for raymarquise

Hi, I know nothing about compiling a program, but I desperately need a program that is written in python. I installed python and tried to compile it, but got errors. If someone would be kind enough to compile it for me and sent it to my email address, I would …

Member Avatar for vegaseat
0
129
Member Avatar for Motvel

The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include …

Member Avatar for Motvel
0
153
Member Avatar for gispe

hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If …

Member Avatar for gispe
0
84
Member Avatar for veledrom

Hi, How can i pick next or prevoius day in mysql? Any function like curdate() ? Thanks

Member Avatar for veledrom
0
115
Member Avatar for gouki2005

THIS MI CLASS [CODE]Public Class Formula Private a As Integer Private b As Integer Private c As Integer Public Sub seta(ByVal x As Integer) a = x End Sub Public Sub setb(ByVal y As Integer) b = y End Sub Public Sub setc(ByVal z As Integer) c = z End …

Member Avatar for gouki2005
0
208
Member Avatar for gispe

hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the …

Member Avatar for Prabakar
0
90
Member Avatar for Ballantine

Hi I want to capture mouse events when the mouse is positioned on the title bar of a form. In particular I want to be able to replace the standard context menu (to move, size, maximize, minimize, close) with one of my own. Can anyone help please?

Member Avatar for Ballantine
0
722
Member Avatar for ibrahimssani

Hi there, am new to php and i have been trying to upload files from a form to a location on a server ( folder "uploads" on the server), the syntax and everything i am using is right cos i tried using just a form but when ever i use …

Member Avatar for ibrahimssani
0
450
Member Avatar for plike922

We i compile this program is shows that percents as 0.... any suggestions. [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include <math.h> int main() { int g1, g2, g3, g4, w1, w2, w3, w4, p1, p2, p3, p4; string n1; string n2; string n3; string n4; //-------------------------------------------// printf("Enter first …

Member Avatar for Ancient Dragon
0
122
Member Avatar for manzoor

[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected …

Member Avatar for manzoor
0
540
Member Avatar for gispe

hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int …

Member Avatar for gispe
0
73
Member Avatar for bprabhumdu

hello friends, how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,).......... Thanks in advance ............... regards natraj

Member Avatar for bprabhumdu
0
146
Member Avatar for Mazille

I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file …

Member Avatar for Mazille
0
2K
Member Avatar for bloody_ninja

[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int …

Member Avatar for Alex Edwards
0
438
Member Avatar for CoolGamer48

Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like …

Member Avatar for CoolGamer48
0
81
Member Avatar for mustafaneguib

ok guys is there any way to submit a form to a number of pages at the same time? can we provide a number of urls instead of just one action attribute? one form send the same info to different pages. i mean something like an email, but it is …

Member Avatar for mustafaneguib
0
114
Member Avatar for justinmyoung

I'm trying pull up data from database, and display it on a table. I used this code before but for some reason it won't work here. Any suggestions? Thanks! It says the error is this line: [ICODE]<?php while ($list = mysql_fetch_assoc($result)) {?>[/ICODE] The error message is: [B]Warning: mysql_fetch_assoc(): supplied argument …

Member Avatar for mustafaneguib
0
232
Member Avatar for Lukezzz

I have created a listView on my Form. In the properties I have created 2 Columns. What I now wonder is how you can put text in each column. I have tried out this code but no Text is coming up in the listView1 at all. Could I be on …

Member Avatar for Lukezzz
0
114
Member Avatar for TheBeast32

Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the …

Member Avatar for TheBeast32
0
1K
Member Avatar for veledrom

Hi, [inlinecode]Select closing From balance Where account_no = 12 Limit 1[/inlinecode] returns an error "You can't specify target table 'balance' for update in FROM clause" Where is mistake? Thanks [code] AFTER INSERT ON Close BEGIN Insert into balance (date, opening, account) Values (CURDATE(), (Select closing From balance Where account_no = …

Member Avatar for veledrom
0
70
Member Avatar for Billg

I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class …

Member Avatar for vegaseat
0
107
Member Avatar for iam

I've been lurking on DaniWeb for a while now and have finally got round to registering, particuarly after realising it had a Ruby forum. I've been playing with Ruby for a couple of months now and am in love with its common sense approach to programming, and makes the likes …

Member Avatar for peter_budo
0
234
Member Avatar for ryy705

Hello, In a spam message I always see my own email address in the to: field. How do they do that? They must use the bcc: field to send out the emails. So why do I see my own email address in the to: field? I would like to create …

Member Avatar for mexabet
0
96
Member Avatar for plike922

I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" …

Member Avatar for Prabakar
0
180
Member Avatar for @bhi

I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance.

Member Avatar for @bhi
0
150
Member Avatar for TheBeast32

Hi, I have been trying to get MySQL to work on my apache server with PHP on it. My Apache version is 1.3.29 and my PHP version is 5.0.0RC2. I'm also running Windows XP Professional SP2 32 bit. I tried modifying the php.ini file to load the php_mysql.dll, but I …

Member Avatar for emiola
0
114
Member Avatar for max2me99

Very new to this. I've set up a MySQL db with two tables. Structure is table_ads with fields id, category_id, name, sort_name, img1, img2, and active table_categories with fields id, category The goal is when page is loaded to have all active (true) names from ads fall below the category …

Member Avatar for max2me99
0
107

The End.