199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sunilsinha

Hi, I am new to MYSQL stored procedure. Getting problem in SP execution through PHP. How can we execute multiple procedures using mysql and php. I made connection using mysql_pconnect("host", "user", "pwd", 1, 131072); and have 3 procedures one for select, insert and update. If i am going to execute …

Member Avatar for sunilsinha
0
117
Member Avatar for john_beginner

hello, i'm new to cpp & I wanna know that in C++ if there is multiple inheritance is done suppose, Class A & Class B public,protected member is inherted in Class C like, [code] class A { protected: int no1; public: void get_a(void) { cout<<"Class A"; } }; class B …

Member Avatar for indianapple89
0
109
Member Avatar for Kishorey

HI, Can Someone help me to do the refresh operation in Java.I need to refresh the panel in java every 5 seconds ..can someone help me provide the code

Member Avatar for Kishorey
0
101
Member Avatar for azjherben

I'm getting an error where it says I'm trying to use a null pointer. Then when I click ignore another error saying I tried to read or write protected memory. Any idea how to fix? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { using namespace System::Runtime::InteropServices; using namespace System; using …

Member Avatar for jencas
0
286
Member Avatar for Kligham

Hi, What happens? You type something in a text field, and based on the input, you should get some suggestions. Now, the problem is that I can get the info out of my database with PHP, but now I need to be able to use the PHP array in javascript. …

Member Avatar for Kligham
0
185
Member Avatar for vicky12345

[CODE]def who_knows(a, b): """ a and b are lists """ c = [] for i in a: if is_mem(b, i): c.append(i) return uniqify(c) def is_mem(a, elem): for i in a: if i == elem: return True return False def uniqify(arr): b = {} for i in arr: b[i] = 1 …

Member Avatar for JasonHippy
0
105
Member Avatar for coolbuddy059

I've been writing code to develop gatepass system for my college. I've to made space for taking the photograph of the visitor taken by the camera at gates and then save the whole page in the database(actually the structure is already defined). Please suggest what to do.The code I've made …

Member Avatar for kvprajapati
0
167
Member Avatar for unclepauly

im making a singleton class in c++ and have a couple of questions. first, heres my .h and .cpp files: [CODE] // Singleton.h class Singleton { public: static Singleton GetSingleton(); void DoSomething(); ~Singleton(); private: Singleton(); static Singleton* _instance; }; [/CODE] [CODE] //Singleton.cpp Singleton* Singleton::_instance = 0;// initialize pointer //********************************************************************************************* Singleton::Singleton() …

Member Avatar for jencas
0
2K
Member Avatar for coolbuddy059

is it possible to implment OLE in java. Can you send the link where I can know about it + (if possible)then ways to implement it.

Member Avatar for JamesCherrill
0
101
Member Avatar for websurfer

Hi all: I have this slight problem, where I have a list of months with amounts that need to be updated, but I always need to enter "0.0" in order for my field to be updated properly; but if I just enter "0" it doesnt take it and remains empty... …

Member Avatar for Atli
0
269
Member Avatar for ashalalaxmi2002

hi how can access romote Mysql database from local mysql database. like oracle dblinks will also work in mysql.

Member Avatar for bhanu1225
0
267
Member Avatar for elanorejoseph

any one please help me, i want to know how to swap two variables say, a and b with out using a third vaiable

Member Avatar for elanorejoseph
0
102
Member Avatar for furqan219

Deal all, I have developed a database for a school and when some one select the student ID it shows all the information related to that particular data, any one can tell how I can purt a print and export excel button on the result page which prints the report …

Member Avatar for furqan219
0
106
Member Avatar for elanorejoseph
Member Avatar for elanorejoseph
0
91
Member Avatar for jyotiu

Hi All, Alright i am developing an application which is using ajax. First of all there is a select box which is getting populated from db for a category ... now user can select one or more values from first select box .... and there are four buttons for different …

Member Avatar for essential
0
170
Member Avatar for rabbitwat2

Hello Everybody, I am working on a project and i want to compose one main string out of several substrings in C. for example: I have 3 variables: Float Vx=1,66 Float Vy=1.55 Float Vz=2.3 My first step is to convert them to character arrays usin snprintf. Then i want to …

Member Avatar for rabbitwat2
0
158
Member Avatar for jugg3r

I am very new to this so I apologize if I get confusing with my post. I have a database that I access through CPanel then through phpMyAdmin. I am running a query to find out when the last login was made by users and I am getting values such …

Member Avatar for diafol
0
2K
Member Avatar for oakleymk

Hi All, Without getting into too much history on the why, I came into a situation where I needed to create a function to get various properties of !DOCTYPE so that other functions could adjust to work properly with certain DOCTYPEs (Strict, Transitional, etc.). I have tested the function in …

Member Avatar for oakleymk
0
384
Member Avatar for grandalf62

This may be be a silly question, but its baffling me. If I set up a receive interrupt, process the data and clear the flag. All works well. The problem is I need to use printf. I realize that this will of course also generate an interrupt, I handle this …

Member Avatar for grandalf62
0
162
Member Avatar for furqan219

Hi, How I can Export PHP Result which shown in table to excel using a Export Button on the Same Page. [B][COLOR="Green"]:) [/COLOR][/B]

