199,114 Archived Topics
Remove Filter ![]() | |
Hello. i have a trouble with my php and javascript code. I want to get database from form that use javascript that use onSubmit as form validator. It work when i refer to another page as addDb.php then add to database. I want to stay on current page then php … | |
Hi all, I have taken simple CMS script from internet but there are such things that i dont understand them below is the code [CODE]<?php //////////////////////////////////////////////////////////////////////////////////////// // Class: DbConnector // Purpose: Connect to a database, MySQL version /////////////////////////////////////////////////////////////////////////////////////// require_once 'SystemComponent.php'; class DbConnector extends SystemComponent { var $theQuery; var $link; //*** … | |
In C#.net Application, When i change the resolution, the application won't adjust its windows Size corresponding to Borders of Monitor,.. Even though we change the resolution, the whole application should visible,.. Please help me with ideas,...! | |
Hi , I am trying to create an image-viewing application , wherein the user chooses an image file using a file chooser . I have created a Jpanel ,inside a jframe with a menu bar, which gives the user a variety of options to select from , using combo boxes … | |
I have design a window application form in 1440X900pixel resolution(which I dont aware of this could cause a problem). When I move this application to other PC with different resolution(or shows on a projector that only support low resolution), thing change nasty, all the control is out of shape. Any … | |
This is a newbie question. I am creating a simple one-table Movie tracking program. I have dragged a db table onto the simple form creating a dataGridView. I am using a List box and some Text boxes to enter new data. For the life of me, I cannot get the … | |
I have to create a word counter function which counts the words of a string. When I run the program, it doesn't end. This is what I have created so far: [code] //-------------Start of Program-------------> #include <iostream> #include <cstdlib> using namespace std; //Function Prototype void stringLength(char *); void reverseString(char *); … | |
Hey, I have the code as follows: [CODE] public Form1() { InitializeComponent(); string[] _args = Environment.GetCommandLineArgs(); if (_args.Contains("options")) { this.Show(); } } [/CODE] This will be a tray app (and close quickly after the work is done), so if I add a notifyicon above the InitializeComponent(), could I move that … | |
I am currently trying to create a live search box that as I type it will start displaying results that match. Here is an example [URL="http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print"]http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print[/URL] but it retrieves its data from an XML file, I need mine to retrieve from a column called FirstName within a table of an … | |
I am new to programming and have been reading a few books on Pyhton but can't seem to grasp what I believe is probably a simple process. I need someone to show me briefly a sample script that would allow me to open a CSV file and edit it line … | |
I just started working on a small tool to search for (heavy) text files using Visual C++ with MFC. Because there are a lot of readings, I'm wondering if ifstream of the standard library is better than CFile of MFC? I don't need portability (the program is for Windows Environment), … | |
Hey - I've been given a gutted version of Minesweeper, and been asked to reconstruct it. I'm taking it piece by piece, and I've got some parts working. What I'm trying to get now is the 'Zone Clearing'. Just quickly: Zone clearing is when you click a 'blank' square, all … | |
what is the best design practice for this situation? ----- Create a class or set of classes in C++ to represent the birds Create an instance of each type of bird and add them all into a single vector Have each bird hop and then fly in turn Don't have … | |
EDIT: This was moved from the Java discussion forum. It seems more appropriate to post it here. This is not exactly a homework assignment. I'm just doing it for fun ^^ Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my … | |
Does anyone know if it's possible to have several text fields that place the data into different spots in the same web page. If needed I could just use two pages, it doesn't really matter. I've heard this requires a PHP script, but I'm not sure how to set this … ![]() | |
I am working on some code for getting user input on what songs they want for a dance. Unfortunately, when running the applet with some html, java opens a window saying [CODE]Java has discovered application components that could indicate a security concern[/CODE] three times, and no matter what you click, … | |
Hello all, I started learning C++ a few days ago, using visual C++. I'm learning from an old textbook. I'm having some errors come up due to heap corruption. The author of this book defined a class matrix and vector (I won't repost the whole thing as it's quite long, … | |
Hi, I am new in assembly and i nave some problems. I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in … | |
Good Afternoon Everyone; Let me first start by apologizing to the moderators in advance if this is in the wrong forum but it is php / mysql related and I cannot find a place suitable for this thread. A few weeks back I had a discussion on these forums about … | |
got some questions about .com and .exe files Whats the main difference between the two file types? When two files of the same file name one with .com extension.. the other .exe why does windows give higher priority to the .com file? help me figure it out pls ;) | |
Good evening; I am having a final exam next week and I'm having an issue with this program. the program should user receive from the user 6 marks for each one of four students and then compute the average and finally show the index of the student who has the … | |
Hi there, I'm new to c++ and im trying to do a project, wich is a letter soup game (its like a word search in a square with loads of other letters). So far now I have a letter (A-Z) randomizer, wich will put them in an array[l][w] (choosen by … | |
Hi, I'm pretty new to writing stuff in Assembler . Now I'm trying to run some code that puts the odd numbers from an array to a second one, and the even numbers to a third one. I don't really know how to make the transfer. I tried with MOVSB … | |
i am writing a c# programming to receive data through serial port. Data receiving is going fine. But first to enable data flow i have to type "[B]datafrm f1a4[/B]" and then press "[B]Enter[/B]" key in the hyperterminal. then i have to run the c# program. Can I get this done … | |
hi new to java. how do i pass arguments in netbeans? | |
Hi, i've have just created my first program in visual c++ 2008 express edition and i'd like to know, if I can create an exe file to make this program run independently from visual studio. thanks | |
Hi guys hope ur are all well! I have a program im trying to finish and its not going well. I am quite new to C++ and am not the greatest. I have code that ill post, but the problem is when i run the program with the readfile(); function … | |
Hi,I am new with this forum even if I have been programming in c,c++ for a while. I have never realized any DLL file and I'd like to start now. I think I have basically understood the concepts that stay behind a DLL realization but I still can't make one … | |
Hi, I'm trying to make a rather simple Visual Basic app with which I can update some tables within my MySQL databases. I've been following [URL="http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-3"]this tutorial[/URL] from page 3 on, as the first 2 pages where on how to initialize a local MySQL database. My MySQL database is on … | |
In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do? | |
I have tested following code and it works fine in IE but not Mozilla: var ajax = false; if (window.XMLHttpRequest) { ajax = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) {} … | |
Greetings - I need your help. I have an SSIS package with a [icode]Data Flow Task[/icode] which has the following Data Flow tasks: [icode]Excel Source[/icode] -> [icode]Data Conversion[/icode] -> [icode]SQL Server Destination[/icode]. The data in my Excel worksheet contains strings as well as numbers. (Also has some blank cells.) I'm … | |
hi there can any one help me to answer this problem . problem > Imagine you are given a set of input elements where each element is assotiated with a specific access Probability by which each element is likely to be accessed ; e.g; Elements :{A,B,D,K,L,M,N} pi=<0.1,0.15,0.25,0.05,0.2,0.1,0.15> for all 1<=i<=n … | |
Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) … | |
hi all, the following code is for a SLR parser... after compiling i got some strange errors - could someone pls take a look, or try compiling it... tnx alot [CODE]#include<iostream> #include<conio.h> #include<string.h> #include<process.h> #include<stdio.h> char in[30]; char T[]={"i+*()$E"}; char prod[4][5]={"EE+E","EE*E","E(E)","Ei"}; char M[10][8]={"sbbsbbg","bssbbab","sbbsbbg", //matrix to store shift, "brrbrrb","sbbsbbg","sbbsbbg", //reduce,error and … | |
Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try … | |
Hello Daniweb, i am having problems with the second button in my rather simple nav. i looked over the code a couple times but i can't seem to figure out why the hover is behaving teh way it is...perhaps someone with fresh eyes can help me out?? my nav: [url]http://elneco.biz/mynav/yeah.html[/url] … | |
Hi guys how can I insert multiple xml files in one table. Thanks | |
I Want To Search Date From .mdb Database file, Table Name is Purchase, and The Field is Purchase Date, its Type is DateTime and Formate is ShortDate in MS Access Database File, I Conceted it to Vb.net Form, and Tryed to Search Date, but it Returns Error. the Code to … | |
I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a … | |
[code=cs] foreach (ComboBox a in Form1.ActiveForm.Controls) { MessageBox.Show("hello"); } [/code] Hi, i want to add same items to all ComboBoxes, expect one. The part of my code is here. The problem is foreach loop never fire. I never see the MessageBox which is saying "hello". What is wrong in my … | |
hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces … | |
Hello, I am using a Menu Control & I have added Items in Menu Item Editor (both root & child). But in the browser the child items are not displaying. Running perfectly when my lecturer showed in his pc. When I searched for this problem, I have seen some solutions … | |
Hi, I am developing a WSDL file for a Web Service and I am having a problem with the XSD schema associated with this WSDL. The Schema is below: [CODE] <wsdl:types> <xsd:schema targetNamespace="SNIPPED"> <!-- Classes de apoio --> <xsd:simpleType name="resultadoOperacao" final="restriction"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="OK"/> <xsd:enumeration value="NOK"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType … | |
I have a DetailsView that I use to update some database data. In the footer of the DetailsView is a label I am trying to use as a status message panel. For instance, I display validation errors in this label. After updating a record, which causes a postback, I am … | |
Hi all, the following code prints garbage values. I want to read from an array two bytes and print then as a short int after doing ntohs. What is the bug in the code? Thanks and Regards, Prashanth [code] #include<stdio.h> struct converter { unsigned short int i; }; main() { … | |
Hello Forum, I am new to SQL Server and have inherited a database from another developer. I have a Stored Procedure that I'm trying to use in my vb.net program to fill a form with multiple datagrids. The Stored Proc looks like this: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go … | |
Hello, Answer me I am adding multiple function onload in the body. IE showing the correct result but mozilla showing the problem like it showing the last function result in all function results. <body id="body" onload="showUser1('taj-mahal');showUser('taj-mahal');showUser2('taj-mahal');"> can anybody help on this,what is the problem??? and how to short out ![]() | |
Hello guys. I'm building an application that connects to a SQL Server 2008 database via connection string. The thing is, since the computer loading the app (or the user, in either case) is outside the Active Directory domain, I can't use Windows Authentication to connect to the DB. But when … | |
G'day, I'm just looking to clean up some of my code as i know that at the moment it doesnt follow the best practices. I have the following function which calls my database() class. I know that i need to close my connections and statements im just not too sure … |
The End.