199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for superyo

i got this error: [code]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\db.php on line 13[/code] my php code is this: [code=php] <?php //Database Info $dbhost="localhost"; $dbuser="root"; $dbpass="something"; $dbname="somedb"; $table="users"; //Connect to Database $con=mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname, $con); $user=$_POST['user']; $pass=$_POST['pass']; $query = "SELECT * FROM $table …

Member Avatar for martin5211
0
261
Member Avatar for chris5126

HI, I am creating a website but when i right click on my login.aspx and click set as start page it seems to be ignored. I rebuild the website and click view in browser and it just takes me to [url]http://localhost:62665/website/[/url] I am using master pages if that helps anyone …

0
107
Member Avatar for firoz.raj

Can anybody tell me why i am getting duplicate value.when i try to make query.here is the sql statement.what i have written.Kindly find the screen shot also. [code] SELECT m.productname,m.unit,e.quantity FROM (MaterialRequisitionOrder AS p INNER JOIN MaterialRequisitionDetail AS e ON p.requisition_no = e.requisition_no) INNER JOIN Materials AS m ON e.item_code …

Member Avatar for Teme64
0
87
Member Avatar for Olsi009

Howdy, I am trying to write a simple program in java that creates a database with some tables and adds some data, but I keep gettin this error: [CODE]java.sql.SQLException: No database selected[/CODE] I am posting the code below, it's really easy to understand. Please HELP!!! I am new at mySQL …

Member Avatar for Olsi009
0
157
Member Avatar for gretty

Hello In my program, the function [B]largest_prime_factor[/B] is not being called/working? Can you tell me what may be wrong? The function [B]largest_prime_factor[/B], should return the largest prime number of the variable [B]n5[/B] (n5 = n3 + n4). Plus if you see any other errors or maybe a better way of …

Member Avatar for r.stiltskin
0
190
Member Avatar for chris5126

Hi, I am creating a aspx site that will act as a monitoring program the user has the option of adding or removing servers. However when they do this a windows service needs to be restarted. Therefore my question is: Can the website restart the service? Or can it view …

Member Avatar for mail2saion
0
84
Member Avatar for kbullard516

Alright, I'm trying to import data from a text file into an array, the data represents different properties of buildings that are to be drawn on a panel. I have 3 classes, Building3 which represents an individual building, CityPanel3 which represents the panel that the buildings are drawn upon (also …

Member Avatar for hkansal
0
141
Member Avatar for SkyVValker

I am using crystal reports 8, and visual basic 6 I have a crystal report viewer, with its commands set up as a function. This way the different aspects of the program use the same viewer, so no two reports are viewed at the same time. But after i open …

0
115
Member Avatar for shadowson1

Ok...The assignment is to create a mortgage calculator with a GUI that asks for the principle amount, has a drop down box that allows the user to select an interest rate and term (ie 7-yr at 5.35%) and displays the informat, payment, and an amortized payment schedule...I beat my head …

Member Avatar for peter_budo
0
152
Member Avatar for invinate

Hello, I start a thread that runs exec and sets the global variable to True, meaning that the thread finished. The main thread that creates this new thread runs in a loop while the global var is False. The problem is that the exec job is also running in a …

Member Avatar for invinate
0
87
Member Avatar for 123qwerty123

