64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dohpaz42

In a nutshell I am trying to write a program that will connect to a database, query several tables for various sets of data that will then be transformed into XML that is stored into a file on the local hard disk. My first thought process to solve this problem …

Member Avatar for dohpaz42
0
207
Member Avatar for ttboy04

Hello, When random generates an output, it cannot show duplicate strings. So for example the output I am getting (randomly) is, "Freddy, Freddy, Jane" when it should be "Freddy, Jane". I have to hardore so I cannot use Sets or ArrayList, Contains or for anything like that. Also no Stringbuilder. …

Member Avatar for aspire1
0
138
Member Avatar for HUPextreme

Hi Guys, feel quite stupid with this one, been staring at it for ages. What to combine three tables with the left join sql. keep getting the syntax error in Join operation. [CODE]SELECT SubmittedTeam FROM (NETT LEFT JOIN NETT ON NETT.SubmittedTeam = Team.Team) LEFT JOIN tempDate ON NETT.Date = tempDate.date …

Member Avatar for kdion1024
0
158
Member Avatar for Duki

Hey guys, I have a splash screen I'm loading here: [code=c#] private void main_Form_Load(object sender, EventArgs e) { //Load Splash Screen this.Hide(); Form_Splash form_Splash = new Form_Splash(); form_Splash.Owner = this; form_Splash.Show(); System.Threading.Thread.Sleep(3000); form_Splash.progressBar_splash.Value = 10; form_Splash.label_Process.Text = "Checking Authentication..."; System.Threading.Thread.Sleep(2000); // Create the context for the principal object. PrincipalContext ctx …

Member Avatar for kdion1024
0
151
Member Avatar for flynismo

Hi everyone, I am having a lot of trouble with this... I am using PHP/MySQL. What I have is a dating website. One of the tables in the database is called "users" which has many fields in it, storing the usual info (id, name, email, etc). What I want to …

Member Avatar for flynismo
0
118
Member Avatar for khipasi

Hi, I am trying to populate a listview with the data that is entered on the Edit box, but I am getting errors: Form1.Listview.Insert(0); Form1.Listview.Items.Item[0].Caption := Name{Name in the Diaolog Box) Please help.

Member Avatar for khipasi
0
98
Member Avatar for Duki

