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