199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fernando1

Hi, I have this website where there will be chat rooms. I would like to have a form(php script) of rules of conduct before people gets access to the chat rooms. The options: Yes to continue to the chat rooms, No to send them back to the Home page. Thanks …

Member Avatar for fernando1
0
3K
Member Avatar for MasterGberry

I am getting the following error codes when trying to compile the following 2 files 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(9): error C2533: 'Cd::{ctor}' : constructors not allowed a return type 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(58): error C2264: 'Cd::Cd' : error in function definition or declaration; function not called Provided the code, any …

Member Avatar for MasterGberry
0
330
Member Avatar for learning_php

Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of …

Member Avatar for learning_php
0
192
Member Avatar for crazycat503

Hi, I am developing a website for a local group and want to include photo album. My idea is that users could create albums and if they belong to the same group, they can upload photos to the album. But I want to make it quite efficient and quick loading. …

Member Avatar for dos_killer
0
335
Member Avatar for Noorul Ariff

Friends... I'm doing INVENTORY project... front-end : vb.net back-end : Access I'm having PURCHASE, SALES tables... In sales form, i need to create CONTROLS during RUN-TIME... i.e, when we gone for shopping to a DEPARTMENT store, we buy LOT things... they will give us only one BILL... when they are …

Member Avatar for codeorder
0
569
Member Avatar for Don_k

Dear respected programmers. Please could you help me (again) on how to put the following code into functions for my program. I have read on-line and understand how functions work but when I do it myself it all goes pear shaped(I am such a noob). Please could you help with …

Member Avatar for nezachem
0
149
Member Avatar for CanadianGSX

Here's the code I have [code] $query = "SELECT partID, fname, lname FROM tblPartInfo WHERE lname = '$lname' or fname = '$fname'"; [/code] Works like a charm. Now, I want to be able to use wildcards so that the user can enter, for exemple, HO to search for HOUSE so …

Member Avatar for CanadianGSX
0
185
Member Avatar for crazymidget01

I am writing a program to input an infix expression, convert to postfix, and then evaluate. Converting to postfix isn't the problem, but evaluating the expression is giving me odd answers. Simple expression like 1+1 is giving me 12 as an answer. I cannot figure out what the problem is. …

Member Avatar for Dingbats
0
282
Member Avatar for GuruMS

i have created new database it is there in C:\xampp-win32-1.7.3\xampp\mysql\data that directory but it can't visible in [url]http://localhost/phpmyadmin/[/url] in that phpmyadmin that combo box please can u help me

Member Avatar for mwasif
0
112
Member Avatar for nutrion

All, First, thanks for reading! I'm very new to python, and I'm trying to do something that seemingly feels impossible. I'm using Python 3.x to write a script. This script, so far, only runs Windows "net use" command and gets back drive mapping info. The problem is that I need …

Member Avatar for ckoy
0
296
Member Avatar for Nik.k

Im new to C, this will probably become apparent. I've been working on this program for about two months now and im getting to the final stages of it being completed. I just need to clean a few things up. Anyways, one of the functions my program does is sends …

Member Avatar for Nik.k
0
93
Member Avatar for atinus cool
Member Avatar for masijade
0
106
Member Avatar for rational_

I want to join 2 dots of the same colour that is 2 red dots or 2 blue dots ....but after applying my code...when i run the program it does not join the 2 same colour dots...even though it does not display any error. So basically i am trying to …

Member Avatar for quuba
0
185
Member Avatar for m1n1m3