Member Avatar for chrishea
0
559
Member Avatar for gauravmishra

hi, i want to make a program that highlights java buttons present on a frame just by bringing mouse over the buttons and this frame may not be part of this program ie it can be from another program but i dont know how to proceed any suggestions.....

Member Avatar for gauravmishra
0
72
Member Avatar for kingarthur

Hi over there, is it possible to execute several SQL Statements with one(!) command? For example something like that: [code] Statement s = con.createStatement(); sql= "CREATE DATABASE MeineDb+ SHOW databases+ USE MeineDb+ CREATE TABLE MeineTestTabelle ( i INT, c CHAR(3), s VARCHAR(8), dt DATE )+ CREATE TABLE MeineAdressen ( Name …

Member Avatar for kingarthur
0
136
Member Avatar for lloydsbackyard

[code=java]import java.io.*; public class bonus{ public static InputStreamReader reader=new InputStreamReader(System.in); public static BufferedReader input=new BufferedReader(reader); public static void main(String[] args) throws Exception{ double salary,bonus; System.out.println("Enter Employee's Monthly Salary: "); salary=Double.parseDouble(input.readLine()); if(salary>=6000){ System.out.println("The bonus is 6000"); } else { bonus=salary*.5; System.out.println("The bonus is "+bonus); } } } } // It only …

Member Avatar for masijade
0
141
Member Avatar for lazlo2000

I am using vb 6.0 I am fairly new to VB, my question is: On my main form I have a command button that has 40 procedures and it loops through them about 1,000 times and then exits. Nothing is passed and all of the variables are private. I have …

Member Avatar for vb5prgrmr
0
91
Member Avatar for max.yevs

this is another pretty simple question, but i've been trying to do it, and cant get it basically what i need is pretty simple, its like say you have a list of 5 numbers. now you need to print out all the lists of possible 3 numbers from those 5 …

Member Avatar for max.yevs
0
91
Member Avatar for Web_Sailor

Hi Ezzaral... As per my last problem which is solved. So as I told you that I want to add GradiantPaint. This is the code that I came up with. This code is compling but giving me some runtime errors:. Please find the error report below- [CODE] import java.awt.BorderLayout; import …

Member Avatar for Web_Sailor
0
290
Member Avatar for timb89

10 marks Write a RECURSIVE function which when passed a string s will return true if s is a palindrome and otherwise false. A palindrome is a string which is the same if reversed eg radar, rotor, noon, racecar. past paper question which im doing at the moment as got …

Member Avatar for Stinomus
0
1K
Member Avatar for localp

