199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pakunoda

I tried [CODE]DBCC CHECKIDENT('Customer', RESEED, 0)[/CODE] but there's an error. Incorrect DBCC statement. Check the documentation for the correct DBCC syntax and options.

Member Avatar for Momerath
0
108
Member Avatar for haojam

Dear Sir, I would like to extract only unique terms from all sdrf.txt files but this python code outputs unique terms for every file individually. Like Array Data File , Array Design REF ... are repeated in most of sdrf.txt files so i don't wanna print it as unique terms. …

Member Avatar for woooee
0
249
Member Avatar for brycematheson

I've been trying to get this stupid function to work for days and just cannot get it. My display looks like this: [code] Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 …

Member Avatar for Lerner
0
161
Member Avatar for zhuangdeyouxian

[CODE]/*Task: Two ordered linklist contain number. eg.1->2->3-> and 2->3->5 **Print** union of them eg.1->2->3->5 ,remove duplication, can't change linklist Problem : 1. append() might need to be modified. 2. dnot't know how to use append() to complete the task. */ #include <stdio.h> #include <malloc.h> #include <string.h> #include <stdlib.h> typedef struct …

Member Avatar for Martin B
0
125
Member Avatar for mattyd

I have read through the FAQ sticky regarding this topic (and have also searched/read here further on this topic) but I am still receiving the following error: [B][I]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a4542527/public_html/index.php on line 8[/I][/B] The scripting for this is basic at …

Member Avatar for richieking
0
144
Member Avatar for MartinRinehart

Hi, all. I'm going to start posting cross-browser issues here as I run into them. If you all join in, titling posts "Cross-browser" this might become a good resource. If you supply an invalid sort routine, Opera and Safari fall back to using a default sort. They do not report …

0
88
Member Avatar for realproskater

My problem is that my program doesn't print out the first number in the sequence. Like if i ask it to print out 10 numbers it will only print out 9 numbers and skip the first number that it should start with. example of the output is at the bottom …

Member Avatar for kes166
0
135
Member Avatar for pakunoda

This is my code [CODE] string srch1; string srch2; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending Order") { srch2 = "ASC"; } else { srch2 = …

Member Avatar for pakunoda
0
142
Member Avatar for vbx_wx

