64,152 Solved Topics
Remove Filter ![]() | |
Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; … | |
I am writing a program using J2ME and my goal is to count how many times each character appears in a string. I am not very good at java so the way i see i should do this is create 2 arrays. First array is used to hold characters. Second … | |
I have recently written a VB.NET application and I am stuck on the deployment. I can't use the ClickOnce, because the program has to be installed on the machine under program files, therefore, I use InnoSetup. My problem is that the application requires sqlclient and .net 4.0 to be installed, … | |
Hey, I'm building my own platform mainly for a project, but, for my own personal use as well.. I'm also changing the style of programming that I do it in, and, setting up some rules.. I just wondered if there are any disadvantages to the way that I am setting … | |
the code below is not working [CODE]<?php $product=array(); $plicense_key=array(); $count=2; $product['0']="The life of game"; $product['1']="The game of life"; $product['2']="Congo"; $plicense_key['0']="xf456-sdfrd"; $plicense_key['1']="xf456-sdfrd"; $plicense_key['2']="xf456-sdfrd"; $to=$user['email']; $subject="Thank you for purchasing"; $txt= "Thank for purchasing our product.your product related information is-"; for($i=0; $i<$count; $i++) { if($i=0) { $txt.="product:Licence_key"; } $txt.=$product[$i]." :".$plicense_key[$i]; } echo $txt; … ![]() | |
Is it possible to make a vb.net application faster Through code like using characters that the Computer already understands Like coding in certain areas through y x (math) etc. Will it be More faster since the compiler don't have to really do much work But its still must be VB.NET … | |
I am unable to understand how to use email address of user at another place in same page of code [CODE]$message2 = Swift_Message::newInstance() ->setSubject($row3['subject']) ->setTo(array($user['email'] => $user['username'])) ->setFrom(array($core->site_email => $core->site_name)) ->setBody($newbody2, 'text/html');[/CODE] | |
Hi everyone, thanks for reading this. I am trying to write some code so that a vote button won't allow a person to vote unless they are registered and logged in. I have this written, but it's not outputting properly. I'm pretty sure I am not encoding the URLS properly … | |
When i make 2 object for a same class, and then i make one object equal to another, then changes made to one object affect another object also, then when i assign one object as "null" then why the change is not made to another object as well? Here is … | |
[CODE] <script type="text/javascript"> aLabe = document.getElementById('alabel') ; function init(){ aLabe.innerHTML= "asdf" ; } </script> <body onload="init()"> <div id="container"> <div id="header" > Google maps Intro 1</div> <div id="alabel">Yo!!</div> <div id="map_canvas"></div> </div> </body> [/CODE]In the above,line 4 throws an aLabe is null error. Why is this? isn't aLabe a global var which … | |
What am I doing wrong? I've stored the date in american format (yyyy-mm-dd) and want to output it in european format (dd-mm-yyy). This is my code. [code=php] //ZENDING $result = mysql_query("select ID, Bestemming, Afkorting, Datum FROM Zendingen WHERE ID ='" . $znding . "' ORDER BY ID, Bestemming ASC") OR … | |
Hi friends, I wanted to add a calendar as a pop up while pressing a button and the selected date should be loaded in the text box.The calendar should be an absolute control.My ultimate aim is to save the space by using a calendar that overlaps the other controls. Waiting … | |
Hi All, I have a 3 richtext boxs where I add each line together and output to a textbox, all is working great. But the problem I am seeing is that I paste the contents from a spreadsheet which strips off the leading 0 (zero) from a 9 digit number … | |
Hello , i have two tables ,animal ,which has name,familie and weight and table food which has feed. I want to assure that every animal has at least one food. I did this : [CODE]import mysql.connector from database import login_info db=mysql.connector.Connect(**login_info) cursor=db.cursor() data=[('Geo','Elephant',['hay',peanuts']), ('Gerald','Gnu',['leaves','shoots']), ('Leo','Leopard',['meat']) ...................... ] for name,familie,feed in … | |
So. I've written my first little graphics game (using the Graphics API) and would like to know two things: a) What's wrong with my collision detection? (Could you point me in the right direction?) b) What am I doing that is not the best way. Is there a better way … | |
Can any one make a documentation of the query for me the query code is [CODE]"SELECT t.*, SUM(t.item_qty) as count, t.created, t.status, t.ip, t.active as tactive, SUM(t.downloads) as file_downloads, FROM_UNIXTIME(t.file_date,'%M %e %Y, %H:%i') as registered, t.id as tid, MAX(t.file_date) as file_date," . " \n p.id as pid, p.title, p.description, p.expiry, … | |
I created a table in mySql named 'user' where fields are: UserID,UserFirstName,UserMidName,UserLastName,Username,UserType,AcctPassword,DateCreated, DatLastModified and IsDeleted. I create a separate form in vb.net to insert user record in database. My program can do insert command and bound this data from mySql to datagridview. And now, i wanted to update this by … | |
I am working on this visual studio 2008 calculator in c#. The calculator seems to be working, but when I created the Calculator Class, now it does not compute. I can click the number buttons, and they show up, but when I hit equals I just get a zero. Can … | |
Hi, I am trying to make a round corners script in object oriented programming method. This is purely for learning purposes. The script is no where near complete but I am already having problems with it. I am trying out the techniques described in 'David Flanagan ' text book 'JavaScript: … | |
plz i try to make factorial program but i have mistake [CODE] import java .util.Scanner; public class Factorialrec { int fact(int n) { int result; if ( n ==1) return 1; result = fact (n-1) * n; return result; } } public static void main(String [] args){ Scanner input = … | |
Assignment :: TwoLargestElements Complete the following program so that it computes and writes out the two largest elements in the array. So far I have this...and it just gets the largest number for both outputs..I need to change it so I get both the largest and second largest. Any help … | |
I really need some answer to resolve my problem. Here's the situation, I wanted to create a student number using mysql database and vb.net in this form: currentyear-(no. of student in record) Student no. is auto generated.(the no. of student in record part) Example: I entered to school in the … | |
Hello, i want to check what letter is typing by user in textbox in event text change. Any body know how to do that? this is my code : [CODE]Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventHandler) Handles TextBox1.TextChanged MessageBox.Show(??) End Sub[/CODE] ?? = ? Please help me! … | |
Writing a small program that requires me to convert strings to doubles and then back to strings. Right now, the code compiles but the answer is wrong, even though I am using an algorithm that I know is right in C++. Can someone tell me what I'm doing wrong? The … | |
Hello guyz, I need some help about downloading MULTIPLE files on php. I've used while loop by checking if the checkboxes were checked but when I continued on clicking the download button, all the system downloads is just 1 file. Why is that?.. any suggestions would be appreciated. Thanks. I've … | |
![]() | Hi there, I started learning Java this year, and I must say that I am surprised how good I have gotten at it. I still have a bunch to learn, but I am able to make my own programs that does a lot of different stuff. I am taking AP … ![]() |
i'm just wondering how i could save my RTF string somewhere... i need to show my rtf string but in its original format, including the tags etc.. thanks. | |
I have just started using Access 2010 and am experiencing problems with it corrupting the database. To take one example I have a database with one module in it. Today when I open the module in design view Microsoft Access falls over with the error "Microsoft Access has stopped working" … | |
hi i create a page that select 6 item form certain table in database and then in each page it shows 6 item of them order by id desc and now i decided to increase the number of item for displaying in each pages to 12. so the question is … ![]() | |
Hello, I'm writing a program that creates repetitions of a section of a word. I'm trying to get the program to evaluate the data i send to the tester method, and return true or false depending on whether or not it is a valid input. [CODE] import java.util.Scanner; public class … | |
Hi, I have to initiates a object to a variable in the private section of my class deceleration. The problem is that I can not add a try catch to it in this way. I Don't think I am explaining things to well (it's been a long day) so here … | |
Hey guys, I was wondering: suppose I created a standard console application and but I now want to make the program (well the code behind the program) into a dll file or some other reference object that can be added to other projects - how would this be done? I'm … | |
Hi all i am new to kohana 3.2.x i used to work on kohana 2.3.x the directory structure is not same in both cases so i am getting problem while posting my form to any controller. [CODE] <form action="<?php echo url::base();?>admin/validateLogin" method="post"> <h3>Enter Your Credentials:</h3> <fieldset> <p><label>Email:</label><input type="text" name="email" /></p> … | |
I want to make following type of animation of balls how can I create I didn't have more knowledge in JavaScript but i want this very urgently [url]http://www.kidneypatientguide.org.uk/site/HDanim.php[/url] this is link please click on play button in movie and wait for 10-15 sec. thank u | |
Does anyone know how to duplicate the top of the 'Torre Agbar' building? I've been able to make the whole colom structure but the top code is bothering me Pls help; need it for my school assignment What I'e got so far : [CODE]from visual import* import math #gegeven straal= … | |
![]() | Hi I want to read a string (Last name) from keyboard, concatenate it to another string (First Name) and then print it on screen. (Windows, EMU8086, EXE Template) First I declare the variables in data segment [CODE] msg1 db 0ah,0dh,"Enter your last name: $" ;prompt message msg2 db "Kamiar " … ![]() |
how can i get the max date supported by a c# application i am trying to take input values of date month and year And if i am giving year 19999 i am getting error how can i solve this help me please thanks in advance | |
Hello Sorry about the stupidity of my question, I'm rather new to python. I'm writing a text analysation program. It reads from a text file and creates a list called 'line' which has variable length and is a list of words. I want to make a loop that will go … | |
i have two forms in my program. The second form appears when button1 is clicked. I would like the information (textboxes) to be filled in when the second form loads. basically i have a complex calculator and when button 1 is clicked i want a second form to show with … | |
hi, is it possible to have two different version of java on linux centos5 currently it is running 1.6.0 - which i would like to keep it that way sinse i have red5 but i also need 1.4 for a gaming server ES gaming server is asking to use at … | |
[CODE]ImageIcon tenP1 = new ImageIcon("10p.gif"); tenP = new JButton("", tenP1); ImageIcon twentyP1 = new ImageIcon("20p.gif"); twentyP = new JButton("", twentyP1); ImageIcon fiftyP1 = new ImageIcon("50p.gif"); fiftyP = new JButton("", fiftyP1); ImageIcon pound = new ImageIcon("pound.gif"); onePound = new JButton("", pound); ImageIcon twopound = new ImageIcon("twopound.gif"); twoPound = new JButton("", twopound);[/CODE] … | |
![]() | Hi :) I am trying to make a program that will find the first x perfect squares. I have done and redone this many times, but it never works. So basically, it needs to do two things: check if y is a perfect square. If it is, it needs to … ![]() |
![]() | Hi there guys. I am soon halfway through AP computer science, where we learn Java. Right, now, I'm doing some extra credit programs, both for fun, and to learn this stuff better. However, I got stuck on a few of them, and I really need some advise. I have already … |
how to do error trapping in textbox where the user cannot abuse the space bar. for example: i want to type hi h i | |
I've googled a bit and managed to find a few articles on how to add controls from within a running application, but neither seem to explain it in a way that suits my needs. I wonder if anybody can help me understand how I can go about this, or direct … | |
Hello guys i am little bit confuse here with the code can any one help me out .. i want max customer paid in shopping and their name i dont know that i am using right way or not but guide me here [CODE]Select sum(od.unitprice * od.quantity) as Amount, (Select … | |
Hello... I'm working on an application that contains a "BackgroundWorker", the "BackgroundWorker" worked fine but after I started to change some stuff it gives me an error ("Exception has been thrown by the target of an invocation.")... I used a breakpoint to see where it happens, the exception gets thrown … | |
Hello Everyone, I am using apache POI 3.7. I am trying to replace the value of a table column in a word document (docx). However, what I have done is it keeps appending the value of the current value in the document. But if a table column value is null, … | |
My app is using MySQL. Right now, the IP/Port, username and all that stuff is hard coded in a string. [CODE]Public urlMySQLDatabase1 As String = "Server=173.201.88.22;port=3306;Database=DBName;Uid=DBName;Pwd=DBpassword;"[/CODE] So all the code that needs this string gets it here. But I was thinking- what if later in the future I need to … | |
Right, first of all I'm new to PHP and I was trying if I could update information in table via a form. So here's the problem: I was unable to UPDATE my existing data in a table through a form using this code: $updateFN = "UPDATE person SET firstName='$_POST[updateFN]' WHERE … |
The End.