199,114 Archived Topics
Remove Filter ![]() | |
Hi I would like to put a list of ids in an array and loop to select data from a table using "IN" in the where clause. I am not having any success getting this to work. Any suggestions? Note:I am using Mysql database, apache, linux/Windows <? //array with list … | |
For some reason I deleted a sample database that was in the netbeans tutorial. Of course now I need it and I don't where to get it( I tried the google,and will try again) but does anyone know how to obtain the script? Thanks -Steve | |
Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page … | |
Can somebody please help my try to understand how to add an equals method to my Person, Purchase, and Customer class? I am very new to Java and I can't figure out how to call the equals test from main and have it reference to the other classes. Any help … | |
I program board and card games in VB6 Prof on WinXP system. I am also a linguist familiar with several European languages, including Russian all of which I can use in Office 2000. Most languages in Roman(Western) script have accents and I use Character Map to produce what I need … | |
hello, i'm fairly new to oracle, but i pretty much get it. anyway i've created a table using this code : [CODE]create table BanquetReservation( ResNo SMALLINT NOT NULL, Restriction varchar(30) not null, ResType varchar(10) not null, DateOfEvent Date not null, NoOfPeople SMALLINT NOT NULL, EndDate Date, StartDate Date, SSN CHAR(9) … | |
Hi everyone, I am using the for loop function. I feel that my code is correct but something is wrong. I check for brackets and semicolon and they are in the right places and the right amount. Can someone look at my code and let me know why it is … | |
Can some one help me??? I'm doing a basic Java course and need help with this code I'm trying to get this line to work but keep coming back with a "'.class' expected" I have tried different combinations but nothing is working for me. public void paintComponent (Graphics page) { … | |
How can i add objects such as buttons, labels or textboxes at runtime? | |
Hello, I have script to gather total FS usage size. I use to list of the FS's in another notepad file and this script will read from that file. finally it will give me output of total allocated space, used space, available space and percentage of space. This script works … | |
Can someone please tell me what I am doing wrong with this loop. I want to end the loop when either one of the tanks armour reaches zero. Also if I wanted to add more tanks how can I have the loop end? Thanks import random class Tank (object): def … | |
From the given code below everytime i need to print the name as rama+value of the integer variable. if i=10; then the output:rama10 should be printed... i have probelm to add string to the integer variable..please help anyone...thanks in advacne... class abc { private: int a,i; string name; public: void … | |
Hey, I was reading my book about C++ and read the default input piece of equipment was the keyboard, I was just wondering if there was a "simple" (ish) way to change it, example if i pressed a button on the monitor it would "cout << "monitor = pressed";" or … | |
hi to all im new at vb6 and ive made a few basic programs using tutorials etc to get me started. i wanted to make a smiley tool for msn and yahoo for myself. doesnt sound like anything brillant i know but as i said im still learning and i … | |
Please help, I can't get more than 5 decimal places in my answers and I don't know how to tweak the code to allow for this. Any help would be greatly appreciated. DB #include <iostream> using namespace std; int main() { system("title You can Convert Miles to Kilometers or Convert … | |
why cant we use strcat without initialing first parameter? e.g. char *b = "a"; char *a; strcat(a,b); | |
I have a ZedGraphControl on my Form. When the form open there is a lot of code that will draw a graph. A few lines of this code is in the first codeview here. From what I can understand, I beleive this code will execute once when the Form opens: … | |
Hi friends..i have doubt about C++ programming. How to give names for the elemetns in an array of objects... | |
Cool that worked, maybe you could help me with the overall problem also. I am trying to insert a picture into my database. Now that I have the invalid column name solved I have another error. The error is stating that I cannot insert a null into the column and … | |
how can i check if my text file is empty??? i have tried something using eof but it doesnt seem to work or am just using it wrongly [code] if(infile.eof())//check if it is empty /*also tried this*/ if(infile.eof()==0) [/code] | |
Hi all, I have an application wherein when I selected a particular option ( radio button) and when I close the appliction and restart it, the radio button which I have selected earlier should be made selected. Iam trying to acheive this for many days, but I couldn't able to. … | |
Hello, im new coding in php, iv got a good backing in programming but as far as this goes im a tad lost. to start i and decided to go with a simple script that counts the rows in a mySQL database returns a result, randomises between 1 and that … | |
I'm trying to get this Evaluate macro to function properly. I'm not very familiar with programming macros, only for very basic tasks. The macro comes from the book "Excel by Example: A Microsoft® Excel Cookbook for Electronics Engineers" by Aubrey Kagan. The macro is suppose to evaluate, based on the … | |
Hi. Can anyone tell me how to create a mobile database and application using SQL Server Management Studio Express? | |
This is what I have, but I need to make a for loop instead of the initialize steep. PLEASE HELP [code] int main () { int numb[10];//1,2,4,8,16,32,64,128,256,512 int numb2[10]; int counter, counter2; /* numb[0]=1,numb[1]=2,numb[2]=4,numb[3]=8,numb[4]=16,numb[5]=32; numb[6]=64,numb[7]=128,numb[8]=256,numb[9]=512; numb2[0]=0,numb2[1]=1,numb2[2]=5,numb2[3]=3,numb2[4]=10,numb2[5]=5; numb2[6]=15,numb2[7]=7,numb2[8]=20,numb2[9]=9; */ for (int z=0; z<10; z++) cout<<numb[z]<<" "; cout<<endl<<endl; for (int x=0; x<10; … | |
[code=cplusplus] //I got almos this program done, it gets the apropiate result skipping some steps. //How do i pass the "int diff" to the "printText function". diff is the largest elemt or the //more repetitive letter from a text file, where the alphabet was shifted by 12. //Also, The largest … | |
I want to recursively check if two strings are equal, not in size, but character by character. I am unallowed to use loops and the == operator. I tried to use two parallel arrays, but when testing my function I got undesired results. Here's what I came up with: [CODE]int … | |
How do i save and retrieve a file in a database, have used streams in vb6 but doesnt seem to work for me in c#. can someone please help | |
Hi guys, i'm in the process of learning Java and so far i'm really enjoying it. However i've hit a small problem. I have two seperate classes, one class creates the swing user interface and the other handles the connection to an irc server. Here is the User interface class: … | |
Hey I know this is really simple, I'm studying my first course of C++. In my prac for the week it asks: "A TrainCar is a base class representing carriages for a train. It defines no attributes but has a public function called shape which accepts no arguments and returns … | |
Hey, this time I'm back with a threading error! I need to write code that gets the address of a message sender while at the same time letting the user know that the pygame didn't freeze, so I started a thread to keep control of the screen while searching for … | |
hi.,.. i am working on aproject which codes a image into acompressed format and then sends it over a network an decodes it at the client side.. The coding technique i have to use is RADON TRANSFORM. now i f any one can help me with this problem please do … | |
hi everyone In a image processing software i have to convert a matrix of pixel values 2D.into the image .can any one help me out with this..this part has been the most frustrating part of my project ... | |
i`m trying to make a program to calculate the product of this serie: 1/2 *1/3 *5/2 *5/6 *8/10 *16/13 *23/24..... the following program gets compiled without errors but when i execute it pops up a window: prog.exe has encountered a problem..etc... can anyone help me with this problem [code=cplusplus] #include<stdio.h> … | |
I want you to develop a Refresh mechanism. The grids on various tabs does not refresh automatically when some data is changed due to changes on other pages. For example, if I add some data in detail section and attach a document of personal details the grid on the personal … | |
Here is my problem, if you run the program(using piping), it should output the followings: [ICODE]========================= PHANTOM COMPANY INVOICE PRODUCT ID QUANTITY PRICE ($) COST ($) P010001 2 24.99 49.98 DVD-player5 1 58.95 58.95 P010002 20 8.85 177.00 ... TOTAL COST = $xxxxx.xx[/ICODE] my invoice is not the same as … | |
How to close dialog box if it doesnt hav OK and CANCEL Button in windows programming.the dialog box is shown with DoModal which inturn calls onInitDialog().But how to close it ?does EndDialog hepls and how ?where to call EndDialog? | |
I have two selectboxes which are driven from database both select boxes references the same table, the table has three columns id, from, to ;selectboxes work ok what i want is to get the id of the selected record without refreshing the page. | |
Hi, I get some problems when I run the following codes. #include<iostream.h> class Distance { protected: int feet; float inches; public: Distance() { feet = 0; inches = 0; } Distance(int ft, float in) { feet = ft; inches = in; } void get_dist() { cout << "\n Enter feet … | |
hi i created a custom tag for database connections,sql... but doesn't work. can any one help me to solve that or any one know how to create customtag for db means plz help me. if u have coding for that plz send that. codings: 1.tag handler program (db.java) [code=Java]import java.io.IOException; … | |
i am new to c++, currently working on an assignment, now i'm stuck in skipping the comment lines in the txt file. the txt file is something like this: #com1 A1 A2 A3 #com2 B1 B2 B3 ... what i need to do is to enter commands to display the … | |
sorry for annoying, i am quite stupid in it. [code]<html> <head> <title>Welcome to the online Auction...</title></head> <body> <% try { String strUsername = request.getParameter("username"); String strPassword = request.getParameter("password"); Class.forName ("mysql-connector-java-5.0.8-bin"); Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost/user.jsp,admin,admin"); Statement myStatement = myConn.createStatement (); String strSQL = "SELECT UserName,UserPwd from user where UserName="",UserPwd=""; ResultSet myResult … | |
Hello, I have completed a chat application using php/xml/ajax: [url]http://www.banditssoftball.org/chat/[/url] I had a function to submit messages after hitting enter. the only problem was it only worked in IE. I need one that will working in FF ect. I have tried everything i can think of and nothing works. Also, … | |
Hi am in prob. 4 me its now or never to pass. get a program to do. Convert binary to decimal octal to decimal binary to hexadecimal some1 can help me. i need some PRO so if interest post ur mail id and i'll mail u my paper if some1 … | |
excuse me, i want to know about the subform in vb.net what is best control to make subform in vb.net. in vb6 i used flexgrid control to make subform,but in vb.net i really find it hard to make subform in vb.net. thanks | |
Hi i want to back up my database. Can sme 1 know the code of backup ? | |
hi.. to read a document file in Asp.Net and Vb.net as a Code behind , Use following Code [code] Sub Read(ByVal RPath As String) If RPath <> "" Then Dim WordApp As New Word.ApplicationClass Dim filepath = Server.MapPath("images\Resume\") & RPath Dim File As Object = filepath Dim nullobj As Object … | |
Hi, I wanted to know how to edit the postition of an article or any text in joomla? So for example suppose in a template the articles appear in the center of the website, how can i make them appear in the left or in the right of the website … | |
Hey folks i need a little bit of help im not good with Vb as i am just learning so bare with me ^_^.. Ok well im making a program that will connect to my mysql database located on my other computer in a program called navicat im not sure … | |
Hey, I am not stuck on this or anything just a bit confused about if this is the right way to go.. Well i was wondering on the river (five cards that go into the middle of the table) i am going to make them random and that is no … |
The End.