199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pedramphp

Dear folk , consider I define a constant value [code=php]<?php /*--------values.inc.php ------------*/ define("Data","MyValue") ?>[/code] so right now I want to change the Value of Data from another page and I wold like that to be saved on Values.inc.php file , you know I'm thinking some kind of data Store ,instead …

Member Avatar for digital-ether
0
121
Member Avatar for TheBeast32

Hi, I was told that you can crash Windows in C++ or C by "corrupting the kernel", and I wanted to know if this was actually possible. If anyone knows if this is possible, or how it happens, please tell me. ;)

Member Avatar for William Hemsworth
0
181
Member Avatar for rickya100

Hi, Thanks for checking this out. The error is that when I use ob_start to store the results of an include file my fwrite statement later on in the code works but only writes a blank file, whereas when the ob_start is not present the fwrite function writes the file …

Member Avatar for digital-ether
0
791
Member Avatar for jbrock31

Hello everyone. I need help using an instance of a class in another. Below are two header files. NumDays.h and TimeOff.h I need to have instances of the NumDays class in the TimeOff class as members. When i try to create the instance called maxSickDays, i do not get access …

Member Avatar for jbrock31
0
557
Member Avatar for khalidmehmood

Hi Experts! I am new to Java any body guide me where i can download free java lectures. best regards Khalid Mehmood

Member Avatar for Freaky_Chris
0
149
Member Avatar for maxicube

OK, I'm making a backup application and once the backup is complete, I want it to flash FINISHED!!!! - in different colours - any help at all would be appreciated, thanks - MaxICube

Member Avatar for maxicube
0
154
Member Avatar for Indianblues

Hi , I am newbie in C#. I created a database by right clicking on the project in solution explorer and by selecting add new item then selecting database. Database name is SAMP and it has a table called Account. can somebody tell me how to connect to this database …

Member Avatar for ddanbe
0
309
Member Avatar for salman213

Hi i have a question. Im using Dev C++ and this simple program takes in values of x and outputs *prints them on the screen. Although x should be an integer If i put in for example the letter "u" or any letter for that matter it goes on and …

Member Avatar for Narue
0
128
Member Avatar for farahphp

