199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for k2k

hi, if i have a db: person> pID (not null, auto_increment), lastname, firstname phone>pID (not null), phoneNum, pID(foreign key points to "person") assume connection is established and pointing to the right database already////// //assume $ln and $fn have value for user input [code=sql]mysql_query("INSERT INTO person( ' ', '$_POST[$ln]', '$_POST[$fn]' )"); …

Member Avatar for jackakos
0
119
Member Avatar for jackakos

If I run this query in the PHP Admin it displays 2 records [code=php] SELECT staff.emp_no, staff.fName, staff.lName, event.event_date, event.timeStart, event.timeEnd, event.emp_no, event.agenda FROM staff, event WHERE staff.emp_no = event.emp_no AND event.emp_no =201 AND event.event_date = "27-01-2008" AND timeStart = "1020" [/code] The above query gives Results emp_no fName lName …

Member Avatar for jackakos
0
204
Member Avatar for The Dark Knight

Without using MUL, IMUL, DIV, IDIV instructions and any iteration, find the product of 25 and a value in BL. save your result in DL . this is a task which i need some help in .. because i cant seem to figure how can we multiply without any iteration …

Member Avatar for carson myers
0
94
Member Avatar for scottyscotty19

Hi, I have produced an er diagram for an assignment which I have attached. Can somebody please tell me if it is correct and if not can you please let me know where I went wrong Thanks

Member Avatar for scottyscotty19
0
209
Member Avatar for nedsnurb

hi guys am a total noob with C++ and im trying to write a program that will take a user inputted integer and displays its divisors and then tell the user whether it is a perfect number or not. So far I have [code=cplusplus] #include <iostream> using namespace std; int …

Member Avatar for MosaicFuneral
0
179
Member Avatar for skatamatic

I'm writing a function parser, which (hopefully) will be able to handle much more complex problems than basic operations. I've just completed the handling of the addition, subtraction, and brackets, but am at a loss of how to implement proper order of operations for multiplication and division. In order to …

Member Avatar for skatamatic
0
199
Member Avatar for tones1986

Hey all.. i am working on a assignment for class currently, and am having a few difficulties. Right now i have a file that i am reading in, for each value read, i call my insert() function. This insert function push_bakc(item) into a vector, and then i call a function, …

Member Avatar for tones1986
0
141
Member Avatar for mandrake747

Hi All, Does anyone know how I can validate data entered into the cell of a datagrid? What I am trying to do is this: each time a user enters a value into a particular columns cell, I want to update the corresponding cell depending on the value entered. For …

Member Avatar for Jugortha
0
108
Member Avatar for dcasousa

Hello everyone, I'm a beginner with databases and I'm trying to do some homework. I'm writing down the exercise and I'll be putting what i've done so far replying this thread. I'd appreciate if someone could help me saying if I'm in the right way or how should i do …

Member Avatar for dansousa
0
239
Member Avatar for sivak
Member Avatar for Jugortha
0
81
Member Avatar for Tank50

HI Iam using domino object to send email from my project,and after Programs execute correctly,but I uninstall the lotus application and install it again,and now i have domino object 1.2 version,something like that,once I run the application it gave me error messages.Below I mention what is error message,pls help me …

Member Avatar for Jugortha
0
115
Member Avatar for sivak

when we go for webservices in .net webapplications? example plz? 2.what is mean by delegate and asynchronous delegate in .net 3.static method with example?plz

Member Avatar for Jugortha
0
122
Member Avatar for sivak

difference between dictionaries ,hashtable,arraylist in c# .net? 2. i want to know about interface in c# .net? how do achieve multiple inheritance in c#...got some material in google..not getting clear idea..can anyone explain me with understanding example?

Member Avatar for Jugortha
0
159
Member Avatar for MylesDBaker

Hello everyone, I am having some difficulty with a class assignment, partially because the professor has assigned it before we have covered the material. I have created a general case for the classes, but I really don't know what the assignment is asking me to do. Any help is appreciated, …

Member Avatar for Lerner
0
201
Member Avatar for ROTC89

ok i have everything done for my program but it says i didnt declare myQ i dont understand some help would be nice here is the main #include <iostream> #include "queue.h" using namespace std; int main() { Queue myQ; int i; for(i=0;i<SIZE;i++) { myQ.enqueue(i*2); } myQ.dequeue(); myQ.dequeue(); cout<<myQ.front()<<myQ.back()<<endl; while(!myQ.empty()) { …

Member Avatar for ROTC89
0
128
Member Avatar for resduq

hi, i'm workin on a lab for an intro to computer science class which deals with c++... one of the ten parts of it says the following Read about the getline command for fetching an entire line from a input stream. Then make a text file of mixed words and …

Member Avatar for ArkM
0
167
Member Avatar for Shipintern

Does anyone here know of a shopping cart application that can be private labelled and resold as a different brand? It should be easy to use, have solid reporting, integrate with Quickbooks and allow design modification without HTML skills. Thanks.

Member Avatar for Shipintern
0
125
Member Avatar for rjrasmussen