I'm trying to store a list of names in alphabetical order, while implementing this linked list, but I've bumped into some errors. This is what I have: Node.h class node {public: node(node* , node* , node* , node* , node* , node* , node* , node* , node* , node*); …

Member Avatar for tux4life
0
965
Member Avatar for jimjimjimz

Hi, I have built a text based adventure game. The last thing I have to do (this is for an assignment), is ask the user if they want to play again. So, I thought the code below would probably be the best way to do it, seeing as I don't …

Member Avatar for jimjimjimz
0
136
Member Avatar for kelechi96

Ok I need to know how to set my class to read only the values after the = sign. Here's my class so far. [CODE] #include <iostream> #include <string> #include <fstream> using namespace std; class Config { int pos; string search; public: char * confname; void configsearch () { fstream …

Member Avatar for kelechi96
0
170
Member Avatar for chris5126

hi this is prob a very simple question. I have a website that that is acting as a monitoring program. On the homepage i need to display Currently monitoring $$ servers Where $$ is a select count statement from a SQL server db. My question is how do I do …

Member Avatar for mail2saion
0
82
Member Avatar for Rahul8389
Member Avatar for Teme64
0
109
Member Avatar for amitonvoip

Hi Guys, Are there any APIs or VC++ libraries which enables to read .xls files Regards amit

Member Avatar for marco93
0
175
Member Avatar for kssi89

Hello everyone! I've been able to successfully implement this bit of php that alters the color of tables for each row, but I am having a difficult time implementing it on our current web app. I am thinking I have misplaced something because the output shows one grey row where …

Member Avatar for komang80
0
154
Member Avatar for blair.mayston

Hi, Playing with a script I did a while ago that sends emails alerts when rss feeds are updated to make it more readable, and have struck a problem. At present the email it sends is formatted as follows: "http://www.stuff.co.nz/national/2344448/Group-charges-in-to-reduce-bag-use" Group charges in to reduce bag use (Pressure from environmentalists …

Member Avatar for blair.mayston
0
16K
Member Avatar for kiwicas

Hi, I'm not sure if this is the right forum but.... I'm doing a project for college which involves Learning Content Managemnt System. I've developed a few features for this including chat, forums, etc. I want to develop an SMS system to use in conjunction with the chat application ie. …

Member Avatar for simmer
0
131
Member Avatar for nanna

hi, I have 3 inputs for quantities to be entered by user, then when user enters a quantity , I should get 2 results ; one in the first add-on total input textfield which is the quantity entered by user multiply by the fixed price for the first add-on (eg.3.75). …

Member Avatar for essential
0
126
Member Avatar for cjswanson1355

Right now i am trying to implement a vector class. However, i can't seem to get this to compile correctly. I can declare one in my main so I know the library exists, so what is going on here? [code] #ifndef _TABLE_HASH__ #define _TABLE_HASH__ #include <vector> #include <iostream> template <typename …

Member Avatar for siddhant3s
0
555
Member Avatar for BunnysMom

My teacher and i have been having a debate of sorts and this one has me stumped ( since he's actually giving me help now i'm not complaining that my brain is being picked with only one week left in the semester lol) i've never really gotten this coding thing …

Member Avatar for siddhant3s
0
101
Member Avatar for andy999

Hi all, I am trying to get out put in the folder . The folder is created but the text file is not visible.What is wrong with this code. Here goes the code: private void savetxt() { try { //m_stockInfolist is nothing but the listview control name string[] st = …

Member Avatar for NguyenThai
0
144
Member Avatar for kn2790

Hi, Doing a project in vb.net whereby i have different levels of users accessing the system, i have established a connection with the database where all the info will be stored but got stuck when trying to retrieve the data.. i am using and oledb connection At the log-in form …

Member Avatar for Teme64
0
277
Member Avatar for Stefano Mtangoo

Hello all, I'm trying to link two files but I get error "multiple definition of `funny_words()' " I don't know what to do, as I'm new to C++. I'm reading PROGRAMMING IN C++ by P.B. Mahapatra and the topic is PREPROCESSOR. I have to learn how to Link headers, and …

Member Avatar for Stefano Mtangoo
0
154
Member Avatar for WarB1rd

Hey there. I am doing some c program that simulate a call center using threads. In the print function it gives me this error: aggregate value used where an ineteger was expecter. I already tried to make a cast to int but it still give me this error. The variable …

Member Avatar for WarB1rd
0
4K
Member Avatar for zoner7

Alright. This is a pretty simple program. The program simply reads a simulated DRM (basically an encrypted plain text file) file that was encrypted using RC4. It then reads a plain text file that contains the exact same plain text that the DRM file would decrypt too. (This is assuming, …

Member Avatar for jephthah
0
172
Member Avatar for onemanclapping

hi, I have to do a program that generates 'n' different combinations of 7 different numbers between 1 and 49, so I did this: [CODE]import java.util.*; public class Totoloto { public static void main(String[] args) { System.out.print("Quantas apostas?"); Scanner s = new Scanner(System.in); int n=s.nextInt(); int[][] apostas = geraApostas(n); for(int …

Member Avatar for onemanclapping
0
157
Member Avatar for amegahed3

Hi All, I'm a C++ beginner, and I face the following problem: There's a .txt file that has some number written successively in the 15th line of the file. Each number (that could be a one or 2 digits number) is separated by a space from the preceding and succeeding …

Member Avatar for amegahed3
0
136
Member Avatar for lyvenice

[url]http://i198.photobucket.com/albums/aa158/runningstyle/02/ly.jpg?t=1240109941[/url] how do i go about writing a code to display the answer in a label?

Member Avatar for nmaillet
0
112
Member Avatar for jbobfunky

Hello Everyone! I am having the most difficult time figuring out a nested loop i would like to perform. The Senario: I have a simple flash image gallery that accepts an XML scheme: The page: [url]http://www.jbobfunky.com/multipage_site/gallery.php[/url] An example of the XML scheme i am trying to render out with PHP …

Member Avatar for jbobfunky
0
125
Member Avatar for nrsbr

Hi I have a problem with my javascript the functions are not working, and I have a little knowledge about JScript. Firstly, the user will select from the list box a designer name, then a flower, and then a cake. The total will come up when the user clicks on …

Member Avatar for essential
0
336
Member Avatar for NinjaLink

I am doing a small program using a function to print out the real root or imaginary root. The problem is, it only prints out what the numbers that the user input. However, it does not print out the rest. For Example: It prints out this: a = 4 b …

Member Avatar for Fungus1487
0
128
Member Avatar for handytxg

Hi guys, I have list of class contain list of another class. [code] MyMessages class { ID list <myPackets> Packets; } myPackets class { Seq Text } [/code] I need advice which one is the right way to set myMessages class?? [code] void set_myMessages(const int &ID, list <myPackets> Packets) [/code] …

Member Avatar for handytxg
0
181
Member Avatar for trombadorez

He wants to input in the program an undefinite number of (numbers like 1, 2 etc), all positive. With that done he wants the program to randomize these numbers and show them one at a time in a random distribution. i thought it was easier when he asked but i …

Member Avatar for BestJewSinceJC
0
82
Member Avatar for maybetuesday

Hi I'm having some trouble with my code. In my code, I've designed a frame with a checked box inside using wx.Frame and wx.CheckBox. I'm trying to allow users to decide whether they want to grayscale a list of images. If the user checks the box, wx.ProgressDialog is launched. All …

Member Avatar for lllllIllIlllI
0
199
Member Avatar for starter

Hi Im writing this sorting program. A user can enter a First Name and Last name (10 for now). It stores them in a string. Then a user can enter 10 numbers. The program sorts the numbers and then displays the names assciated with the numbers in order. [code] #include …

Member Avatar for tux4life
0
97
Member Avatar for thornside

Hi, I need to read a file character by character and send it to cout at the same time. I have used get(char) but cannot lose the newline character. I'm quite new to C++ and havn't yet grasped the concept behind c-strings/strings. Code so far.. while(in.get(n)) { if (n=='\n') { …

Member Avatar for tux4life
0
114
Member Avatar for Clockowl

My goal is to create a program that plays Mahjong. I figured the algo would be a bit like this: [code] While there are blocks left { Fetch new board Recognize blocks //find 2 of the same images within the image. Find free blocks //not *really* necessary: computer versions don't …

Member Avatar for tux4life
0
185
Member Avatar for 123qwerty123

I'm trying to store a list of names in alphabetical order, while implementing this linked list, but I've bumped into some errors. I have my problems (like 'node' no appropriate default constructor, and 'first' undeclared identifier). This is what I have: [code] Node.h class node {public: node(node* , node* , …

Member Avatar for NicAx64
0
194
Member Avatar for jlanglopez

I'm writing a program that simulates road traffic, I have a vector of integers inside a structure, which is itself the elements of a vector. Everything works fine except the iterator i use to delete elements of the inbedded integer vector seems to be going out bound and then when …

Member Avatar for jlanglopez
0
88
Member Avatar for FREEZX

I need to write a program that will count how many numbers within an interval have an even sum of digits. you are given two numbers, a and b. i wrote a little program that is a little slow.. it checks for the sum of the digits for every number …

Member Avatar for tux4life
0
1K
Member Avatar for lyvenice

how do i go about doing this in visual studio 2005. I am able to display in the label with only one text box information, but i want the label to display multiple text box information in same label This is what i use to display one textbox information in …

Member Avatar for brainbox
0
2K
Member Avatar for MJV

Is there a way to have a multiple field combo box using Microsoft Visual Studio with C#

Member Avatar for Ramy Mahrous
0
215
Member Avatar for usman2k4u

Write a Program to generate a random connected undirected graph on a n vertices by generating random pairs of integers between 1 and n. Compute how many edges are needed to produce a connected graph(as a function of n). Implement the union-find algorithm, with the Weighted Balancing and the splitting …

Member Avatar for usman2k4u
0
286
Member Avatar for daviddoria

Does anyone have a good 2 line summary of WHEN to use perl/python/bash/etc? To do easy-ish things, they can clearly all be used, but there is likely an ideology behind each that indicates WHEN/WHY to use them. For example, I use VB if I want easy GUI, c++ if I …

Member Avatar for leegeorg07
0
136
Member Avatar for rEhSi_123

Hello Guys! Need some help. I basically want to align my menu to center. I have tried the following: 1 . SetConsoleCursorPosition(); 2. gotoxy(); ....etc But none what so ever works..... Here is my code menu: [code=c++] void printMenu() { void Bottomline(char *text); void Headline(char *text); void EmptyLine(); int ans; …

Member Avatar for rEhSi_123
0
118
Member Avatar for max.yevs

so i was trying to make a very simple counter (although not sure if that's what you call it) [code]import time a = 0 def main(): time.sleep(5) b = a + 1 print (b) del(a) a = b del(b) main() main()[/code] i know this is very unefficient and there is …

Member Avatar for max.yevs
0
137
Member Avatar for ammwebmaster2

I have a form set up in asp using Dreamweaver with a text box for Zip, City, and State. I want a person to fill in zip and then when they move to the next field to have it fill in city and state. I also have a database called …

Member Avatar for vicky_rawat
0
191
Member Avatar for khozamtho

how to compile and run a python file,and how to change a directory in Python25.what should i import first in order to run a python code.like import math and ......

Member Avatar for woooee
0
206

The End.