199,125 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ejazmusavi

i have a c# project with a table "Pics". it has two columns R_no(int) Picto(OLE). How i can store images if different formats in this table and retrieve it to show in a picture box. plz help me to solve this my code is as below [code=c#] string q2 = …

Member Avatar for sknake
0
365
Member Avatar for gdp_87

Hi i am new to php and am trying to sort out the update part of this script. What should happen is the record is selected using the drop down box, changes are made to the required fields and changes are saved. What current happens is i edit the record, …

Member Avatar for Atli
0
80
Member Avatar for xonxon

[code] The following code lists the nodes in a binary tree in two different orders: preorder:C,B,A,E,D,F,H postorder:A,B,D,H,F,E,C Draw the binary tree. The answer is : C / \ B E / / \ A D F / H so, my question is how should i think or is there any …

Member Avatar for mrnutty
0
142
Member Avatar for ceileyg

Hey all - yes, this is another thread asking for some homework help, but I've got a solid start, just looking for some fresh ideas. Anyways, the task is to create a java clock class and access/use it from a driver. I saw something similar on here, but not quite …

Member Avatar for masijade
0
5K
Member Avatar for P00dle

I need to write a combination of String and Images to a file. The catch is that I have to write some String, then the Image, then more String again. Does anyone have any ideas how to do this? Should I use BufferedImage?

Member Avatar for P00dle
0
82
Member Avatar for kool005

Hi, I need to create an adjacency list for a weighted graph. The input is given from a text file. I have created an array assigning each index a vertex. Now i have to link that array with a linked list. For example, vertex 'a' showing all the vertices that …

Member Avatar for kool005
0
69
Member Avatar for rrvs331

So I made this coin flipping program. It generates a random number between 1 and 2, and checks to see how many "flips" it would take for it to get 15 flips in a row. However, every time I run it, I get the same number, 13505, every single time! …

Member Avatar for rrvs331
0
233
Member Avatar for nychick

I have to write a palindrome test function, I'm thinking of creating two arrays. One is inserted by the user which then populates the second array in reverse. Is this the right direction to go? Thx

Member Avatar for mrnutty
0
96
Member Avatar for kindrasdesigns

[CODE]<?php /*subject and estimate*/ $emailSubject = 'Estimate scripting!' ; $webMaster = 'kindra@kindrasdesigns.com'; /*Gathering Data Varibles*/ $nameField = $_POST['name']; $addressField = $_POST['address']; $citystzipField = $_POST['citystzip']; $phoneField = $_POST['phone']; $emailField = $_POST['email']; $cleantimeField = $_POST['cleantime']; $cleantypeField = $_POST['cleantype']; $dwelltypeField = $_POST['dwelltype']; $sqfootField = $_POST['sqfoot']; $occupField = $_POST['occup']; $insidepetsField = $_POST['insidepets']; $pettypeField = …

Member Avatar for jbennet
0
112
Member Avatar for Edmondo

Hello everyone, can you help? I am trying to build a site using visual studio with a access database back end, basically two of the tables in the database are linked and I want to update the both of them at the same time. What I have is a "Formview" …

Member Avatar for kameswari
0
103
Member Avatar for rhodge09
Member Avatar for rhodge09
0
305
Member Avatar for OmniX

Hi People I would like to get an sql statement that uses LIMIT and OFFSET and then sorts the results in ASC or DESC order through the user of ORDER BY, something like this: [code] SELECT * FROM table LIMIT 10 OFFSET 0 ORDER BY DESC [/code] Note: that does …

Member Avatar for rajabhaskar525
0
239
Member Avatar for Dom83

Hey, I have been struggling with a problem on a project Im working on. I have 3 ints, day, month, year and I want to put them into a string I use for another function to search through a file. so lets say day = 20 month = 11 year …

Member Avatar for Dom83
0
112
Member Avatar for zairgotschi

Hi guys. Please help me with my problem. I have to upload my my image to MS SQL SERVER and i don't know what to do. I want to save it as binary data in using asp and after that, i will display it too. can you help me with …

Member Avatar for deepas
0
213
Member Avatar for donths

[QUOTE] Please! need help in removing (or set the element value to 0) one element of an array based on the string value that is passed to the remove method. The array contains string names read from a file. I don't know if I should post the entire code on …

Member Avatar for donths
0
105
Member Avatar for phpp

I have a txt file and format is like this First line: qinetiq, sarah, sarah, qinetiq, stacey, qinetiq, sarah, stacey Second line: stacey, qinetiq, sarah, stacey, stacey, qinetiq, sarah, qinetiq I am trying to count the number of times, it has "sarah", "stacey" and "qinetiq" The code finds the first …

Member Avatar for tchaves
0
224
Member Avatar for Jaydenn

Hello, I have made two textboxes and a button, you type into the second textbox and it's content gets displayed on the first texbox when you click the button, and also creates a new line so I can type as much as I want without it clearing. I want to …

Member Avatar for Jaydenn
0
151
Member Avatar for BobRoss