Hey Guys, I'm connecting to an SQL server and updating some fields. This works: [code=c#]cmd = new SqlCommand("UPDATE Laptops SET Checkout_Date = '" + form_CheckOut.checkout + "' WHERE name='pen-laptop1'", conn); cmd.ExecuteNonQuery(); [/code] But this one doesn't: [code=c#] cmd = new SqlCommand("UPDATE Laptops SET " + " isCheckedOut = 0" + …

Member Avatar for Duki
0
76
Member Avatar for cc11rocks

like for a regular menu it would be: [CODE]def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 items = ["bookcase", "sleeping dog", "couch", "closet", "rug", "door"][/CODE] [COLOR="Red"]How to create a menu to where when you entered 1 for bookcase …

Member Avatar for vegaseat
0
2K
Member Avatar for iqra123

hiii... i running a program of C heres one function in which i am getting an error. [CODE]void snmp() { int count; char switch_val; printf(" start sending requests\n"); printf(" select '1' to send get request\n"); printf(" select '2' to send get next request"); scanf( "%d", switch_val); switch(switch_val) { case '1': …

Member Avatar for iqra123
0
72
Member Avatar for ayesha789

Hi, this is my option value. June is my Default selected Value, but there is a small issue. When Users select any month like January-2010, when he/she click on submit button. Page will show again June in Option. But I want which the user selects. [CODE=php]<td> <label>Billing Month <span class="small">Like …

Member Avatar for rajarajan2017
0
135
Member Avatar for xaop

[QUOTE]Armstrong numbers are the sum of their own digits to the power of the number of digits For example, 153 = 1³ + 5³ + 3³[/QUOTE] Here is my attempt [CODE]#include <stdio.h> #include <conio.h> void main() { clrscr(); int i,r,h,t,o,s,n; printf("Please enter any integer.(Not more than four-digits) "); scanf("%d" , …

Member Avatar for Banfa
0
145
Member Avatar for ajwei810192

Hi, I wonder if anyone on this list has tried to mix numerical variable, such as 1, 2,3 within an xpath expression. [CODE]songList = document.SelectNodes("/music_songs/song[category='" & drop1.SelectedItem.Text & "'][item_number_first<=position()<=item_number_last]") [/CODE] For some reason, item_number_first and item_number_last appear to have no value in the above code snippet, when they do have …

Member Avatar for ajwei810192
0
116
Member Avatar for SciFiCoder

Hello. This is my first post. Hopefully the first of many. I am currently starting my journey in collegiate Computer Science and as such I know some basics about programming - logic and a fledgling understanding of some languages. Right now I am trying to create a program that uses …

Member Avatar for nick.crane
0
131
Member Avatar for War_Archer

in shell scripting let say a variable [CODE]first="abcd:efgh"[/CODE] how do I find the index of : if its even possible thanks

Member Avatar for akand
0
142
Member Avatar for xofth

unable to put new line in this code i try "\n" , <br/> but not working i want that when this docoment write in the file data.txt there should be new line between First name, last name and email [CODE]<?php $file = fopen("data.txt", "a+"); fwrite($file,"First name:$_POST[fname] Last name:$_POST[lname] Email:$_POST[email] Comment:$_POST[comment]"); …

Member Avatar for xofth
0
97
Member Avatar for danny4444

Hi, im a new user, and fairly new to ajax. I'm trying to create a blog that uses RSS. The problem is that google chrome displays the results from the rss.php script, yet Internet Explorer does not. Any help would be greatly appreciated. Here are the functions i am using …

Member Avatar for danny4444
0
153
Member Avatar for meo_spt

I want to code a page index.html, when loading this page, we will show a child form, its name is child.html, and disable body of index.html, when i closed child form, the index.html must be enable. This resembles Daniweb page, when i click member login.... Everybody can tell me a …

Member Avatar for EvolutionFallen
0
83
Member Avatar for zia zia

Hi Guys! I want to know how to limit the no of records to be shown in dropdown list from mysql.Below is my code. I just want to list 4 records from colum name 'department_name'. The colum has 11 records in total. [CODE]<select class="ac" name="area" > <?php $qry = mysql_query("SELECT …

Member Avatar for zia zia
0
109
Member Avatar for ajwei810192

Hi, I have an application as in the following, [CODE] <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> <script runat="server"> Sub submit(ByVal sender As Object, ByVal e As EventArgs) songNodesOut.Text = String.Empty If Page.IsPostBack Then mess.Text = "<p style='margin-left:-2em'>You selected <b>" & drop1.SelectedItem.Text & "</b></p>" End If Dim file As …

Member Avatar for kvprajapati
1
157
Member Avatar for Alex314

Hello, This is probably trivial, but I can't find a solution to the following problem. In C++Builder 2007 I was able to write different strings both to the Application's Title and to the Main Form's Caption. In the Title I displayed the name of the Application; in the Caption (showing …

Member Avatar for Alex314
0
153
Member Avatar for aframe

I am trying (first python attempt) to pull information from a web page and store is for further use. Here is the code that opens the page and gets the information. [CODE] # -*- coding: utf-8 -*- #python from urllib import urlopen myfile = urlopen('http://192.168.0.1/stlui/user/allowance_request.html%20target=%22allowance%22').read() print myfile [/CODE] The following …

Member Avatar for Tech B
0
627
Member Avatar for kurky17

Hi, I'm actually drafting a MySQL query to be fed into Jasper Reports, and since I can no longer manipulate the resulting data in PHP as it will automatically be translated into a chart by jasper, I need my mysql statement to be able to generate what I need on …

Member Avatar for kurky17
0
199
Member Avatar for G_S

Hi, I'm trying to make a frontend for the compile module in python. Everything works just right, except when the file has mistakes in the code that lead to a syntax error. It does raise the invalid syntax error in the terminal, but instead of executing the block inside the …

Member Avatar for G_S
0
2K
Member Avatar for ohgee

I am currently writing code to populate a select tag with all the hours of the day. I recently rewrote a function that will populate a temporary select tag based off a time passed in as an argument and then return the temporary select at the end. When I attempt …

Member Avatar for sergb
0
277
Member Avatar for romyboy2k9

Hello, could some please help me with a current project that I'm working on for school? I have the following code, but the output shows unknown address. The following is the description of my assignment, and the code I have so far. Thank you. Write a program that creates a …

Member Avatar for thelamb
0
127
Member Avatar for prashanth s j

Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file …

Member Avatar for prashanth s j
0
145
Member Avatar for Z_KiNGPiN

I think maybe this is the right thread for it since i found out Google map control can be created using AJAX. so the question is simple, How to create Google Maps Control ? preferably in an ASP.Net environment. Found a source code here (GNU licensed) but it's too complex …

Member Avatar for Z_KiNGPiN
0
238
Member Avatar for seven11

I'm studying for an exam and need to see if my answers for the following question is correct. Give the bigO estimate for each code fragment in terms on n. method L has method signature void L(int n) & has execution time complexity of O(n). method C has method signature …

Member Avatar for AuburnMathTutor
0
110
Member Avatar for panda_pow

Hey everyone :) So I'm doing my homework when I get this massive brainfart. It's all done, and everything works, except I need a way to make [B]j[/B] [in the function AddStudents()] get bigger without resetting to 0 everytime the function is called (so it moves to the next cell …

Member Avatar for panda_pow
0
150
Member Avatar for diegostix

I have an Excel macro in which a user can input their name via an input box. I then want to take the name they enter and use it as part of the file path to which the workbook is saved. For example. If user enters their name as John, …

Member Avatar for diegostix
0
147
Member Avatar for D4n1sD

Hello to everybody. Lately I have been working into a forum and I have been offering free e-mail accounts with my domain to all the people that register to my forum. However few of them will bother to use outlook for that, so I thought to make a login/registration page …

Member Avatar for Rhyan
0
93
Member Avatar for Medalgod

Ok, I'm trying to pass some variables from inside Form1, to a new form: LoginDetails. Essentially, what this code does is check if a file exists. If it does, it loads the values from within the file. If the file loads correctly, (it should contail login details to a server) …

Member Avatar for Medalgod
0
361
Member Avatar for VBNick

Hi, Does anybody know how to enable/disable a secondary monitor using ChangeDisplaySettingsEx or any other function?

Member Avatar for VBNick
0
648
Member Avatar for vulcano224

Hi I writing a Python program to track and calculate the amount of money each of 8 customers spends on 12 grocery items. The code below works fine but The program also must congratulate the customer who spends the most money and offer that customer a $50 shopping spree.How can …

Member Avatar for griswolf
0
107
Member Avatar for bbman

Hey, I'm trying to set up a hook with the Managed Windows API ([url]http://mwinapi.sourceforge.net/);[/url] however, whenever I do, everything crashes, and I get an error message (0x0000000) for every program, which states that the memory could not be read or written to. It forces me to restart my computer (which …

Member Avatar for bbman
0
405
Member Avatar for ohgee

I am currently trying to make an html link that will add elements (specifically, drop down menus) to the current page when you click it. Since I am adding all the elements to the page using JavaScript, I'm not sure how to set up the link to call a function …

Member Avatar for ohgee
0
1K
Member Avatar for niall_heavey

Hi, I am trying to get to use the grep function in perl, I have been searching web pages but can't get a simple example. I am reading in a .csv file with 7 columns and loads of rows, this is done with: [code] $dat_file = 'sample.csv'; [/code] In the …

Member Avatar for niall_heavey
0
173
Member Avatar for baudday

I have a picture of my database design attached. Basically what I'm wondering is if there is a way that I can use the foreign keys I have set up. For instance, shirtColorsLink contains two columns, shirtId, and colorId. Both are foreign keys from the shirts table and the colors …

Member Avatar for baudday
0
98
Member Avatar for vinithktp

Hi All, I have maintained an EJB application, and its working fine with my local machine. But same EAR file not reflecting properly from the server machine. Still i can see my old version of the apllication from server. I deleted the EAR file and redeployed it, but no changes, …

0
72
Member Avatar for nsutton

I need help making some key that if the "a" key is pressed it plays a sound. All the tutorials ive seen confuse me so maybe you can help. I've tried a few things but am still confused. Thanks!

Member Avatar for finito
0
119
Member Avatar for Muad Dib

Suppose I wanted to create multiple websites hosted on different servers, but I want some certain duplicate contents (e.g. news box that shows same headlines and news on both sites). The sites will be different, just the news box will have duplicate contents. What would be the best approach for …

Member Avatar for Muad Dib
0
171
Member Avatar for pricey3000

I am trying to implement a toArray() method in my PriorityQueue. The PriorityQueue returns an array of Objects, but I want to do is have an array of the original type of objects which in this case is Job (which is marked by the 'T1'. The following is the toArray() …

Member Avatar for pricey3000
0
498
Member Avatar for Emeraldwebshane

Hey Guys I have just started to learn PHP and have been using a book called "PHP For Absolute Beginners" now i have found a fair few mistakes in the book which i have corrected myself but i have come across an issue which is probably a simple fix by …

Member Avatar for Emeraldwebshane
0
112
Member Avatar for glenc70

ok i made a class and a new pointer object to the class class *a = new class[50] but at the end i forgot to delete them, now i know this will cause a memory leak which is bad but will the memory leak be gone when i re-start the …

Member Avatar for Nick Evan
0
100
Member Avatar for ZeRo 00

Hiieee...der I am writin a somethin where I require to get string from the user anr then tokenise it.Can some1 give me some ideas on how to get started.I need the string to be in a loop as well.

Member Avatar for ALi Nuces
0
96
Member Avatar for Geertc

Hello, This is my first appearance on a forum ever, I am fairly new at programming and I have following question : If I make a INSERT...SELECT statement (to transfer data from one table to another) in a MySQL-editor, the statement gets executed once ; the same statement in my …

Member Avatar for Geertc
0
171
Member Avatar for avinash020

I am getting huge data from database approx a million and trying to store it using csv format in excel like : response.setContentType("application/ms-excel"); response.setHeader("Content-Disposition", "inline;filename=newfile.csv"); but as the data is huge and excel can take only 65K at one time its failing. Please let me know how to download data …

Member Avatar for stephen84s
0
362
Member Avatar for karthi_selva

hi, int i=1; printf("%x",-1<<1); what is an output? how is it works? please any one explain it.

Member Avatar for karthi_selva
0
97
Member Avatar for vs.vaidyanathan

When i run this, i get an error message saying TYpe expected and it points to the line having a.drive(100)... Any help please? Newbie... [code] class Car { public Car(){ int odometer=0; System.out.println("Car constructed!"); } public void drive(int miles) { System.out.println("Driving....."); odometer+=miles; } public long odometer; } class Guzzler extends …

Member Avatar for NormR1
0
261
Member Avatar for andrewtrench

I would like to be able to create a list of all instances of a class. [URL="http://www.daniweb.com/forums/thread131805.html"]Another post[/URL] here described how to do it by appending to a list during the __init__ routine but since I am a real Python newbie (and even more of a newbie to classes) I …

Member Avatar for andrewtrench
0
9K

The End.