199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bashir ahmad

[B]I enter 3 identical records in an sql database table. Normally this should not have happened as the DBMS must check for identical records. Now when I try to delete or update these records, an error message is shown. What to do?[/B]

Member Avatar for Bashir ahmad
0
257
Member Avatar for gskoli

Dear all I have given a code snippet please help me out to sort out this issue <code> <script type="text/javascript"> function interval_setting(){ var clear = 0; clear =setInterval("xmlhttpPost11('index.cgi','tracker_shower','Latest_frame','Tracker_loader',clear,'','','')",20000);} </script> </code> Please reply cant i pass variable clear like this ? Cause in xmlhttpPost if i give single quote to that …

Member Avatar for fxm
0
108
Member Avatar for rajabca

The Above Code has Runtime Error. Type ' Product' is not defined. Pls help me.[code]Imports System.Data Partial Class insert Inherits System.Web.UI.Page Private SelectedProduct As Product Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then ddl1.DataBind() End If SelectedProduct = Me.GetSelectedProduct() Label1.Text = SelectedProduct.empno …

Member Avatar for rohand
0
105
Member Avatar for end3r

Hy, I have a select like: [CODE] select case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-20',1,10)) THEN COUNT(*) else 0 END as no_entries_date1 ,case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-21',1,10)) THEN COUNT(*) else 0 END as no_entries_date2 ,case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-22',1,10)) THEN …

Member Avatar for end3r
0
98
Member Avatar for Rashid 218

hello i have a problem in assembly. need a code of following problem Write an assembly language Program that Compare two arrays of 10 elements. Arrays are given below Array1: 10 15 20 25 30 35 40 45 50 55 Array2: 15 10 20 35 40 30 55 50 25 …

Member Avatar for shamaila
0
304
Member Avatar for jasonpclaire

Hi all. I am completely new to PHP and MySQL and this forum, so I hope someone can help. I have just installed xampp (completely out of the box as it were) and am having problems with a simple script. The script is below [code] <?php ini_set('display_errors', 1); $connx = …

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for krap_nek

hi guys, I'm trying to implement a basic program which deals with structures and pointers. I have to insert data for various citizens, which is structure that have other structures as fields. in this case my main objective is to create 2 general functions that will get the information for …

Member Avatar for UncleLeroy
0
169
Member Avatar for rajabca

I have create for CrystalReport format in vb.net website Reports. How to create Crystalreport to PDF Format Report. Pls give example coding.

Member Avatar for rajabca
0
73
Member Avatar for fiaolle

Hi I get the error Invalid column name 'MakerID' from my code below. [CODE] <asp:GridView ID="GridView1" AllowSorting="true" AllowPaging="true" runat="server" DataSourceID="SqlDataSource1" AutoGenerateDeleteButton="true" AutoGenerateEditButton="true" DataKeyNames="CamID"AutoGenerateColumns="False"> <Columns> <asp:BoundField Visible="false" ReadOnly="true" HeaderText="ID" DataField="CamID" SortExpression="CamID" /> <asp:BoundField HeaderText="Kamera" DataField="CamName" SortExpression="CamName" /> <asp:BoundField HeaderText="MakerID" DataField="MakerID" SortExpression="MakerID" /> <asp:TemplateField HeaderText="Tillverkare"> <EditItemTemplate> <asp:SqlDataSource SelectCommand="Select * from Maker" ConnectionString="<%$ …

Member Avatar for dnanetwork
0
549
Member Avatar for dan_t

I've got a function for making input safe. One takes from a textarea on a form. The problem is when someone types a few paragraphs in it, using regular sentence stuff like ( ' , . () ? ) it kicks it out and gives them my error message. How …

Member Avatar for matthewl
0
102
Member Avatar for prototyppe