[code] try { //1.Load the database Driver class Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //2.Make a connection to the database Connection conn = DriverManager.getConnection( "jdbc:odbc:MyDataSource"); Statement stmt = conn.createStatement(); String x = jTextField1.getText().toString(); [COLOR="Red"] String sqll ="UPDATE Patient_Comp SET taken='Taken'WHERE ID="+x ; ResultSet rs = stmt.[COLOR="Green"]executeQuery[/COLOR](sqll);[/COLOR] [/code] This is what i wrote to update a …

Member Avatar for ~s.o.s~
0
261
Member Avatar for c#loser

i new learner in c# , i have basic understanding in c# , now i try to create a basic program that let user key in input and save in a excel format ,i try found some resurce but dont work , can any oe help me??

Member Avatar for rapture
0
161
Member Avatar for mrcniceguy

In facebook or in some other websites,when adding a person as a friend,just after clicking the link(ADD AS FRIEND),it appears a small window with information of the person you want to add to ur friend list. how can i do like this? which language is used in that...up to now …

Member Avatar for Atli
0
89
Member Avatar for jonnytabpni

Hi folks, I have a Client (A Till) and a server which I am developing in C#. I wish to implement some sort of network queuing system. So basically, when a method wants to send some data to the server, it will try first and if it fails, then add …

Member Avatar for jonnytabpni
0
115
Member Avatar for safeer007

I have to open and then unlink a pdf document. [code=php]$url = "../tempdocs/".$tmpdocname; header("Location: ".$url."");[/code] here i can open this document but as I add [icode]unlink($url);[/icode] the browser shows " File is not found". so unlink runs before the completion of file open... if anybody knows a solution please reply

Member Avatar for Atli
0
85
Member Avatar for Potato.Head

Hi to all, I'm working in a application that needs to replace a certain string from a file. I need to create like a dictionary, I'll explain my self. 1. I need to search the string 'class.type=' 2. The string can be in the file like: class.type=var; or class.type =var; …

Member Avatar for Tekmaven
0
203
Member Avatar for lithodora

[URL="http://www.daniweb.com/forums/thread46880.html"]Old Thread on the same topic[/URL] I have tried all kinds of things to resolve the issue. My code even works on another server, but I can not use that one. There is NO whitespace. [code]<? // login.php - login form ?> <script type="text/javascript"> function Usernamevalid(which){ var test = validateusername(which); …

Member Avatar for lithodora
0
148
Member Avatar for max.yevs

im sorry this is kind of a silly question i know, but does anyone know any succesful ways to change a .py into a .exe? like so that someone without python installed on their computer can run it? i've seen this topic in a couple places but everything i've tried …

Member Avatar for max.yevs
0
175
Member Avatar for Romil797

Is there any way to embed webkit in a .NET form? Can I use webkit.dll or khtml.dll? I heard about something called Charn but it does not seem to exist anymore... Help?

Member Avatar for Romil797
0
66
Member Avatar for Kob0724

Hey guys, I have what I would consider a fairly unique problem. I'm not even sure where to start looking for a solution. I have template class that uses a typedef to define a map. But when I go to make an iterator for that map, I get a compile …

Member Avatar for siddhant3s
0
174
Member Avatar for cmaclennan

Hey guys, Hoping someone can help me out here, I have a query thats pulling essentially an order record from multiple tables, it pulls all of the customer details etc as it should however when the order contains more than 1 part for example instead of just returning 1 set …

0
87
Member Avatar for eliza2044

Hey guys, I've been developing an application which transforms files generated by an aircraft transponder into KML files that will be loaded on Google earth. As these KML files are more or less XML files I'm trying to parse XML files. I have downloaded and the xerces library. According to …

Member Avatar for eliza2044
0
263
Member Avatar for snyp

hi, i am not really that good at c++. i have created an application which dynamically loads dll's as types of 'plugin' the problem i am trying to overcome is linking back to code in the application from the dll. i am currently within the scope of a function of …

Member Avatar for Ancient Dragon
0
283
Member Avatar for JaksLax

Here is my code: [CODE] #include "Poly.h" int main(){ Poly p; int degree = p.degree(); cout << degree << endl; int coefficient = p.coefficient(5); return 0; } [/CODE] [CODE] #include<iostream> using namespace std; class Poly{ public: Poly(); //constructor int degree(); //Returns the degree of the polynomial int coefficient(int); //Returns the …

Member Avatar for Stinomus
0
117
Member Avatar for bassline77

Hi, I have a simple problem that I just can't get right. I have a site that sells photos. The photos appear on PHPSimpleGallery with the file name as the photo's name. I need some sort of script that, if the user select the photo (via a button or something) …

Member Avatar for diafol
0
89
Member Avatar for stewie griffin

hi, im working on java on some client server project... in the project the client and the server can send files, but im failng to do so, the resiver get only part of the file... here is my code sender: [code] public void uploadByteFile(String fileNameToGet, File fileDst) { try { …

Member Avatar for stewie griffin
0
157
Member Avatar for sivak

write the program to count the number of lines in a given string ... s="hello,\n+ I am \n+"fine\n: 2.how we can display only last file

Member Avatar for sknake
0
71
Member Avatar for Merlin33069

so im really getting into the ajax crowd, though i dont strictly use ajax (no xml) i like the functionality of calling server side scripts for dynamic php functions... anyway i have a few images in this form ive made that i would like to be placed correctly let me …

Member Avatar for Merlin33069
0
127
Member Avatar for mrnutty

I just started a few days ago. I am troubled with the input in c#, even though I got it to work. Any comment would be helpful. Its a Number Guessing game and a tic-tac-toe game. [code] using System; namespace GAME { #region NUMBER GUESSING GAME public class Number_Guess { …

Member Avatar for skatamatic
0
399
Member Avatar for JackDurden

Would someone be so kind as to help me with this insert. The function insert takes two numbers, num and num2. num is the number to insert in the tree and num2 is the number of children to the parent node where num is inserted. I am getting errors for …

Member Avatar for VernonDozier
0
107
Member Avatar for nanoh2001

Hi all Sorry- The title was wrong, My problem is when I type a the ID number in the text box for updating the record, it gives me an error "Data type mismatch in criteria expression." Could anyone help me please in solving this problem? This is my update code. …

Member Avatar for Vandamn
0
124
Member Avatar for freelancelote

Hi, I'm having trouble with the following simple test program to extract 10 random numbers from 0 to 5. [CODE=java] import java.util.*; public class TestRandom { public static void main(String[] args) { Random rand = new Random(); for (int i = 0; i < 10; i++) { int j = …

Member Avatar for freelancelote
0
6K
Member Avatar for gretty

Hi I am studying for my C++ exam coming up & I have this practice question thats confusing me? [QUOTE]Given enum months{Jan = 1, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec}; write a C++ function that takes currentMonth of type months as the parameter, and returns …

Member Avatar for yun
0
173

The End.