[code] <html> <head> <script language=javascript> function updateopen() { var c_value = ""; var cb = document.getres.checkbox; for (var i=0; i < cb.length ; i++) { if (document.getres.checkbox[i].checked) { c_value = c_value + document.getres.checkbox[i].value + "\n"; } } alert(c_value); //window.opener.document.getElementbyId(numbe33).value = c_value //window.close(); } </script> </head> <body> <? echo '<form name="getres" …

Member Avatar for sasankasekhar
0
132
Member Avatar for scottholmes

Upon applying for a job, I was given a "tester". One of the questions was what does the php function ?header? do. I have not seen this syntax nor has it come up on any google search I've attempted. Could someone here please educate me on this item? Thanks

Member Avatar for punjabivirsa3
0
104
Member Avatar for collegestudent

I was just wondering if there was any easy way to convert a document.writeln output to display inside a textarea box in a form. I recently had done an airline reservation assignment (enter 1 for first class, enter 2 for economy class) assignment with all output just written to a …

Member Avatar for sasankasekhar
0
165
Member Avatar for l_03

hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class …

Member Avatar for l_03
0
218
Member Avatar for sarabonn

Hallo everyone, Iam using C# to insert a row into access table. Iam getting the values to insert from textbox. I got the error "cannot open action query". Here is my code [code] private void button1_Click(object sender, EventArgs e) { txt1 = textBox1.Text; txt2 = textBox2.Text; String connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data …

Member Avatar for sarabonn
0
259
Member Avatar for blufab

Is it possible to get the value of a non-standard attribute in firefox? I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined. [CODE=html] <html> <head><title></title></head> <body> <form id="form" name="form"> <input type="text" …

Member Avatar for sasankasekhar
0
98
Member Avatar for spokie

hey there im hoping that someone can help me in solving this problem i keep on getting this error when i try to connect from register.html to register.php. Here is my code! [code=php]<?php //Database Information $dbhost = "localhost"; $dbname = "musicwebsite"; $dbuser = "root"; $dbpass = "xxxx"; //Connect to database …

Member Avatar for spokie
0
826
Member Avatar for number87

I am creating a linked list which links a struct of data together. However, this is my problem, if I declare struct Node first then the Event type wont exist, but if I declare struct Event first then nodePtr wont exist....im kinda stuck here as to how I should declare …

Member Avatar for number87
0
557
Member Avatar for concordia

Hi all! I am totally stumped and am hoping someone can help me. I have some data in a database that I will be using to create checkboxes. However, since different data will be pulled out depending on what the user chooses, I want to be able to create the …

Member Avatar for sonyparekh
0
95
Member Avatar for Soloz

Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways... Code: Object [] options = {"Course I do!", "Not Really"}; int n = JOptionPane.showOptionDialog (frame, "Do you Understand?", "Easy Question", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, //do not use …

Member Avatar for stultuske
0
78
Member Avatar for nanosani

If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to …

Member Avatar for stultuske
0
181
Member Avatar for servis

hello everybody, i want to pass directory name as a variable in include function like this, [ICODE] $page = 'test'; include('$page/test.php'); [/ICODE] i know this a wrong way, but i don't know how to do it. please anybody help in this regard. Thank in advance....

Member Avatar for servis
0
102
Member Avatar for ezkonekgal

This is what i did for the factorial assignment that we had.. but i have a little trouble in my recursionFactorial method.. can anyone help? tnx public class Factorial { public static void main(String[] args) { int index = JOptionPane.showConfirmDialog(null,"Would you like to compute\n" + "for the factorial of a …

0
94
Member Avatar for ebiz

I wondered if anyone could help. I am trying to use a FileChooser in java. I have got the dialog box to appear and can select the file, but the box just displays "opening" and the file name. how to I add to the code to make it actually open …

Member Avatar for javaAddict
0
217
Member Avatar for SoprtsFilmer

I am having a problem with a program. I have to create a program with about 8 different functions. Which reads in votes, finds the max, the min, prints the votes, prints the max prints the mid, finds the normalization, outputs how many are below .25 and above .75 and …

Member Avatar for vmanes
0
363
Member Avatar for Aamit

Hi, I want to [COLOR="Red"]search data using Ajax php without pressing on search button.[/COLOR] How to do that?? [COLOR="Red"]any script or link demo or sample code ???[/COLOR] i want do this search like orkut search means design ?? plz help me??

Member Avatar for digital-ether
0
1K
Member Avatar for ihatehippies

Does anyone know how to convert an instance to unicode? I understand how to convert a string into unicode format u=unicode(s, 'ASCII', ignore), however this assumes that s is already a string and converting s by the str(s) method will kick back an error if s contains unicode unfriendly. The …

Member Avatar for ihatehippies
0
121
Member Avatar for mrkcse

hi all, I want to restrict user enter upto value 1000 in a datagridview cell editbegin event.How to check this after we set the following. dataGridViewValueUnits.BeginEdit(true);

Member Avatar for mrkcse
0
111
Member Avatar for harrybern

Hi All I am trying to convert xml file to a text file. But my program creates an empty text file and does not copy any text from the xml file. Please help Thanks My code: Dim Doc As New XmlDocument Dim NodeList As XmlNodeList Doc.Load("C:\Temp\MyXml.xml") NodeList = Doc.SelectNodes("/response/TAG") Dim …

Member Avatar for sierrainfo
0
208
Member Avatar for cali_dotcom

hi, i'm trying to figure out how to pass arrays back and forth from php to javascript and back in the zend framework. i need to do this for check boxes for a project and i canno use zend_form. i came up with a way to do this but the …

Member Avatar for somedude3488
0
140
Member Avatar for Aamit

Hi.. I am creating one table has huge data. creating one input text & search button. when put some string i.e. anything we want as input in text field [COLOR="Green"]when click on search button...[/COLOR] [B]I want to show that the content match with string the rows in database are displayed.[/B] …

Member Avatar for Drew
0
99
Member Avatar for imohammed

Hello, I have question about backup and restore procedure for MS SQL 2000. If I make a full backup on Saturday and Transactional backup on Sun - Friday. When restoring I know sequence matters but what if I make a mistake and select transaction log out of sequece to restore. …

Member Avatar for sierrainfo
0
87
Member Avatar for Tyrone.Wilson

The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!! Anyone know how to temporarily remove the protection, edit what you want and …

Member Avatar for Tyrone.Wilson
0
577
Member Avatar for darkyere

I have made this application where theres a tlistview whit image destinations in it. Then i got a timer to shift the picture. then ive addet a random function to shuffle through the picture. now what i want to happen is that the same picture dont get shown twice. So …

Member Avatar for darkyere
0
193
Member Avatar for dtaylor01

Can someone give me a example of a code inside a while/repeat loop so that it continues until you want it to stop using values of length, width, and depth.

Member Avatar for dtaylor01
0
61
Member Avatar for deathnote

is there any way or code on how to detect pixelated parts or distorted parts of a picture?

Member Avatar for deathnote
0
50
Member Avatar for mstrofdrgns

hey there , Im taking C++ courses in my collage (so ım a newbie) and they are teaching programing language a bit different from the examples in this forum. [code=c] #include <stdio.h> int main (void) { int x; int y; int z; int min; printf("enter 3 numbers : "); scanf("%d …

Member Avatar for Ancient Dragon
0
142
Member Avatar for thanatosys

Ok I will post all of the code at the bottom, first thing however is the loop below starts at 0, then increments to 1, but never increments any further. [code=python] for counter1 in range(fieldlength): if self.__fields[counter1] == field: for counter2 in range(rowlength): #print self.__rows[counter2][counter1] if self.__rows[counter2][counter1] == value: return1 …

Member Avatar for thanatosys
0
162
Member Avatar for Lokolo

[code] void writingTransactionToFile(string transaction) { string temp; int test; ifstream myfile("transactionlog.txt"); ofstream tempfile ("tempfile.txt", ios::app); if (tempfile.is_open()) { tempfile << transaction; if(myfile.is_open()) { while(!myfile.eof()) { getline(myfile,temp); cout << temp; tempfile << temp << endl; } } else { cout << "Unable to open file."; } tempfile.close(); myfile.close(); } else cout …

Member Avatar for brechtjah
0
173
Member Avatar for MJFiggs

I have had this problem a couple of times but i am unsure of what it means. could someone tell me what the error message "non-lvalue in assignment" translates to in english, please?

Member Avatar for MJFiggs
0
165
Member Avatar for ebiz

I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks.

Member Avatar for Ezzaral
0
160
Member Avatar for rhoit

I decided to learn the template any how.... but... Each level is giving me the trauma staring up with the domino one after another.. please help.... Problem is I use both printf(); and cout<< for the console output... now the problem lies that i can't just leave one of them.. …

Member Avatar for StuXYZ
0
104
Member Avatar for mshefa

[code=cplusplus] #include <iostream> using namespace std; int CelsiustoFahrenheit() { float celsius; cin >> celsius; float fahrenheittemp; fahrenheittemp = celsius * 1.8 +32; }; int FahrenheittoCelsius() { float celsiustemp; float fahrenheittemp; cin >> fahrenheittemp; celsiustemp = (fahrenheittemp-32)/1.8 ; }; int main() { int choice; float celsiustemp,fahrenheittemp; cout << "1.Celsius to Fahrenheit" …

Member Avatar for mshefa
0
2K
Member Avatar for Mujzeptu

As the title suggests, I am wanting to create a simple script for system administrators. When you run this script in a linux shell, it will ask you what you want to set the local systems hostname to (so the admin can type it) and then prompt the administrator for …

Member Avatar for JeoSaurus
0
152
Member Avatar for carson myers

I like writing assembly in debug under command prompt in windows, mostly because I don't have to worry about compiler rules and it's a lot better for learning how the processor works more in-depth... moving things to and from the memory rather than using the stack, using memory addresses rather …

Member Avatar for carson myers
0
172
Member Avatar for CMacDady

I have been writing a Loan Program that requires at one point to read a .txt file and create an array from the contents. This part is nothing new to me. The problem I have is a single line of code and I cant figure out how to make it …

Member Avatar for CMacDady
0
145
Member Avatar for Stefano Mtangoo

Hello Developers! I have been searching for long lame binding for python and have no way but need to learn ctypes to use lame_enc.DLL. For Now I need simple DLL with simple functions to play with. My Question is: Where can I get that simple yet safe DLL to play …

Member Avatar for Stefano Mtangoo
0
154
Member Avatar for egolovin

Hi all i am working on a memory game and i am having problems inputing the data so it checks if a 3rd number is pulled up to ignore it thanks in advance [CODE]int card[6][6],total=0,value,test; srand((unsigned)time(NULL));//randomize timer for (int i=0;i<6;i++) { for (int j=0;j<6;j++) { value=rand()%18;//random test=0; card[i][j]=value;//sets the value …

Member Avatar for egolovin
0
287
Member Avatar for cassie_sanford

can someone tell me what's wrong with my code?My instructions say that i dont need to add any html elements to this document since it wont display in the web browser but i dont know what to do. Here's what i have: [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" …

Member Avatar for somedude3488
0
112
Member Avatar for davids2004

Write a program that calculates how much a person earns in a month if the salary is one penny the first day and doubles each day worked. [B]The program should ask the user for the number of days worked during the month[/B] and should display a table showing how much …

Member Avatar for VernonDozier
0
152
Member Avatar for brechtjah

I have absolutely no clue why the following code works except for the following three characters: ç, à and è. It should rule out all non-digit characters from being written into an edit control. Because it let's those three pass trough I am forced to turn this: [code=cpp] if(!isdigit(editControl_Content[2])) [/code] …

Member Avatar for brechtjah
0
169
Member Avatar for gjkeeler

Hi I'm trying to use Free Pascal for a simple problem - passing a function as a parameter to a procedure. This works fine in Turbo Pascal, but in Free pascal throws up the error: Wrong number of parameters in call to "<function name>" In all other respects Free Pascal …

Member Avatar for Duoas
0
305

The End.