64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for OmniX

I have a variable in a variable. I have done this before but it is not working this time. I have it in a for loop so my code is: [code=php] $abc1 = one; $abc2 = two; for($i = 0; $i < 2; $i++) { echo $$abc$i; } [/code] The …

Member Avatar for OmniX
0
127
Member Avatar for web_master

[CODE] #include<stdio.h> int main() { int i ,j ,a[5]; for(i=0;i<=4;i++) { printf("\n\tEnter the %dst value of the array: ", i+1); scanf("%d", &a[i]); } j = a[0]; printf("\n\tOriginal array entered by the user: "); for(i=0;i<=4;i++) { printf(" %d ", a[i]); if(a[i]<a[i+1]) { j = a[i+1]; } } printf("\n\n\tGreatest no. from the …

Member Avatar for varsha0702
0
98
Member Avatar for Confused@JS

I need help positioning my sidebar on my browser. Every time I scroll down the sidebar follows down the screen causing me to lose half the info on the sidebar and only showing what fits in the screen. It has became a really pain in the @ss and I would …

Member Avatar for mikki2
1
221
Member Avatar for depash

I have developped a program using vb6 used by a college to store students scores in diferent courses. My problem is that i want to create a button users can use to search for a specific record using the students admission number. I do not have much knowlegde in finding …

Member Avatar for QVeen72
0
80
Member Avatar for kbrown123

I am reading records from a linked server table, and trying to use the output in the next update statement, not on the linked server. I am assigning it to a declared variable. The file is being updated with NULL, instead of the correct check number. Any help??? Example code: …

Member Avatar for kbrown123
0
100
Member Avatar for Relegant

[COLOR="Green"]This case, [/COLOR] [CODE]case 18302: if (playerLevel[19] <= 1) { guard(); addSkillXP(19, 50); isNpc = true; updateRequired = true; appearanceUpdateRequired = true; else if (playerLevel[19] >= 1) { sendMessage("You need a shapeshifting level of 1 to do this."); } break;[/CODE] [COLOR="Green"]I made it by myself, and it gives 100 errors, …

Member Avatar for VernonDozier
0
95
Member Avatar for Jennifer84

I am replacing 2 words in a textBox with this code. What happens is that the code scans the textBox and finds 2 words: "one" and "onefour". These two words [B]should [/B]be replaced with: [B]onefour[Calculate][Calculate2] one[Calculate][Calculate2][/B] But instead the replacement will look like below. I know why it happens because …

Member Avatar for Jennifer84
0
108
Member Avatar for callie_360

Hi! :) I want to read each line in my file, and determine if each occuring page tag is included in the validPages array...I've gotten everything except when I retrieve a line with a page tag (readLines()), I can't use that line as a string to compare with my array...even …

Member Avatar for woooee
0
125
Member Avatar for kv79

Hi all I am using Dev-C++ . I want , when I press Tab to skip a 3 blank places instead 6 . Thank you for your effort of reading .

Member Avatar for kv79
0
99
Member Avatar for emilio

i'm trying to get random numbers in a loop like this [CODE=syntax]#include <stdio.h> #include <time.h> int getRand ( int a , int b ) { return a+rand()%(b-a+1); } int main() { srand ( time( NULL ) ) ; int i; for(i=0 ; i<6 ; i++) printf("%d\n",getRand(0,9)); return 0; }[/CODE] the …

Member Avatar for emilio
0
118
Member Avatar for Azurea

I've got an issue with lists right now. I've got 2 lists, Checker1 and Checker2, which check for the Ko rule in my game of Go. However, Checker2 should always be checking the board one turn behind Checker1, which checks the board every turn. That way, the Ko rule can …

Member Avatar for Azurea
0
93
Member Avatar for kitsune

Hello, Is there any simple way to add a bar chart in jsp, I have a question and answers tables for a survey and I want to show the result for it like this: QuestionText.............................Result aaaaaaaaaaa............................Yes 70% ------------ ...............................................No 30% ----- Can anyone Help Me....

Member Avatar for jwenting
0
98
Member Avatar for Traicey

I have seen so many classes and inheritance programs but what I cant seem to know is when and why do u end up resorting in this statement [ICODE]#include "NameOfTheClass_h.h"[/ICODE] and I guessed that is when u have separated the class from class main(), that sounds like making your program …

Member Avatar for Traicey
0
129
Member Avatar for SUBHABRATAIISC

If we write a code like: a=['city','village','town','capital'] a1=len(a) a2=range(a1) for x in a2: a3=a[x] print a3 In this code if we want to store the value of a3 it would store last value always. But in any way can we store all the values?

Member Avatar for Ene Uran
0
86
Member Avatar for Tyrfing

Hello, I am trying to install scipy on Ubuntu 8.0.4LTS, and am having some serious issues. I have succesfully downloaded and installed scipy, but when I try and "import scipy" in a program I am returned: ImportError Traceback (most recent call last) /home/tim/Desktop/scipy-0.6.0/<ipython console> in <module>() /home/tim/Desktop/scipy-0.6.0/scipy/__init__.py in <module>() 52 …

