199,114 Archived Topics
Remove Filter ![]() | |
hello, hello! im probably being really dumb again, but i can't get java to run keyPressed() when i press a key. do i need to initialize the keylistener somewhere? any input is appreciated!(even if it's not help) import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JPanel; import … | |
We are getting trouble when reading the data like ("â¦", "dóñez", etc) from a data file and storing into oracle DB, these are special characters and they must read and write into database as they are. These following areas where we are getting the problems: 1) when we use split() … | |
i am using strrev function and also included the header file string.h but i am getting the compile error **‘strrev’ was not declared in this scope**. what else is required? | |
i am just trying to populate this array with some information. i have no idea why, but i am getting: java.lang.ArrayIndexOutOfBoundsException: 0 im probably just stupid 0_o... but, here is my code: private boolean populated = false; private int blockList[][] = {}; public void update(){ if(populated == false){ int a … | |
Dear All How can I send mail from my site using SMTP outgoing mail server. I tried and checked may way but not achive any positive result. Here is my mail server detail- SmtpServer="mail.cbsecsnip.in"; SmtpPort="587"; SmtpUser="support@cbsecsnip.in"; SmtpPass="password@123"; // assume this is the password Can any body help me out in … | |
Hi, I have a simple question On my page I have two text boxes, a button and a label. I have a database DB_rental which contains a table TB_credentials (empID, username, password) User enters the username and password in the textboxes and clicks the button. The application should check the … | |
I have a form that has a dropdown list with all the ID's of a particualr table in my database what i want to do is whenever the user selects a particular ID the remaining fields along with the id selected are loaded in a listview. and this dynamic list … | |
hi guys i have a table in a database with data of which i want to display in a tabular format. In addition i want also to be able to edit a particular column of the displayed tabular data but the editing will only allow for the rentering of numbers, … | |
public int CalculateProduct(int num1, int num2) Requires a return type of int. However, in main, when CalculateProduct is called, no variable is assigned to accept the int being returned. I don't understand why. Thanks! using System; delegate void NotifyCalculation(int x, int y, int result); class Calculator { NotifyCalculation calcListener; public … | |
I need a bit of help understanding what I should do here. I have an .php page called view that has the following drop down form code in it. $sql = "SELECT DISTINCT dept FROM sw_lic WHERE dept != ''"; // (1) $result2 = mysql_query($sql); echo "<form action='NB_sw_lic/filter_view.php?$nt' method='POST'>"; // … | |
Hi All, help me please!. How to create Query for my project problem. Mysql table: CREATE TABLE `outbox` ( `id` INT( 11 ) NOT NULL , `phone_number` VARCHAR( 20 ) NOT NULL , `text` VARCHAR( 160 ) NOT NULL , PRIMARY KEY ( `id` ) ) ENGINE = MYISAM ; … ![]() | |
Hello, I want to learn a framework for using php, I think wordpress is the perfect one, if there another opinion please tell me, and what is the right source to learn this framework. | |
**I'm supposed to do a hangman project for my CSC class. I have the code here and it works when I type all the words into a word list, but I can't import the words from my file: words_dos.txt into a wordlist. Can someone please help me?** import random HANGMANPICS … | |
![]() | Hi I want to know has anyone used **PEAR** or **htmLawed**? **PEAR**: http://pear.php.net/ **htmLawed**: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php I download the both files (**PEAR** & **htmLawed**) For **htmLawed** it's looks very simple to used but not sure how I can adapted to the websites? As for **PEAR** I finally got it installed! There's … ![]() |
Hi All, How to Play Sound where record of mysql table is added?. thank you. ![]() | |
Hi all, class A { public: A(); ~A(); } class B { public: B(); ~B(); private: A *a; ->declares a pointer to class A object A a; -> holds the class A object } Whats the difference between the 2 type of declaration of a class A instance? Are there … | |
When I tried registering the system32 dll using regsvr32, I came across this error : "**p2sodbc.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.**" Help out guyz... | |
Hi all I hope some one copld help me with this. I have a datareport works fine as it is I have a report textbox txtsex I have 2 labels Pregnancy and Children If txtsex is Male the 2 labels captions should be "" My present code below gives me … | |
Hi All, I have managed to get my program working now using UDP to send a message to a sensor and get a reply.The last major issue i am having is the data i recieve back. data, addr = sock.recvfrom(782) # buffer size is 782 bytes This is my line … | |
i created a custom installer for my mobile application, the problem is if device is not connected to cradle it tries to install the application next time the device is connected. i dont want it to happen, i want to check if device is connected to cradle. help please. come … | |
I am trying to create a program that converts a fahrenheit number to a celsius number, and convert a celsius number to a fahrenheit number. It takes user input and decides which sub-program to run depending on which letter is entered. Once it decides this, it asks for the number … | |
Hi all ,, i wanted to dispaly unicode values I saved in database. I use mysql database collation type is utf8 I save my native lanugage characters 'Sinhala' in the database. Although I can see them database when I print them in browser it prints ????????? characters. what's going on … | |
Which is the best compiler for C++ development for latest versions of OS like the 64 bit windows? The DEV C++ compiler is a good option but I find it problematic for file handling. Visual C++ is also a good alternative but I couldnt find any command for compiling and … | |
I have a following problem in my project. The administrator add the buyerid,styleno,buyername,buyeraddress and phone no to the system.(Buyerid is Auto increment.It is not adding by the admin.) When that added it goes to the table addnewbuyer in database.After adding this information buyerid is given to the buyer. From this … | |
Hello all, I am working on an upload script. This one is taken straight from php.net. I tried to get it to work but can't seem to. Could you help out? This is the code: <?php $uploads_dir = 'file:///PETBookPro09/Users/petuser1/Desktop/'; foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) … | |
Hello all, I am working on an upload function and am having problems. This is the message that it says: Warning: move_uploaded_file(../../../../data/C0017593-Human_brain,_PET_scan-SPL.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/...(other stuff) on line 163 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/Applications/XAMPP/xamppfiles/temp/phpMtgNWy' to '../../../../data/C0017593-Human_brain,_PET_scan-SPL.jpg' in /Applications/XAMPP/xamppfiles/htdocs/...(other stuff) on line 163 … | |
I'm coding a encryption program where I need to generate random prime. I wrote this code for(i=3; i<10000000; i=i+2 ) { for(j=2; j <= sqrt(i); j++ ) { if(!(i%j)) break; } if (j>sqrt(i)) { cout<<i << " "; } } This tests a number till is square root. Its good … | |
Some browsers will resort a json array by index to make access faster, I understand this. The problem is that when I pass my json object to jeditable using the data setting, in those browsers my options dont come out in the order I need them (Alphabetic). PHP creating the … | |
I am currently in school for video game design. I plann to make a mmorpg and although I will be creating the company I plann to do much of the work involved. I have noticed lots of mmorpgs have bots running non stop flooding the game and making gameplay annoying … | |
Hello! It's me again. I making a library software and I using DataBase. When I remove any record from database and then click save i got a error message: **Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.** , and one line of code with yellow background: … | |
I'm trying to have my winform check for changes in textboxes, combo boxes and masked textboxes. I've found a way for one textbox, but how can I do this for all of the textboxes as well as ones on other tabpages? Private Sub Textbox_Textchanged(ByVal sender As System.Object, ByVal e As … | |
![]() | Hi, I would like to have a Combobox where the selected item is the value set in the session attribute. For example: HTML: [CODE] <select name='myCombo'> <option value='--Select Table--'>--Select Table--</option> <option value='OPTION1'>OPTION1</option> <option value='OPTION2'>OPTION2</option> </select> [/CODE] Javascript: [CODE] document.getElementbyName('myCombo').selectedValue = session.getAttribute("choice"); [/CODE] Thanks, -Ashton. |
hi im not very good in english .. XD im trying to make a simple text editor that can open and save.. i have a problem in my save code here is the code: JFileChooser jfc = new JFileChooser(); jfc.showSaveDialog(jMenuItem1); File f = jfc.getSelectedFile(); try { FileWriter fr = new … | |
Hello. I working on my Library software and I using database for my project. When i click save icon I save my record and when I close program and open it again, database is empty. All my records always gone! But when i create new project again and make new … | |
Good day ma'am/sir, i just wanna ask how to add color in a just specific word? because i tried this one printf("You chose"); textcolor(RED); printf("RED"); but still the whole output is colored red. please help, THANKS! | |
Hey All! I have created a database application which read and write data in Ms Access. It works well on my computer but when i try to install the same application via installer package to another computer, and run it, it gives me error that i dont have the database. … | |
I have this code as shown below. I've modified a bit to update the markers dynamically according to xml file extracting from php mysql database. There's nothing wrong with the script. The only thing I would love to do is to move the marker smoothly instead of the markers flickering … | |
Hello , I have a 2D array. It has two columns. I have to find the top 3 elements of the second column and return the corresponding elements of the first column. for example say the 2 D array is as follows: 1 0.33 2 0.4 3 0.6 4 0.2 … | |
plz some should help me on how to connect my sim card to my website so that the site can send sms onbehalf of the sim with the sim id to my network provider and my clients thanks in advance | |
hello iam using oracle 10g express edition actually iam not able to connect to sql plus if i enter the commands it shows an error mesaage as "not connected".so i tried another way of opening by connecting in oracle 10g go to database home page and entered my password and … | |
Hi, Just before I jump from the roof :-) Need some help here - autosuggest jQuery: <!DOCTYPE html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function() { var timer; $("#txt1").on('keyup', function(e) { var self=this; clearTimeout(timer); if (self.value.length===0) { $("txtHint").text(''); }else{ timer = setTimeout(function() { $.ajax({ type: "GET", url: "gethint.asp?q="+self.value, }).done(function( hint … | |
Hey guys, I'm working on Ubuntu 10.04. I use Eclipse as my IDE, but now I want to install the Android ADT plugin for eclipse(as seen [URL="http://developer.android.com/sdk/eclipse-adt.html"]here[/URL]). Now the thing is, that I don't have internet connection on the machine that has Eclipse running so I can't simply go to … | |
Good day, please help, when i transfer my phpcode in ubuntu I am getting this error * Warning: include(includes/sidebar.php) [function.include]: failed to open stream: Permission denied in /opt/lampp/tg/index.php on line 47* but when I'm using Windows vista my pages are okey... please help thank You.. | |
if(isset($_POST['add_user'])){ $passw = trim(htmlentities($_POST['password'])); $encrypted = enc_salt($passw); $con = "true"; $sql = "SELECT * FROM users WHERE username='".$_POST['user_name']."'"; $result = $database->query($sql); $row = $database->fetch_array($result); if($row!=""){ $con="false"; } if($con!="false"){ $sql = "INSERT INTO photo_gallery.users (username, password, first_name, last_name)"; $sql .= " VALUES ('".trim(htmlentities($_POST['user_name']))."','".$encrypted."', '".trim(htmlentities($_POST['first_name']))."', '".trim(htmlentities($_POST['last_name']))."')"; $result_set = $database->query($sql); echo '<script type="text/javascript">alert("Account … | |
This program displays decimal,hexadecimal & character equivalents int main(void) { int i = 0; for(i = 0; i < 255; i++) printf("Dec-%3d hex-%02x Char-%c\n", i, i, i); return 0; } | |
How can I find the differences between two matrix? I should find the diverse numbers. Thanks in advance for your help! | |
hi all! i have two combo box in my program one has the subteam for example if you click the 1st combo box, the items would be A1 A2 A3 A4 A5 what i want to happen is that if i chose A1 only the members of team A1 would … | |
Hi, Im stuck, Im trying to make a program that asks the user for a decimal number and then it converts it to a binary number. Im assuming I need a "remainder = string % 2" or something along these lines but Im not really sure where to start. anyhelp … | |
can anybody send me a project ONLINE DISCUSSION FORUM developed in php...... |
The End.