I suppose this is easy for a lot of the people who are familiar with PHP/MySQL. I'm relatively new to the whole thing...so please bear with me. I have a single table entitled "events" with two fields. One field is the "date" field and the other is the "event" field. …

Member Avatar for rjrasmussen
0
122
Member Avatar for mjfall01

My name's makhtar new member. i was looking at the website and really like it. talking about that i have a huge problem and i need help. Can somebody help me urgently. You are to develop a program for an auto dealership. This program will keep track of the auto …

Member Avatar for William Hemsworth
0
269
Member Avatar for revini

Hi all, Can somebody help me pls. I need to create an array of strings using a set of string pointers. char *name1 = "aa"; char *name2 = "bb"; want to make an array like char *nameall[] = {name1, name2}; But this does not work :( Is there a simple …

Member Avatar for revini
0
112
Member Avatar for BITMAN2124

I want redirect output console program to memory. It can be specified memory buffer, or buffer that I can gert ptr to later. I need to specifiy input and output of program and can do this with tmp file+redirect I/O, but that expensive operations+invloves tmp files. I know redirect output …

Member Avatar for BITMAN2124
0
310
Member Avatar for replic

Hi everyone, as the heading already says i want to check whether a folder is a network share or not. So far i tried to achieve this by reading the file attributes but that did not lead to the right solution. If anyone here knows how to do this please …

Member Avatar for replic
0
464
Member Avatar for Trogan

Hi, I will be attempting to learn PHP very shortly. I am going to create a MySQL database to hold records of students, especially attendance. I would like to know if it is possible to do the following with PHP.... [LIST=1] [*]Connect the database with PHP [*]Add new details to …

Member Avatar for Trogan
0
110
Member Avatar for Tekito

There a lot of times in my program where I have large arrays of data and I would like to use the power of SQL commands (SUM, GROUP BY, INNER JOIN, ORDER BY) on this information. It is a great tool when you are doing anything beyond the most basic …

Member Avatar for Tekito
0
214
Member Avatar for Foe89

I don't usually ask for help on these but I missed a day of class and I'm a bit out of the loop. We're going over structures and for HW my instructer likes to do code fixes where theres code with errors that we need to correct. Anyways, I'm reading …

Member Avatar for vmanes
0
498
Member Avatar for bondo

I have no clue why this isn't working. The top part that reads into size, shortTime, longTime, and threshold work fine. Down below where I try to do the exact same thing and read into x, i get segmentation fault every single time. It seems to me that everything is …

Member Avatar for Narue
0
150
Member Avatar for DLightman

I have a bunch of sort methods in a class: [CODE=cplusplus] typedef int DataType; void bubbleSort(DataType theArray[], int n); void insertionSort(DataType theArray[], int n); void mergesort(DataType theArray[], int first, int last); void quicksort(DataType theArray[], int first, int last, char * pivot_type); void selectionSort(DataType theArray[], int n); [/CODE] In my main …

Member Avatar for DLightman
0
88
Member Avatar for superman71903

I am fairly new to Python, so writing code in it is complicated right now. I wanted to know if anyone knew of a code to send a process started on a workstation to a multiprocessor supercomputer where the job could be finished while still allowing the workstation to be …

Member Avatar for superman71903
0
127
Member Avatar for new_2_java

Hi all, I have a simple JFrame windows with two JLabel, two JTextField and two JButton. I use SpringLayout to display controls in on the frame. But when I run the application, the windows is displayed in a very small size. Only the two buttons are displayed. But when I …

Member Avatar for BestJewSinceJC
0
236
Member Avatar for mrjoli021

why won't this work? i have a txt file that i need to read into a matrix. i want to read into a char array so i can analyze each char separate. String fname = "c:\\game.txt"; char[][] matrix = new char[4][4]; private void readFile() { try { Scanner s = …

Member Avatar for BestJewSinceJC
0
255
Member Avatar for Barvik

This is QT btw. I get the following error when i write "make" in the terminal window: [code]QObject::setParent: New parent must be in the same thread as the previous parent[/code] here's my headerfile: [code]#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QDate> #include <QMainWindow> #include <QTableWidget> class QAction; class QLabel; class MainWindow : …

Member Avatar for Barvik
0
257
Member Avatar for hellIon

hey guys i am using miracle c compiler on windows xp.... i am trying to figure out how does pointer to functions work..... i have gone thru many tutorials but all have them failed to compile.... [code] #include <stdio.h> int sum(int x, int y) { return x + y; } …

Member Avatar for Narue
0
136
Member Avatar for MaxVK

Hi there. I am using a RichTextCtrl on a window with a toolbar. The toolbar has a save button on it that is disabled by default when the application starts. I need this button to become enabled when the user changes something in the RichTextCtrl, but I'm having trouble working …

Member Avatar for MaxVK
0
81
Member Avatar for axfv

I can use ShellExecute to easily open a URL in a new default browser window. I'd like subsequent URLs to be opened in the same window, but ShellExecute always opens a new window/tab. I've been looking on google and msdn, but there doesn't appear to be a simple solution. Do …

Member Avatar for dickersonka
0
119
Member Avatar for rmlopes

Hi all, I was developing my app under Linux, using the Loki library. No I am trying to work on it using visual c++ under windows XP. I can compile without errors both my project and the loki library, which created a loki_D.lib. I include this .lib through the makefile. …

Member Avatar for rmlopes
0
205
Member Avatar for sonia sardana

I have made two resource files,named 1)Form1.en-US.resx Name Value Button1.Text English 2)Form1.fr-FR.resx Name Value Button1.Text France My Code is as Under- [code]Imports System.Globalization Imports System.Threading Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ci As CultureInfo Dim aL As New ArrayList() For …