Having trouble trying to copy the vector 'sel' in main to vector 'ask' in class A. Can someone either explain or show me? Thanks in Advance![code]class A{ private: public: vector<Trader> ask; void AskMatchList(vector<Trader>&); void showAuct(); }; void A::AskMatchList(vector<Trader> &list){ vector<Trader>::iterator it; f1= new Trader; //I understand this is the WRONG …

Member Avatar for prototyppe
0
173
Member Avatar for jalpan

i m using borland c++ 3.0 i want to inseert image (jpg,bmp) files.. did anyone tell me how to do this..? i dont know anything about this..?

Member Avatar for LevyDee
0
91
Member Avatar for senthil12345

hi all, i have a problem when i click the link in jsp page. whenever i am clicking the jsp page link it wants to open a pdf file, the pdf file is located in remote system. its working properly in Internet Explorer. but i am opning this in FireFox …

Member Avatar for saikatparbat
0
301
Member Avatar for jellybeannn

Hello, I get this error: System.IndexOutOfRangeException: 2000 I've got a table this table in excel: Month 2000 2001 2002 2003 1 180.4 194.3 209.0 236.4 2 181.1 195.2 212.2 237.9 3 182.4 196.3 213.1 238.7 4 184.1 197.4 216.5 240.1 5 185.4 198.6 219.4 240.2 6 186.1 199.0 220.7 240.7 …

Member Avatar for jellybeannn
0
385
Member Avatar for ismael ahm@d

Hello Everybody, i m new one in php/mysql, i created my database with the name of air_data, and in table i created 4 fields, in which one is "date", in every row i have different dates, now i trying to find out those "date" records for which i m searching …

Member Avatar for ismael ahm@d
0
96
Member Avatar for antman89

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="cart.aspx.vb" Inherits="cart" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" style="z-index: 1; left: 293px; top: 711px; position: absolute; height: 184px; width: 985px" AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource1"> <Columns> <asp:BoundField DataField="OrderID" HeaderText="OrderID" InsertVisible="False" ReadOnly="True" …

Member Avatar for dnanetwork
0
191
Member Avatar for DonaldAlexander

hi iv got phpmailer and recaptcha together but im stuck. iv integrated recaptcha within my php form and im stuck on this part where it validates recaptcha and then if success i want it to submit the form to phpmailer. please see the following code [CODE] // redirect to success …

Member Avatar for DonaldAlexander
0
123
Member Avatar for khan17

hello all, i need to extract table contents from a html page.. in that table one of the column has the links.. i need to extract that link too as of other column elements.. is it possible? i need to extract it and then to store in a database. actually …

Member Avatar for khan17
0
1K
Member Avatar for macca21

How can I tabulate the data strings I have saved in another file... the data sored is in the form of names and scores. The table should look like: Name Score 1 Score 2 Score 3 ==== ======= ======= ======= John 23 21 34 etc... I've started with this and …

Member Avatar for TrustyTony
0
195
Member Avatar for Mezzck

I'm new to Daniweb and with Python and I'm quite bad with it to be honest D:.. Here is my code... [CODE]from Tkinter import * class App(Frame): def createWidgets(self): self.grid() self.lbspace = Label(self, text="") self.lbspace.grid(row=0,column=0) self.lbfirstName = Label(self, text="First Name:", font=("Calibri", 12)) self.lbfirstName.grid(row=1,column=0) self.firstNameVariable = StringVar() self.firstName = Entry(self, textvariable=self.firstNameVariable, …

Member Avatar for Mezzck
0
442
Member Avatar for wonderland

Hi, I know there is a topic similar to this one, I red it but it didn't cover my problem. I'm using WP as a CMS for my site, so it's not a blog.I haven't made any changes in code, I just changed theme and that's it, I have few …

Member Avatar for wonderland
0
124
Member Avatar for veroniclake

Hi, I am trying to write Japanese to a XML file generated through java. i am trying to write "日本語" to the XML But the generated XML is showing "???" instead of Japanese characters. [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <Project>???</Project> [/CODE] How to overcome this problem. i need your help desperately.

Member Avatar for fpmurphy
0
103
Member Avatar for niths

hi all, i need a link 'delete' so that wen i click on that link button that selected name should get delete. i know somewhat to write delete code but how to make it in a link..? can any one... Thanks in advance.

Member Avatar for pssubash
0
236
Member Avatar for thehivetyrant

Hi there, I'm currently in the process of creating a Multi-User Dungeon (MUD) in python. It'll allow multiple users to explore a text based world. I've got a basic server but i can't seem to get a client to work with it. [B]MUD server.py[/B] [code] import socket #Connect with telnet …

Member Avatar for griswolf
0
722
Member Avatar for pixeldroid

I'm learning Python to use wMaya - a 3D graphics app. While reverse engineering some code, I [URL="http://www.daniweb.com/forums/thread89440.html"]found a thread here[/URL] which explains "list comprehension". The code I'm analyzing uses that, so I attempted to deconstruct it, but I can't reproduce the same results using a for loop. I have …

Member Avatar for TrustyTony
0
246
Member Avatar for ubi_ct83

Hi guys, want to discuss with u guys and begging your opinion or suggestion to solve my problem. i have this input input[0]={0,1,2,3} input[1]={0,1,2} input[2]={0,1,2,3} input[3]={0,1} value=2,3 and when value=3,binary binary[0]={0,1,1,1} binary[1]={1,0,1,1} binary[2]={1,1,0,1} binary[3]={1,1,1,0} and when value=2,binary binary[0]={0,0,1,1} binary[1]={0,1,1,0} binary[2]={1,1,0,0} binary[3]={1,0,0,1} if user choose value=2,result should b like this: (i …

Member Avatar for ubi_ct83
0
80
Member Avatar for billmudry

Greetings, coders from a Canadian near Toronto. I have been working on an online botanical tree of as many woods that I can identify as I can. To be sure, the following link is absolutely not any sales or promotional gimmick. I just want to make it easier for anyone …

Member Avatar for urtrivedi
0
177
Member Avatar for zachattack05

Does anyone use it? Seems kind of scary to me the thought that I would allow a mysterious command to alter data in my tables. Is it better to write your own update strings and execute them or use the command builder? Does it matter? Edit: PS the new site …

Member Avatar for finito
0
108
Member Avatar for niths

hi all, i dont know what the error with this program.I cannot get the value. -----sample.php--- [CODE]<?php ob_start(); @session_start(); require_once ("damn.php"); createsessions(sex); ?> <html> <body> <form action="sample2.php" method="post"> <input type="radio" name="sex" value="male" /> Male <br /> <input type="radio" name="sex" value="female" /> Female <input type="submit" name="Submit" value="Submit"> </form> </body> </html>[/CODE] -----sample2.php---- …

Member Avatar for rajarajan2017
0
80
Member Avatar for luttinj

Hello, I am making a show quiz show applet in Java and I am now basically done it, all I need to finish it off and make my teacher happy is to find out how i would get the applet to show the user what their score is at when …

Member Avatar for BestJewSinceJC
0
160
Member Avatar for muralibobby2015

hello.. i am clicking url which redirects to my webpage. for example user is not login to that site then it redirects to login page. up to there its fine. after user login how can i redirect to requested page?

Member Avatar for Girish24041984
0
250
Member Avatar for adxer

Hey I'm only new to Javascript so bare with with me please, but I have to write code that will add a number say for example 1, to a set amount of numbers lets say 5, so for example the output of the program should be: 1+1=2 1+2=3 1+3=4 1+4=5 …

Member Avatar for rajarajan2017
0
132
Member Avatar for misvampire

this is the question Most teachers assign various graded activities for their students to complete. A graded activity can consist of a numeric score such as 65, 89, 93 and so on. GradedActivity class is to hold the numeric score and letter grade of a graded activity. When a numeric …

Member Avatar for ndeniche
0
205
Member Avatar for bibiki

what's up? I have the following php code: [CODE]<?php //chose the file $file = 'C:\Program Files\EasyPHP-5.3.2i\www\test\dump.txt'; //open the file in writeable mode $data = fopen($file, 'w'); //add the new element to it fwrite($data, $data.'gagi'); //close the file fclose($data); ?>[/CODE] I expect it to keep whatever is in the file and …

Member Avatar for bibiki
0
58
Member Avatar for skyzer

I have ordered points(x,y) for a route and i got a method optimize which removes consecutive points which distance between them is less than delta (delta=3). The first rule tells that if p1 and p2 distances are lower than delta, then remove p2 from my route. Second rule is same …

Member Avatar for BestJewSinceJC
0
109
Member Avatar for nshh

Hi, please answer me the following questions. It will be very useful for me...Thanks in advance. c questions: 1. storage classes (auto, register, extern, static) in c with these informations (scope, lifetime, default value and memory location(where it stored in memory)). 2. why should we use static in function prototype …

Member Avatar for UncleLeroy
0
135
Member Avatar for wonderland

Hi, I'm not sure if this is the right section or not, but I would like to ask you guys about internet shop. I have my own hosting account, I know a thing or two about using CMS, I know some programming html, css, a bit of php. Since there …

Member Avatar for tiresmokindad
0
93
Member Avatar for UzuNarU

Hi ok this is what I'm trying to achieve. I have a page that loads a youtube.com video and below that video is a comments section. The video section is it's own DIV section and so is the comments. The submit new comment sits outside the DIVs. Initially the video …

Member Avatar for UzuNarU
0
285
Member Avatar for ShinyDean

I am currently using the Pil library for a project, however i keep running into the same problem which will not let me do anything at all. [CODE][/CODE] def bw_negative(filename): # Create the handle and then create a list of pixels. image = Image.open(filename) pixels = list(image.getdata()) print pixels[0] print …

Member Avatar for vegaseat
0
2K
Member Avatar for neosonic

Hi, I load many of the picturebox (I named them pic) with the index 0 to 10 (pic(0) to pic(10)) on top of my main (biggest) picturebox. My problem is, pic(1) will always be on top of pic(2). pic(6) will always be at the bottom of pic(5) and so on.... …

Member Avatar for neosonic
0
111
Member Avatar for kuteinheart

hey ppl, I want to open up a list box with the values equal to the selection from the first and the second list boxes I have. Since I wan the list box to be displayed on the same page i am using AJAX. Here is the code for the …

Member Avatar for UzuNarU
0
158
Member Avatar for leesho

a) INT b) my-name c) your_name d) $dollar e) stock Price f) _UnitPrice g) while h) 1$dollar i) switch j) whileYou k) ifYou l) if m) int n) int34 o) ab.3c p) ab_3c q) 4%6 r) fourTimesSix s) 4 * 6 t) apples3