[code] string& f() { string str = "name"; return str; [/code] I need to return a reference to a string,but i am confused how to return corectly from f(),any help ?

Member Avatar for Ketsuekiame
0
109
Member Avatar for pakunoda

I thought i already assigned it? [CODE] string srch1 = ""; string srch2 = ""; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else if (cb1.SelectedItem.ToString() == "Accession_Number") { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending …

Member Avatar for pakunoda
0
113
Member Avatar for Roger101

Hi I am trying to parse a file in perl and decode a HEX code. Ex: 0x0001 0x0002 0x0003 . . . 0xFFFF I need to convert these hex to binary and make decision based on it. 0x0001 - 0000 0000 0000 0001 0x0003 - 0000 0000 0000 0011 0x0007 …

Member Avatar for d5e5
0
1K
Member Avatar for ajay_p5

Hello Everyone I am having some trouble in parsing a XML document with a perl script. I have a file like the attached file(I have just taken a part of the original file as it is too big to be posted overhere and is hard to analyze manually). Now, what …

Member Avatar for richieking
0
329
Member Avatar for kesh1000

hi can anyone tell me why doesnt my page redirect if variable $Valid is = 0 thanks also if you could correct me would be appreciated [CODE]<?php $name = $_POST['Name']; $age = $_POST['Age']; $amount = $_POST['Cover']; $plan = $_POST['Plan']; $benefit = $_POST['Benefit']; $Year = DetYear($plan); $Valid = ChkAge($age, $Year); $redirect …

Member Avatar for nonshatter
0
81
Member Avatar for davidjennings

Hi all, I am using WAMP2 on my desktop. each time I run a php page the code is echoed to the screen. The icon in the lower tool bar is white/grey I have had in working I then installed new anti-virus software and that is when I noticed that …

Member Avatar for ivan3510
0
173
Member Avatar for john22

Hi, I am very new to Perl Scripting. I used Shell scripting before, but very little knowledge of Perl Scripting. I am given at task at my work: Here is info: I need to write a program that will listen to a port which will connect from Telnet. Also, the …

Member Avatar for richieking
0
466
Member Avatar for dschuett

Hi, I have a function that I use within my upload script that creates a thumbnail of each image that is uploaded (using php's GD library). The problem is, the thumbnails look absolutely horrible. They are not so much distorted, but just VERY blurry. Here is my function that is …

Member Avatar for dschuett
0
169
Member Avatar for jcfans

May i know how to sort a datatable?My code that show below got any problem? why the datatable cant sort by qFundCode? Firstly,my program is add sum datarow where qFundCode show below are to datatable. qFunCode WER WER WER THS THS THS AG AG AG After this,i add another datarow …

Member Avatar for lolafuertes
0
202
Member Avatar for 0pawix

[CODE]#include <iostream> #include <string> #include <conio.h> using namespace std; int main(){ string ans =""; string ans2 =""; char ch; cout << "Enter 1stplayer:\n"; ch = _getch(); while(ch != 13){//character 13 is enter ans.push_back(ch); cout << '*'; ch = _getch(); } char chs; cout << "\nEnter 2ndplayer:\n"; chs = _getch(); while(chs …

Member Avatar for rpdm
0
129
Member Avatar for Xufyan

In this program i have input name and code in super class and print it, it also print in sub class [iCODE]Manager[/iCODE] I created the object for super class to input name and code, and another object to input Manager's Data, but in the output the Name is showing null …

Member Avatar for JamesCherrill
0
140
Member Avatar for ZigZagMan

Hi guys, new here, and new to python. And I thought I would ask for a bit of guidance on this piece of code I'm working on. The following block of code is supposed to output all positive factors of the entered integer. However, it does not work properly. The …

Member Avatar for TrustyTony
0
75
Member Avatar for gabs

[COLOR=#444444]hi![/COLOR] [COLOR=#444444]I wrote this code that test multiple windows. I actually need this for another program, but I'm trying to figure out how creating windows work. so in this code I created two windows, and in one of them I create another two. but when I run it, it keeps …

Member Avatar for Ancient Dragon
0
161
Member Avatar for AngelicOne

I am using a datagridview for the output of the results and I have made 4 combobox each have its condition, asceding and descending, starts and contains with, search from table.. I am writing this with lots of code, is there any way to make this short? [CODE] string bncw …

Member Avatar for rohand
0
101
Member Avatar for sah

[CODE] // CLASS: BackGroundMusicGP Collapse using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.IO; namespace BackGroundMusicGP { class BkGrndMusic { private string _command; private bool isOpen; [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback); public void Close() { _command = "close MediaFile"; mciSendString(_command, null, …

Member Avatar for Momerath
0
132
Member Avatar for dschuett

Ok, so i have a form that an ADMIN uses to registers a user (adds them to a database and gives them a username and password so they can log on to view their photos) As soon as the form is submitted the admin is then directed to a page …

Member Avatar for dschuett
0
82
Member Avatar for dschuett

Hi everyone, I have been working on an image gallery to allow people to view/upload their photos. I have everything working pretty well except that I want to modify my upload script so that a thumbnail is generated of each picture that is uploaded and stored in a separate directory …

Member Avatar for dschuett
0
188
Member Avatar for dschuett

I upload pictures and allow users to log in and view them for 30 days using the following statement SELECT * FROM pictures WHERE date >= DATE_SUB(NOW(), INTERVAL 30 DAY) and email='$session_email When i upload a picture for a user the name is stored as a field in a table …

Member Avatar for dschuett
0
111
Member Avatar for amar_devloper

hi i have create one usercontrol in that i get one grid view and that usercontrol i have use in my page gridview template............. my problem is how to handle event of user control grid view? plase tell me:( my code <%@ Control Language="C#" AutoEventWireup="true" CodeFile="topic.ascx.cs" Inherits="Admin_topic" %> <div style="padding-left:15px"> …

Member Avatar for rohand
0
1K
Member Avatar for dschuett

The following script works GREAT. It uploads an image as well as adds info to mysql about the picture and its location. The problem is that the function "CreateThumbs" actually loops through the entire uploads directory and generates a thumbnail EVERY TIME you upload a picture. I am VERY new …

Member Avatar for dschuett
0
157
Member Avatar for gchurch

hey i have two radio buttons: 'Accept' and 'Don't Accept' when the form submit button is pressed and the 'Accept' radio is not checked i want the page to reload without sending the info accross... [CODE]<form id="form1" name="form1" method="post" action="PaymentFormProcess.php"> <table width="80%" align="center"> <tr> <td width="43%"><strong>Do you accept these terms …

Member Avatar for gchurch
0
4K
Member Avatar for chineerat

hi! I would some advice or guidance to create a timetable or schedule [URL="http://www.dentistry.usyd.edu.au/upload/timetable_example.jpg"]like this[/URL]. the data i am pulling from my db are: Begin and end time of courses, course names and day of the week. Also I would like a notification of when 2 courses overlaps. for example: …

Member Avatar for chineerat
0
4K
Member Avatar for gchurch

i have two radio buttons: 'Accept' and 'Don't Accept' if the 'Accept' radio is not checked when the form gets submitted i would like the page to reload without sending any info... [CODE] <form id="form1" name="form1" method="post" action="PaymentFormProcess.php"> <table width="80%" align="center"> <tr> <td width="43%"><strong>Do you accept these terms and conditions?</strong></td> …

Member Avatar for gchurch
0
7K
Member Avatar for EEETQ

Hi guys, I'm writing a program to do several things involving getting information from the user about a book (title, author, publisher etc.) There is a Book class and then the client class BookClient. I got the program working for the user entering a single book but then I changed …

Member Avatar for EEETQ
0
140
Member Avatar for kimmi_baby

Hi, I have created a program in Python which creates a database called inb104 and loads the data from text files into the mySQL server. The code works perfectly fine. The data is inserted into the table without any issues. The problem is that I would like to place the …

Member Avatar for Gribouillis
0
600
Member Avatar for Ender330

Maybe someone can help me with this. I have a sight that is members only and right now there is no charge to join...You just put in your Username, password and email and you are granted access. What I want to do is when they click signup...take them to a …

Member Avatar for dennishall
0
195
Member Avatar for lennyemp

Hi all buddies, I am the beginner for multithreading in C/C++. So, I copied some example from MSDN and tried to compile it as my first step. Currently I am using DEVC++ IDE. The error is like that: " [Linker error] undefined reference to `sprintf_s' ". Here is the program …

Member Avatar for Ancient Dragon
0
465
Member Avatar for mashimaro

Hello, I need some help from you guys - thing is: I've got a text file with numbers, it looks like this: X, Y, Z. X and Y are float type, the Y is an integer. The file has many lines. How do I load that file, seperating X and …

Member Avatar for Ketsuekiame
0
209
Member Avatar for oling

Hi, I am a programming newby and trying to write a Java code that does the following: - User inputs a string of choice (this part is ok) - Program reads every third character of the string and replaces with an X Any help would be appreciates. Thanks, oling

Member Avatar for javaAddict
0
90
Member Avatar for dchunt

I want to run the programs r1-r4 and n1-n4 simultaneously instead of waiting for each one to finish executing,I've been stuck on this for a long time, i went through multi threading for c++ in dev-cpp and the Win API code is quite complicated. Can somebody provide the code to …

Member Avatar for Ancient Dragon
0
188
Member Avatar for filch

Can someone enlighten me as to why this does not work in Safari and only apparently works sometimes and on some machines in IE. I have tried using all three (blur, change, keyup), used live and bind. Nohing seems to work. I have to say though, that in IE on …

Member Avatar for Airshow
0
3K
Member Avatar for fire_

Hello guys. How can i make my program start minimized to system tray? I'm using MFC. I managed to make it start hidden, but i can add sys tray icon... Any ideas? Thank you

Member Avatar for Ancient Dragon
0
86
Member Avatar for rue...

Im creating an e-commerce site.Need help with the code for transactions such that if a button is clicked,the quanity of the products is reduced in the products table.Say i had ten items and two are bought,the value in the quantity field should come to 8

Member Avatar for Borzoi
0
96
Member Avatar for suryasasidhar

i created setup for my window application. i want to change the icon of my setup file help me thank u.

Member Avatar for ravishankarkota
0
96
Member Avatar for moustafa taha

Hello every one i need to help me in understanding this small program ...you can approximate by using the following series ∏=4(1-1/3+1/5-1/7+1/9-1/11+1/13-.....-1/(2i-1)+1/(2i+1)) write a program that displays the value for i=10000,20000,....,and 100000 I've developed this code to solve the problem [CODE]public static void main(String[] args) { int count=1; double sum=0; …

Member Avatar for masijade
0
286
Member Avatar for Don Brooklyn

Hi there, I would need some help with my code...its in python, and the thing I have to do is to make points of the matrix of the object be displayed in a way to make the first camera position as a start of the coordinate system! to clarify a …

Member Avatar for TrustyTony
0
112
Member Avatar for silversurfer515

Hey guys , I have been asked by my boss to write some c++ code to read from a web page, this is alien to me as I have an electronics background and know nothing about networking. I managed to find a c++ library called urlmon which has a method …

Member Avatar for silversurfer515
0
149
Member Avatar for sahil1991

hi friends, check this program beneath....... \\program to fin integere part and fractional part of given real number... #include<iostream.h> #include<conio.h> void intfrac(int,float&,float&); void main() { float number,intpart,fracpart; cout<<"enter any real number:"; cin>>number; intfrac(number,intpart,fracpart); cout<<"integer part is:"<<intpart; cout<<"\nfraction part is:"<<fracpart; getch(); } void intfrac(float n,float& intp,float& fracp) { fracp=n%1; intp=n-fracp; } …

Member Avatar for sahil1991
0
142
Member Avatar for muthumari

Hi, Using enter key only,How to go to the next page in submit button(without clicking that button(onclick) , using the tabkey).Anyone can u help me..... Thank you

Member Avatar for sravanthi07
0
501
Member Avatar for getkiran1

Hi all... How to get the full path of a file which is currently running?? suppose from cmd or directly someone starts an application or any kind of file( text file, word file, mp3 etc) my C# application need to get the path of the opened file... For eg: if …

Member Avatar for Ionesta
0
2K
Member Avatar for christos312

Hello, I have a question about set and get, I tried to search the forum for answers but i didnt find what i wanted. Sry if this question exists:$ 1. How do i check that the StudentId to be at least 6 characters using the set? Can i do it …

Member Avatar for christos312
0
208
Member Avatar for iaaan

Hey, I'm uploading an SVG file, parsing the XML and then using PHP to redraw the image using the GD library. The SVG files are made with CorelDraw. Everything is going well, I can get the picture height, width, text and images. Just one thing I'm not sure about. Shapes …

Member Avatar for pritaeas
0
192

The End.