Sorry, the thread title should read "File paths with spaces" Hello everyone. I am finalizing this little shift cipher program that reads a plain text file line by line, encrypts it, and writes it to a cipher text file. I'm just having difficulty when a user enters file paths with …

Member Avatar for jonsca
0
111
Member Avatar for nevets04

As The title says pretty much, auto resize and auto format are making this very hard for me to make GUI, can I turn it off?

Member Avatar for Ezzaral
0
85
Member Avatar for COKEDUDE

I have two different parts to my program. My FundRaising.java is my problem. I'm having problems with my print statements. Why are the correct numbers not showing up? I keep getting 0. System.out.println (booster1); System.out.println (booster2); I ask the question to get the numbers and I keep on getting 0 …

Member Avatar for Ezzaral
0
355
Member Avatar for asweetroxxi

hello I wrote this code and i'm having some trubble with it. When i debugg my code i get a bunch of these errors. [TEX]c:\users\roxxi\documents\visual studio 2010\projects\lab3\main.cpp(33): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion) 1> …

Member Avatar for jonsca
0
210
Member Avatar for Phaelax

I'm using [I]javax.xml.parsers.DocumentBuilderFactory[/I] to load an XML file. The file contains paired elements like so: <A></A> <B></B> <A></A> <B></B> <A></A> <B></B> So if I did the following: [code] Element element = <root node element> NodeList nodeListA = element.getElementsByTagName("A"); NodeList nodeListB = element.getElementsByTagName("B"); [/code] Can I assume the elements are in …

Member Avatar for Phaelax
0
138
Member Avatar for phpuser

Hello friends, I am doing one project in which i need to find currently online users.how can i ? is there any way ? another thing , if i fetch user login history in DB table and check from there if user currently login or not then there will be …

Member Avatar for MDGM
0
117
Member Avatar for dwaynecaine