Member Avatar for techsheaven
0
94
Member Avatar for SebFr

Hi, I want to be able to call a Javascript file from a C# Windows Application. This is just a stand alone C# application. What I want to be able to do is to execute this JavaScript file, think of it as a function, and be able to pass parameters …

Member Avatar for kvprajapati
0
3K
Member Avatar for krishnisilva

hi there, Question 1: i have a question in invalid operation exception. it says that " there is already an open datareader associate with this command which must be closed first. " the code is shown below [CODE] public void AddToAction() { String query = @"Select * from TopicAction"; SqlCommand …

Member Avatar for sergb
0
147
Member Avatar for Jack_1

Friends, i have written a code for finding HCF but it does not work. please help me in improving this code.Thanks in advance. [CODE]#include<iostream> using namespace std; int main () { int a,b,c,d,e,f,g,h; cout<<"Please input two nnumbers:"<<endl; cin>>a; cin>>b; d=a%b; c=(a-d)/b; a=b*c+d; if d==o cout<<"The hcf is:"<<b<<endl; if d>>0 { …

Member Avatar for Lerner
0
137
Member Avatar for ndeniche

I'm building an AJAX application for my company, and in the main screen there is a login form. The login form has a submit button which calls an ajax function that checks with a php page the validation for the login credentials, and sends back a confirmation message. This message …

Member Avatar for achinaseller
0
382
Member Avatar for TheCur3

Hello guys. I'm not very good at at programing but i need to do one program which should do this: Write a program with objects which stores student marks of exam. All the information is read. It must be realized: a. I enter all students marks; b. and see whose …

Member Avatar for ccw87
0
274
Member Avatar for wish4129

Hi guys, i would like to ask is there anyway to read a txt file with UTF-8 encoding using streamreader or filestream. the txt file is contain some extended ASCII that makes me cannot read the characters properly. I hav tried Encoding.ASCII.GetString(Encoding.UTF8.GetBytes()) but still it return wrong character when it's …

Member Avatar for biopaul
0
155
Member Avatar for sana zafar

Hi all, I just started programming.Can anyone please help me how to remove the non-printable characters of ascii from my code..I will really appreciate it. [CODE] #include <iostream> using namespace std; int main() { int num; cout<<" ASCII CODES\n -----------"<<endl; num = 32; while(num<=252){ cout<<endl<<char(num)<<" : "<<int(num); num++; } cout<<endl; …

Member Avatar for biopaul
0
300
Member Avatar for DaveTran

I would like to display the current value of a class on screen for debugging purposes. For example, if I am dealing with the this class [CODE] public class Foo { public bool isSexy; public Foo() { isSexy = false; } } [/CODE] and I wish to display the boolean …

Member Avatar for apegram
0
167

The End.