Member Avatar for sourav bansal
0
232
Member Avatar for AcidG3rm5

[code] //checks for leap year bool checkLeapYr(int year) { bool isLeap; if ((year%4=0) && (year %100!=0) || (year%400=0)) //error here. Non-Ivalue assignment { isLeap=true; return isLeap; } else { isLeap=false; return isLeap; } }//end function check leap year [/code] i have the above function to check if a year is …

Member Avatar for AcidG3rm5
0
166
Member Avatar for gangsta1903

As far as I know, exceptions that are not subclasses of runtime exception or error should be caught (handled). When a file exception occurs, it should be caught because its a subclass of exception class, but how can it be recovered? If file is not found,it sounds silly to recover …

Member Avatar for gangsta1903
0
102
Member Avatar for kitty7

Hello, I'm am really new to C++; I've only been doing it for a couple of months. However, in my class, I have no idea what I've been doing wrong...I'm posting my program and the assignment because I desperately need the insight. I'm not sure if I am in the …

Member Avatar for kitty7
0
138
Member Avatar for ting_ting

this is question and the answer...but i cannot compile it in dev c++ correctly..help me //(a) Get five integer numbers from the user. //( Store the numbers in an array called Number. //© Display all the numbers on screen. //(d) Modify the program so that it prints the reverse of …

Member Avatar for Narue
0
137
Member Avatar for ddanbe

Anyone out there any ideas why this compiles and runs? I'm using Visual C# 2008. [CODE=csharp]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public enum fluf_value { thegood, thebad, theugly, }; static fluf_value MyFunc() { return fluf_value.theugly; } static void Main(string[] args) { MyFunc(); …

Member Avatar for ddanbe
0
193
Member Avatar for mgirl

Hi, My change counting program runs perfectly except the counters don't return to 0 when I try another number. The change adds up from the first try. Is there any way to fix this? [icode] #include <stdio.h> int main() { int toonie=0, dollar=0, quarter=0, dime=0, nickel=0, cent=0; float amount, change, …

Member Avatar for ajay.krish123
0
294
Member Avatar for ccandillo

I am trying to run the following screen scraping script but it's not displaying any output. Can someone tell me what I'm doing wrong? [CODE=python] from BeautifulSoup import BeautifulSoup import urllib url = 'http://toronto.en.craigslist.ca/search/cta?query=civic&minAsk=min&maxAsk=max' doc = urllib.urlopen(url).read() soup = BeautifulSoup(doc) tags = soup.findAll('p') for tag in tags: addate = tag.contents[0] …

Member Avatar for ccandillo
0
174
Member Avatar for Davidsen

Is there a way to make a text based RPG game? Any help is appreciated.

Member Avatar for Narue
0
63
Member Avatar for Sally123

I was wondering if it was possible to bound 2 combo boxes to each other. the first combo box with a set of information. Based on what the user selects, the second combo box changes. this involves 2 tables. table 1 ProductID Descritption table 2 Id FK_ProductID Category example: the …

Member Avatar for dickersonka
0
116
Member Avatar for gab_sk

Hi, I have a python script which uses a COM object. This script works correctly when I run it from pywin, however, it does not run when I run it from windows command line - it throws an exception occurred in this COM object. I know that this COM obj. …

Member Avatar for jlm699
0
140
Member Avatar for Squires

I've looked around the forums and did not find a lot of book reviews, so I figure I'll ask. Generally speaking, what are some good programming books? Any specific authors or series that you would recommend? Now to be more detailed, I know C++ and Java, and am familiar with …

Member Avatar for DenizGursel
0
191
Member Avatar for larryperl

Hi Experts, i have this code -- [CODE] <%-- Document : index Created on : Nov 10, 2008, 3:25:29 PM Author : namish --%> <%@page import="java.sql.*"%> <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; …

Member Avatar for masijade
0
102
Member Avatar for Aamit

In my php file [code] echo "<script>alert('Username/password pair is invalid.Please try again.')</script>"; echo"<script language='javascript'>window.location.href='login.php'</script>"; [/code] I am displaying message like this but when message is displayed background php design is blank and then again login page display. I want show message like [URL="http://www.bin-co.com/javascript/examples/print.php#"]http://www.bin-co.com/javascript/examples/print.php#[/URL] when we click on [U][B]Create Alert[/B][/U] message …

Member Avatar for Aamit
0
144
Member Avatar for schandrashekhar

i am developing code for private chat application in asp.net(vb code) i have finished work upto private chat,but my problem is,if i selected for chat window opened in my system but it does't open in recever side system (like gmail chat)plese any one can help regarding this. Thank u sani

Member Avatar for schandrashekhar
0
82

The End.