Member Avatar for Tyrfing
0
2K
Member Avatar for maydhyam

Hello there, My intentions are to enter the employee id in the search page, and have the results displayed below the area to enter the search criteria with the select box and update button( i only want to update 1 field) here are the codes..... My problem is whenever i …

Member Avatar for nav33n
0
161
Member Avatar for ohhmygod

I got this code here, i wonder why it doesnt put in the file "in.dat" in the same folder. [CODE] #include <stdio.h> #include <stdlib.h> #define N 20 //Number of trials void main(void) { FILE * pFile; float data[N][2]; int i,j ; char overwrite; for(i=0;i <= N ; i++) /* Initinalize …

Member Avatar for Ancient Dragon
0
230
Member Avatar for harcaype

Hi. Can anyone tell me how to find and install IIS? I need it for developing my mobile application with SQL Server Mobile and create a database. Or if you have any suggestions... Do you know any other way on connecting from mobile applications to databases (other than MS SQL) …

Member Avatar for harcaype
0
116
Member Avatar for K?!

Hello I'd like to create a hover effect for JButtons, but i can't find it for the moment. It doesn't have to be antything spectacular, it just has to be visible. Thanks in advance. Greets, K?!.

Member Avatar for K?!
0
9K
Member Avatar for thegrovesy

Hi all, I am in the process of creating a music library, and want to keep the different layers of implementation separate. My current plan, and understanding has my application divided up like this: 1. GUI Layer, talking to... 2. Music object (and implementation) Layer, talking to... 3. Data Storage …

Member Avatar for macu
0
111
Member Avatar for martonx

Hi Everyone, I have a C++ program lesson, but i can't to do it. I have a binary file with structured datas. I have to read the datas, and take into a class (structure array). Here is my code: [CODE]#include <iostream> #include <fstream> using namespace std; struct dolgozo { char …

Member Avatar for martonx
0
104
Member Avatar for n.aggel

hi to everyone, In this semester we are having a class concerning High Performace computing / Parallel processing... In short i have the following questions: --- We are using pthreads and C. I think that i can use pthreads in c++ code but is there any way to use threads …

Member Avatar for n.aggel
0
174
Member Avatar for joshmo

Am trying to extract a string of characters and numbers from a text file into two different data types in a linked list...i.e the if the text file has the data myname 100 i want the "myname" to be stored as a string and then the 100 as an integer..can …

Member Avatar for joshmo
0
3K
Member Avatar for kevin wood

i have created a page which has an iframe held on it i now what to post the data from this iframe and make it available to my other php page. I have researched this a bit and found out it can be done using javascript. the code i have …

Member Avatar for kevin wood
0
103
Member Avatar for Cosa

