199,113 Archived Topics
Remove Filter ![]() | |
![]() | I would be great if someone could spot the problem with this code please. I have a MySQL table that was populates an Options list which works well when adding new records to another database table. The code is: $query="SELECT id, types FROM $table ORDER BY types ASC"; $result = … |
![]() | I made a creature composed of shapes in a Java Applet. I want to basically copy and paste the creature I made so I have say 7-8 copies on the same applet. but in different locations. Is there an easy way besides copying the entire code, and moving each coordinate … ![]() |
Hello, The following program computes the value of Pi using the Hit/Miss method. Since I am doing all the drawing in the JPanel, I am not calling super.paintComponent(g). The program works well, but since I am not using the super.paintComponent, it does not draw the background. Is there any way … | |
How to make only one record at a time get inserted in the database table and also delete from the other table? Once the details are filled ,I insert it in table1 as the new record and I delete the same record from table2. Note: Table2 is the table that … | |
hello guys! am trying to put time on my website, and i want the seconds to be changing each time, but untill you refresh page! i've tred using the setTimeout() method, but to no avail! help please. this is my code: // Page Times JavaScript Document window.onload = initDate; var … ![]() | |
hi guys... i really need help on this one... i try to put a form like this <script> function checkuser() { var xmlhttp; if(window.XMLHttpRequest) { xmlhttp=new window.XMLHttpRequest(); //for mozilla } else { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState == 4 && … | |
*This program is supposed to printout all the first letters of the Strings enterned in an Array. Which works. but when I added some code to convert the first letters to uppercase, there's an error.* I put a comment in the code where the error is. what's wrong with that … | |
Hello All, I am new to C programming. I was trying to write a code that will allow me to take an array of n elements, and take every combination of pairs and write it. example: array: 1, 2, 3, 4, 5 output: (1,2), (1,3),(1,4),(1,5),(2,3),(2,4),(2,5),(3,4),(3,5),(4,5) I would truly appreciate the … | |
hi, I'm currently building a game and stuck at the paintComponent method. I'm trying to add 3 graphic buttons to the JPanel but the paintComponent does not execute (all I get is gray window) here's my code : public class TwinMoonTowers extends JPanel implements ActionListener{ private class TMTMenu extends MouseAdapter{ … | |
Hello guys, There is a thing I need help with. When I run my program, and the window shows, I want focus on the textField. Like Google, when you enter Google, you get focus on the search panel so you can search. My program got a simple search engine with … | |
OK. I have an Ajax getproduct() function that calls getproduct.php page with the id of li tag elements from multiple uls in #sidebar div. The id of each li tag references a table in the database as `'$q=$_GET["q"]'`. All the rows in the tables called are the same and each … | |
Hi I am new to C#. I have to enable my text box whn the check box is checked. It would be very helpful if i can get the code for this. | |
hi, Can anyone tell me the exact difference between memset,malloc and calloc.I am new to c++, Know this is simple question to ask in c++ but i am getting lot of confusions in using them and i want to knw whr exactly i can use these. Regards, Sharath. | |
I don't understand why it just prints numbers. /* This program converts the first letters of the entered strings for an array to uppercase*/ import java.util.*; import java.lang.String.*; public class myfirstarray{ static Scanner scan = new Scanner(System.in); static String str1, str2,str3, str4,str5; public static void main (String[]args){ String[] items = … | |
An example of a multi-tier application where each tier of the application throws its own exceptions that are caught by other tiers of the application. | |
Hi. So my problem is that I can't save into a vector throughout a function, but I can save directly in the vector. /* * asd.cpp * asd.cpp is licensed under GNU GENERAL PUBLIC LICENSE * Created on: May 3, 2012 * Author: sin */ #include <iostream> #include <string> #include … | |
hi i installed wamp5 1.7.4in windows 7 and started wamp server using komodo edit i created a file with a test command <? php phpinfo(); ?> but all i get is blank page i tried html it would work fine but none of the command for php is working | |
i have to decrypt a frame on my server. encrypted frame is coming from client device through GPRS on socket.encryption is done with "TripleDes" and with a given key.same algorithm and key i am using n server side. frame is a combination of Hex and Ascii String. problem is when … | |
how to remove zeros from int array? for ex if i have a array 1,2,0,34 than result is 1,2,34. i was thinking may be use trim function? another idea was to put space. for ex 1,0,2,0,3 than reslust is 1, ,2, ,3 note iam trying to do this without making … | |
I've attempted to create a linker for assembly files, what the program does is not the issue here though, I havent used pointer arithmetic in a few years and am definitely rusty in doing so. I'm getting a segmentation fault when I attempt to run the file and would like … | |
URGENT: guys i really need your help with this. I have been debugging my program for days but it doesn't seem to be improving this is the code for the table layout: <table border="1" id="COT_Table" onclick="getTableID(this)"> <td rowspan="3" scope="row">COT</td> <th colspan="4" scope="col">SFAL</th> </tr> <tr> <td colspan="2" scope="col">Temperature</td> <td rowspan="2" scope="row">vol … | |
I have this program I'm writing. I need help with the bet part of the program. I'll give you an idea of what I'm doing: The player starts with $500. He can bet between 0 and his current amount left on next turn. If he bets 0 the game is … | |
Hi, I have this question about the control triggers, I have this project that have textbox, using it's textChanged function and setting the autopostback in to true. Now, when I trace the command I have notice that the function have been triggered twice, and I just want to know now … | |
I have created a number of topic specific pages on my Wordpress site. Example: sports, fashion, music, movie, etc., I have users who wish to manage the content for each specific page. Is it possible to assign a Wordpress editor or author page specific privileges so that can create/upload content … | |
What i have to do is make a slider and that slider controls the speed of a spinning box. How to get the slider to control the speed with javascript? <!DOCTYPE html> <style> .twirl { -webkit-animation:bluespin 3s linear infinite } @-webkit-keyframes bluespin { from { -webkit-transform:rotate(25deg); } to { -webkit-transform:rotate(400deg); … | |
I am looking for code for a simple gallery to replace the program I'm using now. I want to be able to add and delete photo's on the fly. I like it to have thumbnails an the side of main pic or across the bottom.I must be able to add … | |
For the assignment we're suppose to add a findFirst, findNext, and addElement method to the given class and test them. I manage to get the findNext and addElement working but not the findFirst. Here's what the findFirst suppose to do "Method findFirst(T item) searches for and returns the index of … | |
Good Morning everyone, could some one please send me and image of an enrollment System for high school for my reference? | |
I have a question that will probably be easy for someone to answer. I have a form with about 20 fields +- to be entered... When submitted, I check for the validity and existance of a few of the fields that are important, but not all of them What I … | |
Can some one help me with my programming project, it is supposed to loop. If the number is even output comes out even and vise-versa. Can someone please tell me what is wrong with my code. Errors "3 errors found: File: C:\Users\Kaamil\evenodd test.java [line: 1] Error: The public type NumberEvaluator … | |
Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load System.IO.File.WriteAllBytes("e:\", My.Resources.file.exe) End Sub End Class but alwys i get thie error access to the path e:\ is denied but the hard drive is accessable , so how i copy a fil from … | |
How to replace local file path to insert url link [download.php](https://github.com/apps-vn/download.php/blob/9ffc7c80efe57ad8d29f10897f04155c463778e3/.gitignore) // Free Downloads if (isset($_GET['free'])) { $row = $android->getFreeDownload($_GET['free']); if ($row) { $fname = basename($row['filename']); $file_path = ''; $android->fetchFile(BASE_DIR, $fname, $file_path); $fsize = filesize($file_path); $fext = strtolower(substr(strrchr($fname, "."), 1)); if (!file_exists($file_path) || !is_file($file_path)) { redirect_to(($core->seo == 1) ? $core->site_url … | |
I have the following dilemma. We have developed a sophisticated system in VB.NET that takes in a few parameters and then generates result files as an output to those parameters. We want to be able to to "feed" these parameters to this "engine" from the web (preferably some ASP page), … | |
/** * @(#)SavingsAccountTest.java * * SavingsAccountTest application * * @author Kelvin Njuguna * @version 1.00 2012/4/24 */ public class SavingsAccountTest { public static void main(String[] args) { double interest1,interest2; double newBalance1,newBalance2; SavingsAccount.modifyInterestRate(0.04); SavingsAccount saver1 = new savingsAccount(2000.00); SavingsAccount saver2 = new savingsAccount(3000.00); for(int=0;i < 12;i++); { system.out.printf("Month %d:\n",i+1); interest1 = … | |
There are 3 textboxes->textbox1,textbox2,textbox3 and 1 button. In textbox1 bname will be stored and in textbox2 aname is stored. Bname and aname are columns of databasetable. This are not unique. There are same bnames and anames records. What I am trying to do is: when the user clicks on button … | |
hello guys my code is not giving me any errors but wont execute the task it just loops can, anyone help me debug it. its a code for extracting book information from a chinese website. thanks in advance. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Text; using System.Text.RegularExpressions; using System.IO; … | |
Hi Guys having a bit of trouble here, I have create a form program with a set of buttons which do stuff (open,exit etc). I also got a speech recongtion which has a set of words ive put into a grammar list. the problem: i want to the program to … | |
This came up, maybe it is usefull to somebody. Later I plan to do a managing context interface to `with`statement for this. | |
Hello all! I would like to ask for some help/guidance on how to achieve the following: I am currently working on a website where I have an image and next to it a jquery youtube player (http://badsyntax.github.com/jquery-youtube-player/index.html). Both of them work fine and are placed next to each other. However, … | |
Hiya! I'm working on converting an HTML document (AmCharts Pie) to all JavaScript for work, and I ran into a bit of a bump. (NOTE: I'm not a Javascript programmer) Okie - my question is this: Is there a JavaScript equivalent to the HTML Div tag? Here's a piece of … ![]() | |
I would like a user to select text on a webpage, and to capture that text as a string automatically using the least number of user inputs as possible. Ideally, the user would simply select the desired text using ctrl-c, immediately after I would run the GetClipboardData() function and obtain … | |
Hi! Ok. So I've got this problem. I have a reference to a WebService that provides a whole bunch of classes representing a table in a database. Now, it's a simple thing to retrieve a list of all those classes and store them for future use. What I would like … | |
hello every one ! i want to make an application that can work like windows remorte desktop connection or teamviewer , but on local network , how can i do this , i even dont know where to start my work , please guide me , and help me if … | |
Hi! I have one small question. Is that possible? public class test1 { public static void main (String[] args){ test2 client = new test2(); test2[] call = new test2[1000]; int x =2; call[1].add1(x); } } public class test2 { void add1(int x) { x = x+1; } } Sorry for … | |
hi i'm trying to create a search function for my website and I keep getting this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7526299/public_html/SearchResult.php on line 158 <form action='SearchResult.php' method= 'get'> <input type='test' name='k' size='50' value='<?php echo $_GET['k']; ?>' /> <input type='submit' value='search' /> … ![]() | |
Im stuck on how i shlud set up my Maze class in order to get started with solving it recursively. The maze has values stored into a two dimensional array " char[][] maze" and from there im stuck. heres my codes so far: public class Maze { char start; int … | |
Im suppose to have this prompt me via stderr to enter two 32-bit keys. I use fgets tofrom stdin to read up the line the user inputs. Then im suppose to parse the line into tokens using strtok_r that converts them to unsigned longs. I already have a function strToULong.c … | |
Hi all, I created a database for my web application in VB and I'm trying to insert data in my login table but its keep giving me error i have login table which contains loginID UserId Acctype Password My PK is LoginID MyFK is User Id which connected to three … | |
i have been coding a client server program to calculate factorial of a no . The client will pass the no to the server whose factorial is to be calculated. Now the problem that i am encountering is that no matter what value i am passing to client(variable msg in … |
The End.