199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for patk570

Hello everyone. I seem to be having trouble with the doMath() section of my code. I was wondering if you can help me out... [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Package Plans</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <SCRIPT LANGUAGE="JavaScript"> function …

0
97
Member Avatar for bhallarahul

hello everyone i was writing a program which is used to convert pdf to text.it is work fine when i am convertin a simple paragraph or table into text but it gives error while convert another file which is send by other and contains 1000 's of pages can you …

Member Avatar for bhallarahul
0
547
Member Avatar for TheQuestor

[CODE]<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="plugin.video.stagevu" name="StageVU" version="1.3.6" provider-name="AJ"> <requires> <import addon="xbmc.python" version="1.0"/> </requires> <extension point="xbmc.python.pluginsource" library="default.py"> <provides>video</provides> </extension> <extension point="xbmc.addon.metadata"> <summary>stagevu: Watch video</summary> <description>Watch what you have been searching on internet.</description> <disclaimer>The video add-ons hosted by my XBMC add-ons repository(aj add-ons) makes no warranties, expressed or implied, and hereby …

Member Avatar for GeekByChoiCe
0
304
Member Avatar for DezineGenerator

Here is code which i am using Please check it first [CODE] for(x=0; x<=y; x++){ if(a=x||b=x||c=x){ printf("Value =%d",x); } } [/CODE] In this code x is a base for the loop i want loop till y (variable). Now inside the loop i want to check a condition if x (variable) …

Member Avatar for DezineGenerator
0
431
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Member Avatar for rotten69
0
340
Member Avatar for Suzie999

Hi I have a function I use in a win32 dll which downloads the source of a web page to file. The primary windows function used in it is "URLDownloadToFile" in "urlmon.h" But I would like to have a function that downloads directly to a string or char array. I …

Member Avatar for thines01
0
149
Member Avatar for jone kim

grid = [[0,0,0][0,0,0][0,0,0]] user fills the gird simultaneously. Now I want to make a list of empty squaes of the gird. Suppose user has filled: grid [col1][row1] , grid [col3][row1], grid [col3][row2]. Now I need a list with indexes of the empty list i.e. emptyGrid = [1,2,4,5,7,8,9] First I've to …

0
113
Member Avatar for scheppy

I have a grid of 225 JButtons in a 2d array of 15 x 15 I was windering do i need 225 if (event.equals (Grid[0][1])) { } or is their a loops or something, thanks in advance

Member Avatar for scheppy
0
372
Member Avatar for zacharysr

Why isnt this form working? I have changed it around alot but it wont seem to let anyone log in thats not on the same server as me, it works on my computer and any computer in the house, but if its off of ours it wont work [CODE]<html> <head> …

Member Avatar for diafol
0
153
Member Avatar for Virangya

hi, i have this jquery page that is included in an html file and in that file i have a function with .dialog() i want to open a normal pop up if this dialog doesn't work.. i was wondering how ca i do this... will try() catch() work on this..? …

Member Avatar for Airshow
0
198
Member Avatar for Troy III

This is my first post of a type: "question", so bare with me... I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this: [CODE];for(x in document)if(/^on/.test(x))alert(x);[/CODE] …

Member Avatar for Troy III
0
113
Member Avatar for rfrapp

I'm writing a program that adds two hexadecimal numbers of up to ten digits. I'm trying to use the POW function, but for some reason it's underlined. Why is that? [CODE] // hex addition.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> …

Member Avatar for LRRR
0
586
Member Avatar for Luxifour

Hey everyone, How would you go about creating a loop for taking user input without knowing beforehand exactly how many times it will run - as I can't seem to work out how to generate a unique name each time. So, for instance, say you want to take user input …

Member Avatar for Luxifour
0
189
Member Avatar for roshurwill

Hi everyone, recentley new to programming and the language python. So ive learned an amount of python, i decided to start a projct. My project is to make a game, which the user plays using only commands, like walk foward, open the door etc, you are in the bedroom... whatever. …

Member Avatar for woooee
0
513
Member Avatar for janfritz

hi. i'm trying to make a program that will connect two points that i click in my JPanel. i'm trying to connect the two points with a line. i displayed the values of my (x1, y1) and (x2,y2) coordinates whenever i click using the mouse and there is no error …

Member Avatar for hiddepolen
0
232
Member Avatar for VernonDozier

Here's the code. Uncomment line 9 and you get the following error. [quote] ISO C++ forbids initialization in array new[/quote] Leave it commented out and it works just fine. I'm not sure why it has a problem with one but not the other. Each object is a 16 byte array. …

0
119
Member Avatar for Farhad.idrees

hi i have written code but there is mistake in calculation.... i want to show price according to quantity in table.....but quantity is right but price is not rice.. code is [CODE] <?php $brush_price = 5; $counter = 10; echo " <table border=\"1\" align=\"center\">"; echo "<tr><td>Quantity</td><td>Price</td></tr>"; while($counter<=100) { echo "<tr><td>$counter</td><td>$brush_price</td></tr>"; …

Member Avatar for cereal
0
183
Member Avatar for scheppy

Ok, so I've imported import java.util.Random; and im trying to get a random number between 1 and 2, 1 and 4,and also 1 and 15, how would i acomplish this, i know how to generate random numbers, but not between 2 certain numbers?, how can this be accomplished?

Member Avatar for scheppy
0
164
Member Avatar for moroccanplaya

hi i got a a Tkinter text widget and a string i want to know how to display the string in the text widget ?? [CODE] abc = "hello world" text = Text(app, width=80,height=40, wrap='none').grid(row=2, column=2) [/CODE]

Member Avatar for bumsfeld
0
226
Member Avatar for dhija22

Hi, I wonder of you can help me please, I'm new here and looking for an answer to a problem with my Java files. 'Problem' is: When I try to open the 'Java' icon on the 'controll panel' page, it says 'Application not found' !? I have tried re-installing Java …

Member Avatar for dmanw100
0
166
Member Avatar for jhbalaji

Is there any script that can give Equivalent date function in php Example If i assign a variable as 26.1.2012 it should output as 26<sup>th</sup> January 2012 Can someone help me on this!

Member Avatar for diafol
0
196
Member Avatar for BenzZz

Hi, I have three drop down boxes for a Date field; one each for days, month and year. I want it so that when a year and month are selected they can be checked and then i can use those variables to insert the options into the days drop down …

Member Avatar for BenzZz
0
469
Member Avatar for phorce

Hello, I'm trying to create a matrix that dynamically defines the rows and columns.. Now, everything is fine, apart from when I include a function to output the 2D array.. The error: Matrix.cpp:20: error: invalid types ‘double[int]’ for array subscript ... The code is: Matrix.cpp [code] #include <iostream> #include "Matrix.h" …

Member Avatar for phorce
0
130
Member Avatar for RavesCoder

Hello Daniweb users, i wanted to ask you guys , if you can help me with making a game with C++, Do you know how to do it? or any suggestions? I prefer RPG Game... So if you have any suggestions, could you help me? Thanks, Jordan

Member Avatar for jaskij
0
175
Member Avatar for BenzZz

Hi, I want to use javascript within my php file. The three drop down boxes involved are: [CODE] <select name="year" width="10"> <option value="<?php echo $curYear ?>"><?php echo $curYear ?></option> <option value="<?php echo $curYear++ ?>"><?php echo $curYear++ ?></option> </select> <select name="month" width="10"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option …

Member Avatar for AleMonteiro
0
157
Member Avatar for slasherpunk

So, I wrote the following program to connect to my local mysql server and create a table in the existing "test" database. The program compiled without any errors, but I got the following run-time error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on …

Member Avatar for slasherpunk
0
15K
Member Avatar for bhagawatshinde
Member Avatar for peter_budo
0
279
Member Avatar for sagy26.1991

hello everyone, I am new to java programming and i am currently studying inheritance. I have following program and i am getting error [COLOR="Red"]"cannot find symbol"[/COLOR] .Please help me.Thanks in advance. [CODE]class Box { double width; double height; double depth; Box() { //default constructor width = 0; height = 0; …

Member Avatar for sagy26.1991
0
1K
Member Avatar for raj26061990

eg. 14 and 15 Find all the factors of 14 and 15. 1,2,7,14 are factors of 14 1,3,5,15 are factors of 15 Sum all the factors of two numbers and if sum of factors of two numbers taken are respectively equal they are Amicable numbers.

Member Avatar for cms271828
0
487
Member Avatar for aashishsatya

Hi, I'm an absolute beginner in Visual C++ (Express Edition 2010). I've just been trying out this very simple program, and I can't get to use the '\b' tag like I did when I used Turbo C++ v4.5. The cursor moves backwards, but the text does not get erased, as …

Member Avatar for LRRR
0
308
Member Avatar for Undeclared

I have a Gridview in which I have made a column of checkboxes named 'Status'. When the user clicks a button I want to see if a checkbox in particular row was checked by him or not. Code I have written is: [CODE]for (int i = 0; i <= Grid.Rows.Count; …

Member Avatar for Undeclared
0
334
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> void midline(int,int,int,int); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); } setcolor(getmaxcolor()); int x1,y1,x2,y2; …

Member Avatar for swissknife007
0
148
Member Avatar for jumboora

Hello Guys, My job is to process the text files. following are the steps that i have to do. 1: To combine multiple text files into one text file 2: Add filename (but without extension) in the beginning of each text file. 3: and Finally, index the contents of the …

Member Avatar for jumboora
0
2K
Member Avatar for danielbala

hi... im doing project for a school...and new to php and mysql..just learning.. i have to create one loginpage with 3 different users like corres,principal and the staff in the table field what type i have to give like ENUM or SET.. i want to assign 0 for corr,1 for …

Member Avatar for danielbala
0
162
Member Avatar for Farhad.idrees

hi i want to echo multidimansional array by using for each loop... i m doing it but i m not able to do... i hope some onwe will help me.. my code is [CODE] $Families = array ( "Farhad" =>array("Ali","Haider","Kashan"), "Sufyan" => array("Shahbaz","Ali2","Azaan")); foreach($Families as $key2=>$values3) { echo "$key2 $values3"; …

Member Avatar for Farhad.idrees
0
169
Member Avatar for mikeshadow

I need an algorithm that finds how many prime numbers are in a set interval; the interval maximum range is 1 000 000 so a brute force method of checking every number is kinda inefficient

Member Avatar for mikeshadow
0
506
Member Avatar for bashaash

Hi to all I am having this problem can anyone help me to solv this problem pls here is the code. first problem [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hermes/web07/b2501/mydomain.com/htdocs/media.php on line 40[/CODE] media.php code [CODE]<?php $connection = mysql_connect('localhost','test','test'); if (!$connection) { die ('error …

Member Avatar for diafol
0
170
Member Avatar for cadamsjr

Hi everyone, I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting. In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, …

Member Avatar for cadamsjr
0
192
Member Avatar for desup

Hi all, I need help with one script. If i Have string like [CODE]$str = "0001564[B]A[/B]58749655[/CODE] I need to find that [B]A[/B] in this string, and count which number is it (When tha A is on the third place, return 2 [starting from 0]) A think regular expression will be …

Member Avatar for desup
0
138
Member Avatar for Microno

I think I'm about to go mad. For the past few hours I've been trying to get this: [Code]<HTML> <Head> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> <Title>IB Physics - Main</Title> </Head> <Body> <img class="source-image"; src="header.jpg";> <table class="Navbar"; style="margin-top: 50px; padding:25px;"> <tr> <td><a href="index.html"; class="Link-images";><img class="Link-images"; src="Main.png"></a></td> <td><a href="forums.html"; class="Link-images";><img class="Link-images"; src="Forum.png"></a></td> <td><a …

Member Avatar for Microno
0
388
Member Avatar for breakforce

Why do i only see the status whether online or offline, another can not see it meaning that it can not, but i'm offline for others but for me i'm online ? [code]$time = time()+300; $user = $_SESSION['logged']; $query = mysql_query("UPDATE users SET status='$time' WHERE username='$user'") or die (mysql_error()); $query1 …

Member Avatar for breakforce
0
107
Member Avatar for dwayned

Hi Guys, I have imported a CSV file into the database and i want to write some functions to ensure that when data is loaded in that all spaces are removed from certain columns. For Example: In the Phone No column the numbers can appear as follows 07712345678 077 1234 …

Member Avatar for dwayned
0
169
Member Avatar for wael meto

HI ALL I HAVE SMALL PROPLEM I CANT SOLVE AND I THINK ITS SIMPLE I ONLY TRY TO FILL THE DATASET WITH TABLEADABTER BY SELECT WHERE IN FILL,GET METHOD BY SELECT STENAME, PATENT, RCOMER FROM FOURNI WHERE (RCOMER =@RCOMER) I ALWAYS GOT THE ERROR Error in WHERE clause near '@' …

Member Avatar for wael meto
0
224
Member Avatar for friknos

hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need …

Member Avatar for friknos
0
138
Member Avatar for virusisfound

how to create a discussion pages. like a blog and how to post comments on that or a small chat room. I am new in asp.net so any one can provide me some code or link where i can learn this. I want this for learning purpose so please help …

Member Avatar for virusisfound
0
129
Member Avatar for trektrak

Hello, I'm creating a very simple time attendance management system. Just a quick one where you can login just your code and it will store to mysql by reference of time. My question is. Currently I only have one table which is "LOGIN" only.... since this is a time attendance …

Member Avatar for trektrak
0
123
Member Avatar for tarunfuture

Hey friends i just wanna know how can we change the url like if i have a index page now i want to include the login page on click to a link now the url should be index.php?action=login

Member Avatar for diafol
0
174
Member Avatar for lordsurya08

I'm using Swing's GeneralPath to create complex shapes and fill them. Usually I do this, and it creates a nice hexagon for me: [CODE] path.moveTo(100, 100); path.lineTo(150, 100); path.lineTo(180, 150); path.lineTo(150, 200); path.lineTo(100, 200); path.lineTo(70, 150); path.lineTo(100, 100); g2.draw(path);[/CODE] Suppose I wanted to create a donut-shaped GeneralPath, and do this: …

Member Avatar for JamesCherrill
0
359
Member Avatar for morteza_ipo

Hi everybody. I have 2 selects tag. first select is country list. when user choses favorite country then the second select tag get new contents. I can make this with javascript but I wanna make this just with php and without any scripts! This is possible make this without any …

Member Avatar for morteza_ipo
0
248
Member Avatar for SUGARRUSH

Hey guys. I've been searching and searching but none of the information I get makes any sense. I have a simple problem. On my checkout page, I allow my customers to select a charity to donate to. I can't however figure out how to get the information from which checkbox …

Member Avatar for diafol
0
202

The End.