Hi, i have a function which is supposed to compare two matrices, however i does not work properly. I get this compile warning. [code] warning: control reaches end of non-void function [/code] Here is the function. [code=c++] bool matrix::isequal(const matrix& ob3) { for (int i = 0; i < rows; …

Member Avatar for Nick Evan
0
144
Member Avatar for sudhakary_rao

Hi I have one .aspx page and image.when i scroll down the page the image should come vertically down as page scrolls.

Member Avatar for peter_budo
0
69
Member Avatar for Traicey

I have 2 integers x and y, now I want to read them from the user and the syntax kick me down, I guess u can only read string from the user according to C# syntax rule, I have tried many combinations but none of them are working, so now …

Member Avatar for majestic0110
0
134
Member Avatar for rhand

I have been working on a [URL="http://www.onboardcouriers.eu/verhoijsen/"]Wordpress theme[/URL] for some time now. I got a javascript from the original website. I import it into the Wordpress header.php. But it does not work at all. No floating images as I move my mouse. Nothing at all. Firebug gives me this error: …

Member Avatar for rhand
0
114
Member Avatar for Vai

Here is what I am trying to accomplish: When a user logs in, their username will be displayed... Trouble is I am unsure how to co-relate the username w/ the id... thanks for any and all help.... [code] <?php require_once('core/db.php'); require_once('core/secure.php'); $query = mysql_query("SELECT username FROM admin WHERE id = …

Member Avatar for ryan_vietnow
0
168
Member Avatar for nishanthaMe

Hi all I have a div elent like this [ICODE]<div id="content" style="width:200px;height:125px;overflow:auto;color:#000000"></div>[/ICODE] I fill the div with text dynamically and scroll bars appears. But I want to show tha latest data which fills the div with out scrolling (otherwise the user have to scroll to see the latest data ) …

Member Avatar for nishanthaMe
0
143
Member Avatar for urmybaby

As basis for the assignment, we use a CSV file named country.csv in which information about countries is recorded. This file is posted on the assignment Web page1. The first line in the file is the header line and describes the content of each column. The first value in a …

Member Avatar for kdoiron
0
86
Member Avatar for Maulth

I've posted something along these lines before, but it's a tad bit different this time, hopefully some of you can point me in the right direction. I'm designing a tool that will make adding things to a database easy for people not familiar with SQL, it will basically export a …

Member Avatar for Maulth
0
177
Member Avatar for marti3a3

So I'm trying to create 4 arrays with data input from a .dat file, and for some reason it won't. The file has four columns, and I want four arrays with the info from each column seperate. For some reason, I'm having trouble doing that with the following code (minus …

Member Avatar for marti3a3
0
85
Member Avatar for bhavna_816

I have a table which have person's name as Prefix, firstname, lastname, address as three different columns. I want to get all records when fire a query like SELECT * from Persons where name= 'abcd' I want such query which can search in all three columns, it means abcd can …

Member Avatar for gunso4050
0
152
Member Avatar for puneetkay

Hie guys, Im creating a program that will display the details of every state of India when user will click on that states button. I have two forms: Main.cs = MdiParent form for program. India.cs = Where map of India will be displayed including buttons of every state. So what …

Member Avatar for puneetkay
0
98
Member Avatar for Onixtender

Hi, I've have a problem of printing data from stack, if it's simple words,then stack works just fine,but if I try to push changed data using function(Written by a very intelligent moderator :) ), I get just the same word n times: Intelect Intelect Intelect .... [code] #include<stdio.h> #include<stdlib.h> #include …

Member Avatar for Onixtender
0
182
Member Avatar for tefflox

Please tell me what I'm doing wrong. The sql query is in bold. [CODE]<?php //////////////////////////////////////////////////////////////////////////////// // // SECRET PAGE // // Invokes require_authentication() to ensure that the user is authenticated // //////////////////////////////////////////////////////////////////////////////// require("common.php"); require_authentication(); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xml:lang="en"> <head> …

Member Avatar for nav33n
0
94
Member Avatar for tefflox

I am able to connect to the database and located the table. I am unable to populate the db. Attached is a in image of the phpmyadmin trucks table structure. Please help. I am excited to be so close to getting it right. [CODE] echo '<blockquote><blockquote><blockquote>'; echo '<form method="post" action="/inventory/">'; …

Member Avatar for nav33n
0
154
Member Avatar for Inny

My script resizes images (yes, client side! No, I dont have access to do it server side!) When a topic is posted with alot of images, The script sometimes resizes before all the images load, resulting in images loading after that which are not resized. How can I ensure the …

Member Avatar for Inny
0
234
Member Avatar for harcaype

Hi. I have been figuring out how to deal with my dilemma. I'm developing a mobile application in C# in Visual Studio 2005. And I have a question regarding the adding of listview items from a form to another listview in another form. I have got my application running but …

Member Avatar for harcaype
0
108
Member Avatar for Thew

Hello, I'm trying to use some default (static) members for my class. At first I've created class which looks like this (this is just a small code): [CODE] //rozšírenie materiálu, M (par (ext)) typedef struct ExtendedMaterial { //hmotnosÅ¥ float Substantiality; //krehkosÅ¥ - tuhé látky, viskozita - tekuté látky float Insubstantiality; …

Member Avatar for Thew
0
93
Member Avatar for avtar.sohi

Hi all, I m converting stored proc from sql server to oracle. first have a look sql stored proc. create procedure xyz.. as begin -- i have created one temp table -- then inserted some data into it by select query over some db table. -- then i have another …

Member Avatar for avtar.sohi
0
132
Member Avatar for dougy83
Member Avatar for GPXtC02

New to classes. Getting alot of errors when calling the private member variables (from down in main). Most are telling me either i can't access the private member variable IDs or the other member variables i'm attempting to access (debit, credit, balance) are undefined ('identifier not found'). Also getting 'overloaded …

Member Avatar for GPXtC02
0
129
Member Avatar for mrcniceguy

i created a profile,where after login someones Datas appears. Now i need to put profile comment,that any member can leave a comment to another. So i dont know how To get started especially with how the mysql table could be. Help please!!!!!!!!

Member Avatar for nav33n
0
265
Member Avatar for Barman007

Now this is an assignment for me, but ive spent the last two weeks writing this code day and night, I just cant get it out of my head, I have to beat it lol. So anyway, two days ago I won and completed my program exactly the way I …

Member Avatar for Barman007
0
93
Member Avatar for ceyesuma

[code] String like=searchJTextField1.getText(); query=entityManager.createQuery("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\""); query.setParameter(like, searchJTextField1.getText()); [/code] is there someone that could tell me if this code is right? thanks -Steve

0
67
Member Avatar for knowledgelover

Hi there, is it possible that the args of the OnStart method of the service be passed by reference, more explanation: the main goal is to: start my service from another program, and I need the caller program(which starts the service) to be able to interact with the service( to …

Member Avatar for knowledgelover
0
108
Member Avatar for ceyesuma

If netbeans ide has a queryproperty set to SELECT c FROM Content c How can I change this query to say ..limit the resultset to less records like 10 or 20 instead of the whole database. I am not sure what that SQL string would look like.

Member Avatar for ceyesuma
0
106
Member Avatar for logical69

Ok here is the story, im trying to get a clone script to work and im failing missrably this is mostly due to the fact im still learning everything from php, javascript and linux! (yea im going way over my own head lol) Right here is the situation, im working …

0
68

The End.