199,114 Archived Topics
Remove Filter ![]() | |
Hello everyone! I need help. How do I stop a typing text, how to hide/show a class/id, and load a content everytime a button is press. The problem in my code is it doesn't hide the website, everytime I click the button it always reload the content. Then when I … | |
I keep getting a .class expected error in the if statement. help please. private int[] hand; private int[] play; public PokerHand(){ this.hand = new int[5]; } public boolean haveCard(int card){ if (play[] == card) return true; } public void displayCards(){ System.out.println(hand); } public void dealCards(){ | |
I have service, when i make updatepage data bring in database , i take error" sequence contain no element". i can't fix. | |
<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ms", $con); $time1 = $row['timein']; $time2 = $row['timeout']; $sql = mysql_query("SELECT employees.*, timetable.* FROM employees INNER JOIN timetable ON employees.id = timetable.id WHERE timetable.in_time BETWEEN employees.timein AND employees.timeout "); echo "<table width='734'> <tr> <th width='49' scope='col'>Employee … | |
Hi there, I'm not too new with C#, but I've had a lot of questions recently (I've learned most of C# through experimentation, so that's probably a reason) that I'd like to help find answers for. Anyway, sorry for the offtopic start! Let me get back on topic... Okay, so … | |
For a project i have to create a program that is able to write and read a sequential file and list the contents into textboxes. So far i am able to write to the file but the problem is i am not able to retrive/read the information from the file. … | |
Define a getTopTwoScores() function with the specification and prototype shown below: // Set highest to the score with highest value and secondHighest to the score with the next highest value. // If there are two highest scores with the same value then set both highest and secondHighest to that value. … | |
If I choose to retrieve some MySQL data using PHP, how do I put it in a certain area of my page? For example, if there is a div with an id of "putTextHere", how to make PHP echo/put text in this div? And how to get a certain value … | |
Hi, I am trying to create an input that collects address inputs (home address) and I have no idea how to start nor how to create an input like that. I tried Google, got nothing from it. If anyone can help, that would be great :) | |
hi, i have a problem to display my data. i have 4 table (**proposals,quotation, po,simulation**), in **proposal** there is **pro_id, pro_name,file_name and file**, in **quotation** there is **pro_id, quo_name, file_name and file**, in **po** there is **pro_id, po_name, file_name and file**, in **simulation** there is **pro_id, simul_name, file_name and file**. … ![]() | |
Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if … | |
Does a Java applet have to contain a "main" method or does it run from the "init()" method. I have written a small game in java following and example in a book however it does not tell you how to run the damn thing. Code has no erros from what … | |
hiii! Can any one help me to add super user to my login script that can veiw and edit all user, and evry user can veiw his/her profile like facebook. hope you people will help me. ![]() | |
What is the best way to practice C++ coding on Windows 7, and at the very least free? I want to get better at programming, but I don't have a compiler. | |
hi everyone i have made 3 stylesheets for different looks for my website i want to load/ change the stylesheet if the user selects the dropdown option and cliks update button heres my code for drop down <label>Select Theme:</label> <select name="theme" value="<?php echo $theme; ?>"> <option value="Default">Default</option> <option value="Dark">Dark</option> <option … ![]() | |
Hi Admin..!! i want source code in php+ajax for a form, in such a way that, suppose i have a form in php, with 10 different fields, when the user fills that form, the fields next to gender should automaically change, like the remaining fields must be different for Male … | |
Hi everyone, We all face dificullity in coding recursivly, maybe most of new codders and CS students. However, **my question today is related to How many number of execution been made by the recursive method.** Which I think a bit tidious. I'll be updaing this article with new questions any … | |
Hi, How I should crypt messages when sending on my own site them from user to another? I don't want them to be plain text in a database or be readable easyly via stealing datastream over wifi. Thanks! ![]() | |
i am getting nothing , i am trying to retrieve checkbox value and email address from gridview via code, I am succeeded in getting Checkbox value successfully but cannt get email address, even grid view has it, but i cant get, just blank, here is the code: .cs : protected … | |
Hi, I have been asked to create a method to store information on the football players for the polish team. I have stored each player in an array of Players[]. My task is to output any players which match the search string. So the method I have to create is … | |
Alright. I am making some decent progress here. I am trying to add a toolbar to my basic text editor that I am making using an internet tutorial. Anyways the problem is that I can get the bitmaps to display but they appear to be just that... bitmaps. When I … | |
I'm probably doing this wrong, because there has to be a way to do this. Here is my current code: import javax.sound.sampled.*; public class soundHandler{ soundHandler() { } public void newSound(String sound) { new soundThread(sound).start(); } } class soundThread extends Thread { String soundName; Clip clip = null; soundThread(String i_soundName) … | |
I am trying to create a checker program(for a sudoku puzzle) that will read a completed board and then go to determine if it obeys the constraints. If it does, it just says so, if it doesn't it reports the conflict. Where should I start? Thanks. | |
How do i make a label display if the textbox value that was entered is invalid? This is my code so far and when i press the button to find the invaild source the label is suppose to appear but nothing is happening when i click the button. Private Sub … | |
I'm trying to switch "M" to "Mr." and "F" to "Ms." when the last name is selected in the listbox. When I clicked on the first name it worked, but when I clicked on anyother name, I got this error message: --Additional information: Index was outside the bounds of the … | |
hi to all m lil bit confuse as m beginner to the xml+xpath. so m sorry if i m unable to ask any kind of wrong question. now the question is m trying to accessing the name of the of the attribute of xml file using xpath and tyring to … | |
Hi, Can anyone tell me what is wrong with this code? It seems to be throwing me some error: **non-static method getName() cannot be referenced from a static context.** public void printOrders() { for(Order filename: Orders) { System.out.println("Name: " + Order.getName()); System.out.println("Quantity: " + Order.getQuantity()); } } | |
I am a newbie to py.test , Please let me know how to run the py.test in PyScripter Editor. I have tried in the belwo way but it doesn't work. import pytest def func(x): return x + 1 def test_answer(): assert func(3) == 5 pytest.main() | |
Hi I am inserting in database but there is error in query. i have array in which form data is stored and function recieve the array but data is not inserting in array. bellow is the code. $insArr=array(); $insArr['first_name']=addslashes($_REQUEST['first_name']); $insArr['last_name']=addslashes($_REQUEST['last_name']); $insArr['email']=addslashes($_REQUEST['emailid']); etc there is 46 fields in table //now the … | |
**Hi Daniweb!** I have a question regarding my e-commerce website. On my product overview, I have this code: <?php $replace_what = array('/',' ', ' - ', ' ', ', ', ','); $replace_with = array('-',' ', '-', '-', ',', '-'); //Start of (1) $mysqli = new mysqli(***); if (mysqli_connect_errno()) { printf("Connect … | |
When an item is selected in the drop down it will show a text box, but when another item is selected the text box stays and it keeps adding to the end. I need to be able to have only the text box appear that goes with the item. <!DOCTYPE … | |
I wrote this script for my validation page.I used javascript and jquery mixed it all up. For some reason when I submit the gender validation doesnt work right, it keeps asking to validate but every other condition works. What I've pasted below is just the gender condition and the "if … | |
hi everyone, i just want to ask is there any mistake in my code..because whenever i comment the email check it wroks fine but with email check it always gives error that this email already exists.. i am actually checking if the email im going to add is present already … | |
Hello guys, I am working as a C C++ UNIX software programmer , and looking for freelancer projects. could you please let me know how can i get the project? | |
Hi all members I'm a learning how to use C/C++ on Netbeans IDE. I got an [tutorial on net](http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#intro) I am trying this tutorial to complete since last 5 days--- I followed the tutorial step by step. My system settings - Window 7 32 bits Netbeans 7.1 JDK 1.7 cygwin … | |
hope everyone is fine over there :) i just wanted to ask how i can display only one question at a time from mysql table?? here is my code which is doing following things 1) selecting all questions and displaying them what i want to do is 1) display only … | |
Hi, I have a csv file im reading and this is what I have done so far: import csv filename='C:\Users\temperature.csv' with open(filename, 'rb') as csvf: reader = csv.reader(csvf) for row in reader: print row the result is as following: ['Depth (m);15.08.2012 15:39:09;15.08.2012 16:09:10;15.08.2012 16:39:10;15.08.2012 16:43:36'] ['0;53.218;52.804;52.865;51.202'] ['0.128;53.107;52.709;52.414;52.141;'] ['1.143;52.205;51.88;51.664;51.234'] ['2.159;51.026;50.846;50.842;51.258'] ['3.174;50.061;50.055;50.457;50.19'] … | |
hello guys, i want to write a program to cout the numbers i input (a-z) to (z-a) like input (1,2,3,4,5,6,7,8,9,10) output(10,9,8,7,6,5,4,3,2,1) and i tried this but it's out put the same sorting #include <iostream.h> void main(void) { int Number[11],i,j; cout<<"Enter The Numbers"<<endl; for (i = 1; i<=10; i++) { cout<<"Number"<<i<<": … | |
Hi, not too sure if Web Development is the right place for this but anyway: I've never done any web development and I have never created a Firefox extension either but here's the thing: I am making a project for myself, a Java (not JavaScript!!!) program that can add, change … | |
Is it possible to remove an Icon or ImageIcon once it is set to a JButton or JLabel? When a specific action in my program has taken place, the picture in no more appropriate and I want to remove it from a JLabel. | |
Hi, i have to write/as homework/ a script that shows list of all users ,users belong to group (which is main group for every user has been showed) defined as parameter of script. In the case of -c, show count of those users. TIP: /etc/passwd, /etc/group | |
So far i have a code that only allows you to enter numbers but how do i limit the value from 0 - 9999. Also how would i be able to display a message label if the user is doing something illegal. Right now i have the messagebox setup but … | |
I found a tutorial online that so far has been aswesome. I downloaded the access db and so far can read and browse through it. However, when I try to write back to it (btnSubmit_Click), nothing happens. All other buttons work fine, I can still browse, and I get absolutely … | |
There is code in the project I am working on that increments. Basically the user selects from a drop down list and than there is a button that increments the number for that option, to record how many times they've done something. Now I need to write code to decrement … | |
**This program is supposed to read data in from a file into an array list and everything compiles correctly so far but when i go to run the applet ProcessNovels it shows a blank window saying "Start: applet not initialized? Im not sure where the problem actually is i am … | |
Hello! I have an output problem with a program that I'm writing that takes a user inputed sentence and reverses the words within it. Right now the program compiles and runs without problem, but my output is different than what is intended. specifically, there is an extra newline placed after … | |
I need help. I got this error after submitting a form that uses formmail.php: Parse error: syntax error, unexpected T_STRING in /home/thewebdy/public_html | |
I'm a bit lost on this with html5 - The datasrc attribute on the select element is obsolete. Use script and a mechanism such as XMLHttpRequest to populate the page dynamically.. Does this mean that I will have to change everything into a ajax format? ![]() | |
i Always getting : **mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\class\function.php on line 28** please give the suggestion friends config.php <?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', '12345'); define('DB_DATABASE', 'class'); class db_class { function db_constractor() { $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die('Oops connection error -> … |
The End.