Ok i wa swondering if i could get help on this: Jack’s Jail is a new private facility set up to cash in on the current shortage of prison places. The jail is to be set up in Manchester using some old buildings that are surplus to requirements (so some …

Member Avatar for dwaynecaine
0
78
Member Avatar for rb6k

Hi, I am new to the forum but a friend of mine showed me a question he asked on here and he got quite a good response so I figured I would take a stab at asking one myself. I am currently working on an assignment where I have a …

Member Avatar for kvprajapati
0
110
Member Avatar for carlakawill

Hi All I am trying to connect to access 07 via a windows app using msvs 05 in c#. I have the code which ive adapted from another working app but its now not working. Initialy the form should open an display the data rows in a table called events …

Member Avatar for carlakawill
0
102
Member Avatar for Tank50

I use SQL Server 2005 and I create function.Below I mention the Function that I created. [CODE] CREATE FUNCTION dbo.udf_GetCountryID(@Name varchar(50)) RETURNS VARCHAR(1000) AS BEGIN Declare @Description varchar(4000) select @Description = coalesce(@Description + ',' , '' ) + countryCode FROM dbo.Test_Table where CommonName='Japan' Return @Description END[/CODE] After creating function I …

Member Avatar for Tank50
0
220
Member Avatar for Tales

How can I initialise a Datetime^ variable with current Date? I have this idea but I'm not sure: [ICODE] Datetime^ curDate = gcnew DateTime::Now; [/ICODE] Anyone?

Member Avatar for Tales
0
163
Member Avatar for Hummdis

I've been going through some PHP code for an open source applications and I've been seeing a lot of use of the "@" symbol in front of functions. For example: [code=php] if (!@copy($_FILE['attachment'], $dest)) { return $error['failed']; } [/code] My question is: what is the "@" symbol in front of …

Member Avatar for Hummdis
0
165
Member Avatar for PDB1982

I have my coding idea laid out, but I think there is an easier way, plus I can't really get it to work, because I don't know how to accommodate for duplicated values. Here is my data: [code] Enter name of file students StudentID LastName FirstName Q1 Q2 Q3 Mid …

Member Avatar for jonsca
0
118
Member Avatar for wh33lz

So here is the question and it is really stumping me because I can print the alphabet once but cant figure out how to repeat it. First create a character array that contains the 26 letters as shown here. //Easy I can copy and paste ha. [CODE]char cAlphabet[] = {'a','b','c','d','e','f', …

Member Avatar for evilctofwoc
0
6K
Member Avatar for lotrsimp12345

here is my code main [CODE] #include <iostream> #include "account.h" using namespace std; int main() { account a; return 0; } [/CODE] account.h [CODE] #include <iostream> #include "Lentext.h" #include "Deltext.h" #include <string> using namespace std; class account { private: char account_Number[11]; char name[1000]; char address[1000]; char city[16]; char state[3]; char …

Member Avatar for lotrsimp12345
0
138
Member Avatar for lrh9

I'm wondering if it's possible to change the border color of a tkinter entry widget border. I don't think it is, because no such option exists in relevant documentation. You can change the width, but that just results in the whitespace being recessed - creating a raised 3d border. If …

Member Avatar for Ene Uran
0
12K
Member Avatar for tonywacu

hello, i'm a great beginner in Python. But now my problem is that i have to model the growth of plant development using L-system.... but where to start this?? please, i need your advices otherwise i m lost.... please. i hope to hear from your very soon....thx

Member Avatar for Gribouillis
0
37
Member Avatar for LTT

Ive been looking around and havent been able to find anything like this yet.. I am new to mySQL. Im looking for a function like the "where" function of a query string.. but insted of it being exact i would like to select "where" datafield "contains" text.. example.. item is …

Member Avatar for Molech
0
814
Member Avatar for daryll1

Sorry if I don't make this too clear, what I'm doing is creating a text based adventure game in PHP, a lot like Colossal Cave. I do not want to recreate my databases for every user so I hoping to write all the user date into a file and read …

Member Avatar for daryll1
0
128
Member Avatar for xcorpionxting

I am building a program requiring making some classes with inheritance. I can't seem to be able to access the members of the class objects. My code looks like this: [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> class Animal{ public: int number; int legs; Animal(){ number = rand()%9; } }; class …

Member Avatar for xcorpionxting
0
177
Member Avatar for ZoomZoom

hey guys, im having problem converting this to a while loop. int lineB; int starB; for(lineB=1; lineB<=10;lineB++) { for(starB=10; starB>=lineB; starB--) System.out.print("*"); System.out.println(); } System.out.println(); Can it be written like this? int lineB=1; int starB=1; while(lineB<=10) { while(starB>=lineB) { StarB--; System.out.print("*"); System.out.println(); } lineB++; }

Member Avatar for Ezzaral
0
1K
Member Avatar for gogo000

how do i chck that a string contains integers or characters or is empty???

Member Avatar for mrnutty
0
95
Member Avatar for samarudge

Hi, I downloaded the open source project Guitar Tuner ([url]http://sourceforge.net/projects/guitartuner/[/url]) Inside it there is an index.html file, a TunerApplet.jar file and a TunerApplet.java file (As well as some images and GPL etc.) When i open index.html the applet displays as it should however if I try to recompile (Even without …

Member Avatar for samarudge
0
127
Member Avatar for uv2009

Hello all, I would be grateful for your advice regarding something I tried to do using unique() but it didn't work. I have a two dimensional numpy array that looks like that (but much larger): >>> pop_A1 array([[10, 2, 10], [10, 9, 10], [10, 9, 10], [10, 9, 10], [10, …

Member Avatar for uv2009
0
149
Member Avatar for valonesal

Ok I have this little bit of code. [CODE]<?php $con = mysql_connect("localhost","dbusername","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $result = mysql_query("SELECT * FROM tb_comments"); while($row = mysql_fetch_array($result)) { echo $row['sku'] . " " . $row['name']; echo "<br />"; } mysql_close($con); ?> [/CODE] What I …

Member Avatar for valonesal
0
98
Member Avatar for mariusmssj

want to be able to count the words in an array or a string :S but i am not sure how to do it could i get some help please what i want to do is be able to tell how many words have been entered. so i will need …

Member Avatar for mrnutty
0
173
Member Avatar for smachee

I am doing a homework problem and am having a hard time understanding exactly how I should be doing this. Any nudge in the right direction would be helpful. :) The problem is as follows: Ship, CruiseShip, and CargoShip Classes Design a Ship class that the following members: • A …

Member Avatar for smachee
0
3K
Member Avatar for railmaster7

I'm having trouble with some syntax errors, and also wanted to get an opinion of what I've written will work as needed. I'm writing an awk report script to organize data from a file and calculate the amount of sales. There are 3 kinds of lines that we will need …

0
64
Member Avatar for Squidge

Hello evryone. I am new to PHP and MySQL. I have created an admin area for where selected people can add, delete, and edit data from a database. I have managed to get the add, and delete to work, but I am stuck with the editing. Can you help? [CODE]<!DOCTYPE …

Member Avatar for diafol
0
147
Member Avatar for goisagi

Hi, there! I'm pretty new to the programing world and I have a question. How can I write this code so it returns to surv1.set_sex = raw_input? after the "not in sex statement"? It's really confusing maybe I should try and write it in someother way? I don't quite understand …

Member Avatar for goisagi
0
78
Member Avatar for NinjaLink

hey, i wrote a program to create a hash table using an array of numbers, but I do not know how to display the actual table on my screen. Does anyone know how to display my results? So far, I am able to print the numbers that I have in …

Member Avatar for jonsca
0
135
Member Avatar for kubo08

Hi, Please can anybody help me how i can create plugin to Postgre SQL/PostGis? Thank you very much

Member Avatar for kubo08
0
111
Member Avatar for DrLod

Hi again, much questions today! So i'm having an Form for adding pictures with som details to a database. Everythings works well but some attributes i wish the user didnt need to enter, such as ,type (jpeg, gif), size, date.

Member Avatar for DrLod
0
70

The End.