Hi, It is my very first post, im doing it because i know some C basics and now im stuck with more advanced problems, more catchy questions. Lets say iv allocated a memory block by function called calloc. i have 1 bit field [CODE]struct datatype { unsigned short int a: …

Member Avatar for Narue
0
161
Member Avatar for Noorul Ariff

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Member Avatar for Noorul Ariff
0
385
Member Avatar for MUFC4life

Hi i was just wondering if anybody could help me with this code. #! /usr/bin/env python # -*- coding: UTF-8 -*- [CODE]import turtle def initialize ( color = "blue" , smallest = 1.0 ) : turtle.clear ( ) turtle.up ( ) turtle.goto ( -100.0 , 100.0 ) turtle.setheading ( 0 …

Member Avatar for TrustyTony
0
292
Member Avatar for RPM1974

I have a table with roughly 50,000 records. Each record has 25 or so columns. One of which is a phone number column. Some of these records, while most not not the same in any other way (a few are identical), have the same phone number. Id like to delte …

Member Avatar for CrappyCoder
0
109
Member Avatar for doom2100

hello all my problem is a confusion on the second problem here i managed to solve the first problem and made the program i hope its correct as u see.. First problem Three memory locations A, B, and C contain numbers. Write down the algorithm for finding and printing the …

Member Avatar for doom2100
0
136
Member Avatar for krosty4782

Hi! There is anyway to make the buffer size of a socket dynamic ? Because i need to download some things and my buffer of 1024 bytes cant get all the information. How could i do this ? Thanks

Member Avatar for krosty4782
0
3K
Member Avatar for COKEDUDE

Whats the difference between using CC and CPP as the file extension for C++ programs? I thought C++ use the CPP extension for source files. I was reading this article and saw he used CC. [url]http://community.linuxmint.com/tutorial/view/111[/url]

Member Avatar for myrk
0
239
Member Avatar for james6754

Hi everyone...just going from console apps to windows forms apps....This is extremely basic and is annoying me now... [CODE] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("{0}",hello2(2)); } public int hello2(int hello) { hello = 10 / 5; …

Member Avatar for Farhad.idrees
0
149
Member Avatar for Mona..

Hi this is the HW question, i can't understand the avail_list part can anyone explain?? (1) Write a program to implement indexing with avail_list support for deleted records as follows: a. The program maintains a data file called students.txt of students’ records which contains studentID and studentName. These records of …

Member Avatar for Narue
0
228
Member Avatar for Lolalola

Hi, i have class "User_registration" and in this class i need use many class: "Location", "Links", "Mail", "Module". i create include all class in file: include 'class/location.php'; include 'class/links.php'; include 'class/mail.php'; include 'class/modules.php'; Now create "User_registration" class. [CODE]<?php class User_registration{ public function insert_to_db($name, $country_code, $home_page) { //work with data return …

Member Avatar for mschroeder
0
153
Member Avatar for Electricfan

Hi team, Thanks for the view.. So here is my question... Here's what I am trying to do... I have a form that people fill in to send an email to selected people. They fill in the form and it now goes to a database to hold it until approved …

Member Avatar for blur0224
0
118
Member Avatar for moone009

Hello, I need help transforming a current script into on that can loop through some data for me. As you can see I currently have the ItemName and Address commented out "-- Set @ItemName = '95B046125' Set @Address = '195 WELLESLEY ST E'" and then I have to uncomment it …

Member Avatar for buddylee17
0
164
Member Avatar for pritaeas

I'm in the process of converting a legacy app from D5 to D2009. I'm getting errors on AnsiToNative, NativeToAnsi (both DBTables) and DbiOpenSPParamList (BDE). Apparantly the parameters for these functions have changed. Does anyone here have a ready example on how I should use these in D2009 ? I was …

0
108
Member Avatar for JDevelop

Hello there, I'm new to C programming and am following a course in C. I've got an example code for piping. It's not a very hard code to understand. It goes like this: [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define READ_END 0 #define WRITE_END 1 const char …

Member Avatar for JDevelop
0
168
Member Avatar for tinstar

I am having a problem with the following piece of code: [CODE] For countInteger As Integer = 0 To 3 seatsSoldInteger = ticketDetail(indexInteger).seatsSoldInteger costDecimal = ticketDetail(indexInteger).costDecimal totalTicketSalesDecimal = seatsSoldInteger * costDecimal Next countInteger [/CODE] I can't get it to break out the totalTicketSalesDecimal for each countInteger

Member Avatar for jlego
0
284
Member Avatar for arshi9464

when we write [javac abc.java] a bytecode is generated. AND THE BYTECODE CONTAINS INSTRUCTIONS FOR THE JVM and each instruction is 1 byte in length. NOW my question is where does the interpreter comes into action and what happens after the bytecode is generated. I was told that interpreter produces …

Member Avatar for ishaanarora
0
114
Member Avatar for x2fair

I am only new in vb 2008 .I Want to populate a combo box in vb 2008 with mysql, but when i run the thing that appear is "System.__ComObject"..kindly check the errors...plz.. [code] Dim conn As ADODB.Connection Dim rs As ADODB.Recordset conn = New ADODB.Connection rs = New ADODB.Recordset With …

Member Avatar for jlego
0
208
Member Avatar for Scottyyboyy

hi all, i am a newbie to visual basic .net i have a vb.net database that has 3 textboxs that go to a listbox and also store in a database. i was wondering if i can extract the data from the listbox to excel like a csv file or something …

Member Avatar for Kylua
0
105
Member Avatar for pawan_sharma777

i use the window 7 with Turbo C(16-bit) compiler , now i have an assignment to generate the bicycle code in c++ graphics when i run any graphics program the TC show error and terminate . plzz help me as fast as possible.

Member Avatar for Ancient Dragon
0
119
Member Avatar for dschuett

I am still VERY new to JavaScript, so I will do the best at explaining what I am trying to do here... I have a database table where I store a bunch of invoices. I am now trying to make a front end to run queries. I don't know how …

Member Avatar for dschuett
0
166
Member Avatar for networkZombie

So I'm trying to make my own version of Pokemon simulator and this is what i have so far.. [CODE] /* Pokemon.cpp */ #include <iostream> #include <vector> using namespace std; void battle( int enemyHealth, int Health, int enemyAttack, int Attack, vector <string> &att, vector <string> &enmAtt ); int main() { …

Member Avatar for alexchen
0
3K
Member Avatar for Ralphael
Member Avatar for JamesCherrill
0
144
Member Avatar for BarrieD

I want to do something very basic and have tried many ways without success. I have a simple database table consisting of four fields. All it is doing is showing affiliated clubs. One field is 'webaddress' which is the http address. I want to make "title' into a hyperlink so …

Member Avatar for BarrieD
0
104
Member Avatar for FrodoBaggins

Hi, I have an array, and I want to split the contence into textboxes. I have written some code to do so, but it won't work and I can't figure out what's wrong with it. Could someone please help me with this [CODE] Dim bh As String Dim x As …

Member Avatar for Mariandi
0
115
Member Avatar for لولا

I have program that wants the user to inter an array and revers it and alos serch for some elements in the array but I have an error C2679 binary'<<': no operater found which takes a rigth-hand operand of type 'void' ( or there is no acceptable convesion). and I …

Member Avatar for Narue
0
95
Member Avatar for kiddo39

I'm having trouble getting my python scripts to insert into a mysql database. I'm able to do other commands successfully such as adding or dropping tables, selecting items from tables but inserting into tables isn't working. I can manually insert but the script won't do it. I have an entry …

Member Avatar for richieking
0
127
Member Avatar for alexchen

I need help with rand();. This program produces random number without repeating. In my error list there are no errors. Unhandled exception at 0x00414742 c++.exe: 0xC0000094: Integer division by zero. [CODE]int *numbers,range; void randomize(unsigned numberToSelect){ for(unsigned i = 0; i < numberToSelect; i++){ const int selectedElement = rand()%(range - i); …

Member Avatar for Fbody
0
165
Member Avatar for Maha Sh.

Hi, I'm comparing String with array of Strings and I got this error Object reference not set to an instance of an object. This is my code: [CODE]For Each Str As String In Word If Str.Contains(w1) = False Then MsgBox(w1 & _ Str.IndexOf(w1)) out += 1 End If Next[/CODE] The …

Member Avatar for bklynman01
0
168
Member Avatar for LianaN

Hi! How could I change custom cursor size? I was playing with Point(a,b), however the cursor is always 32x32 and it looks horribly. Below you can see my code snippet. Thanks! [CODE] Toolkit toolkit = Toolkit.getDefaultToolkit(); Image imageCrossCursor = toolkit.getImage(BeadToolbarColor.class.getResource("/icons/cross_cursor.png")); cross_cursor = toolkit.createCustomCursor(imageCrossCursor, new Point(0,0), "Cross cursor"); panel.setCursor(cross_cursor); [/CODE]

Member Avatar for LianaN
0
1K
Member Avatar for hsetaknev

1.What is diffrence Between NULL and '/0' characters? 2.Does the last cell os a string has NULL or '/0'?

Member Avatar for hsetaknev
0
152
Member Avatar for phobos666

Hi, Could someone tell me how to open a file in C based on user input. This is what I have tried: [code=c] printf("enter the filename"); scanf("%s",filename); fp1=fopen("filename","r"); [/code]

Member Avatar for Narue
0
32K
Member Avatar for justaguy101

This is not necessarily a Python or wxPython related question. Let's say i have GUI made with wxPython. How does one implement changing language of the GUI(menu names, help strings etc.) in a correct way. Thanks.

Member Avatar for richieking
0
267
Member Avatar for stereomatching

I am building a simple tree by pointer this tree would only have one child and one sibling if you call addChild more than once on the same node, it would add a sibling if you call addchild more than two times(assume it is three times) on the same node …

Member Avatar for stereomatching
0
173
Member Avatar for jhonnatas

hi guys i need some help,i have installed ruby 1.91+rails 3.0+radrails 0.7.2 bu twhen im using the radrails it cant start the server it keeps like: "starting the server" and it never works! rails path: C:\Ruby192\bin\rails rake path: C:\Ruby192\bin\rake it says it cant load script/server thanks

Member Avatar for 3magic
0
141
Member Avatar for icasta13

I'm having a problem with my program. This program will display the numbers and get the average of them, average of positive and negative numbers, and also display the largest element. I have 3 files. For header, other functions and main function. Prog.h [CODE]#ifndef Prog #define Prog class Prog { …

Member Avatar for jonsca
0
220
Member Avatar for needhelpe
Member Avatar for muralibobby2015

hello... i am not sure..is there any chance to open my webpage in firefox. for example i am browsing mywebsite using IE. when ever i click link of the page then automatically it will open in firefox. this option is not for all pages only for specified page. thanks.

Member Avatar for muralibobby2015
0
119

The End.