199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jhbalaji

I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me …

Member Avatar for diafol
0
165
Member Avatar for onosan

Hi, first of all, sorry for my english, but I´m having a problem and I can´t resolve it. This is part of my jsp code: [CODE]<% if( session.getAttribute("usuario") == null ) response.sendRedirect("index.jsp"); ArrayList pacientes = new ArrayList(); String mensaje=""; String dni="", nombre="", apellido="", email="", sexo="", telefono="", fechanacimiento="", obrasocial="", codigo=""; String …

Member Avatar for javaAddict
0
1K
Member Avatar for prabh94

what is FPE? how do i correct this in my program....tried everything...:sad: [code]#include<iostream> using namespace std; int factorial(int a) {int f=1; for(int i=1;i<a+1;i++) { f*=i; } return f; } int main() { int factorial(int); int n;cin>>n;int x=n/2,y=n%2,d,e,f,sum=0; for(int i=0;i<n;i++) { d=factorial(x+y);f=factorial(y); if(x==0) { e=1; } else { e=factorial(x); } if(y==0) …

Member Avatar for jaskij
0
461
Member Avatar for myrongainz

btw this is a part of a battleship code i want to know what the integers a,b,c,d,e,f... do I know this has something to do with placing ships randomly but it is a little complexed for me. I'd appreciate it if someone took their time to explain it [CODE]int placeship( …

Member Avatar for WaltP
0
368
Member Avatar for seredi

i) My Table contains no of columns and a jcheckbox i the last column. ii) I am using a combobox to select certain value. iii) based on the value of combo box the jbutton loads the data into the table. iv) when i [B]reload[/B] the data into the table, the …

Member Avatar for itexamstube
0
782
Member Avatar for SeniorAlexandro

Hi, I have been trying to change the highlight color when the mouse gets on it of the stripmenu...how do I do that? Thanks in advance.

Member Avatar for Oxiegen
0
3K
Member Avatar for jrosh

I am using IIS 7.5 and ASP MVC3 . I have used a third party forum in my site (with username passwords). when user tries to access the forum for the 1st time it gives 302 error and shows the redirect link without redirecting to the forum. After the first …

Member Avatar for geniusvishal
0
195
Member Avatar for emokidzz

[CODE]#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int selectHero(); void Str(); void Agi(); void Int(); void Kunkka(); int Item1(); int Item2(); int ChooseI(); void NormalAtk(); void AInormalAtk(); void Choice(); void Attack(); void Skill(); void Defend(); int Run(); void AIchoice(); void AIattack(); void AIskill(); void AIdefend(); int AIrun(); void …

Member Avatar for samuelgray
0
405
Member Avatar for deecoup

Hii Respected Forum members can anyone solve my problem what i want content restriction based on user role and sidebar category based on user Role i have three type of user role Beginner,Intermediate and Advance... Beginner Role: Can Read only seff Blog Intermediate: can Read self and Beginner Blog Advance …

Member Avatar for deecoup
0
226
Member Avatar for techlawsam

I want to figure out how this loop sequence how would the computer execute this loop by going through all the steps in the picture attached.

Member Avatar for anthonyjpv
0
150
Member Avatar for pseudorandom21

Here is a sort of description to my yet-unimplemented AI agent to play tic-tac-toe. It doesn't have to win, it just has to work, and my description of it has to be good. Tell me what you think: [code] /* "RATION_AL" The goal of my agent is to implement an …

0
147
Member Avatar for fastali

[CODE]char *ReadFile(string& filepath) { string buffer=""; char temp_char; ifstream file; file.open(filepath); while(!(file.eof())) { file.get(temp_char); buffer+=temp_char; } size=buffer.length(); char *result1=new char[size]; for(int i=0;i<buffer.length();i++) { result1[i]=buffer[i]; } file.close(); return result1; }[/CODE] code looks pretty normal right? but when I run it with the rest of the program this happens... [url]http://imageshack.us/photo/my-images/267/chararray0001.jpg/[/url] [url]http://imageshack.us/photo/my-images/28/chararray0002.jpg/[/url] [url]http://imageshack.us/photo/my-images/11/chararray0003.jpg/[/url] …

Member Avatar for fastali
0
144
Member Avatar for RomeoX

Hi everybody, Actually I'm trying to do small form that has a textbox for BARCODE which when I scan an item it will add on my listview but I recieved this error that I don't know what went wrong in my code "System.NullReferenceException: Object reference not set to an instance …

Member Avatar for hericles
0
160
Member Avatar for rue64ja

Hey all, I've finally embarked on my journey of Mobile app development in java and I've ran into a stop sign already, lol. So I am working with the latest stable release of NetBeans, totally new to it, And I am working with a macbook (leopard 10.5.8) yeah I've had …

Member Avatar for rue64ja
0
155
Member Avatar for LogicalOutlier

[CODE]public class Grades{ public int scoreTotal; public int numScores; double average; static String file = "randomNumbers.txt"; int lowest; int x; int temp; public static void main(String[] args) throws FileNotFoundException{ int scoreTotal = 0; int numScores = 0; double average = 0; int lowest = -1; int temp = 0; Scanner …

Member Avatar for NormR1
0
192
Member Avatar for gennesis

Hi a have 4 tables [ICODE]Table A ID | Data 1 --------------- 1 | A 2 | W [/ICODE] [ICODE]Table B ID | Data 2 ----------------- 1 | B 1 | C 2 | X [/ICODE] [ICODE]Table C ID | Data 3 ---------------- 1 | D 1 | E 1 …

Member Avatar for Ezzaral
0
316
Member Avatar for Lillylionhert

I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way …

Member Avatar for Lillylionhert
0
132
Member Avatar for LogicalOutlier

"Draw a grid of 20 streets horizontally and 20 streets vertically. Represent the simulated drunkard by a dot, placed in the middle of the grid to start. For 100 times, have the simulated drunkard randomly pick a direction, move one block in the chosen direction, and draw the dot. Use …

Member Avatar for NormR1
0
736
Member Avatar for Youg

I think it's just ging to be something stupid that I've missed since the program itself runs, though doesn't solve the decrypted text. I've included the text from the decrypted file below the code and any help would be great. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Frequency_Analysis …

Member Avatar for phorce
0
486
Member Avatar for sidra 100

hi m using php n mysql m trying to merge two tables of same database and then print them but somehow it is not working it gives me the error my code is [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $date= $_POST['date']; $shift_num=$_POST['num']; $query="SELECT shift_id FROM shift WHERE shift_no='$shift_num' AND date='$date'"; $result=mysql_query($query); …

Member Avatar for cereal
0
111
Member Avatar for usmansajid

Hi there guys, I seem to be having a problem with my java code. Scenario; I have an array, this is generated according to the user; entering 200; will give him 200 numbers. These numbers are supposed to be semi sorted. To achieve this i created a random array, then …

Member Avatar for hfx642
0
1K
Member Avatar for domatessuyu

Hey, i want to enter a number by user. [CODE]printf("Enter a number: "); scanf("%d",&number);[/CODE] but,user enter text.i mean: [B]Enter a number:[/B] One Now,i want to convert this text to number. [I]I hope,i tell my problem.Sorry my bad english.[/I]

Member Avatar for domatessuyu
0
168
Member Avatar for bettybarnes

Hi i'm a newbie in pl/sql and i need some help from the experts. I'm a vb programmer. Just want to ask you how do you do this in pl/sql? If I log in on my account my username should appear in a textbox. From this LoginForm I have 2 …

Member Avatar for hfx642
0
253
Member Avatar for jaskij

The program is supposed to compute the values of [URL="http://mathworld.wolfram.com/GammaFunction.html"]Euler's Gamma Function[/URL] using an infinite product (formula #15 in the link), and it does so decently for low values, but the error gets too big for bigger values. Using both Mathematica and Maxima for reference this is what I get …

Member Avatar for jaskij
0
212
Member Avatar for Lillylionhert

please disregard this as i have figured out what was going on. i will delete this as soon as i know how.

0
116
Member Avatar for DarthPJB

Ola' daniweb, long time no see. I've been absent for a while, mostly due to not having any problems to ask about, but also because I got one of those annoying 'job' things ^_^. Anyhow, I'm not terribly familiar with C# (being from c++ land), however I've got to use …

Member Avatar for thines01
0
816
Member Avatar for person192

Hi daniwebbers, I am a newbie learning java and keep getting a "cannot find symbol" error when I try to compile my program. I've tried searching but I don't really know what search terms I should be using in this case. Can anyone see the problem? [CODE]import javax.swing.*; import java.awt.event.*; …

Member Avatar for peter_budo
0
218
Member Avatar for phorce

Hello, I'm creating a Matrix, that the user can manually define the rows and columns.. (This will be defined in a class) But, I'm having trouble resizing the vector to what is set in main.. Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h #include <vector> using namespace std; …

Member Avatar for VernonDozier
0
2K
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(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 …

Member Avatar for DeanMSands3
0
181
Member Avatar for stereomatching

I need to make the last 5 bits of the unsigned int become zero(1111_1111 to 1110_0000) There are two solution [code] unsigned int number = 0xFFFF; unsigned int temp_one = number & (~0x1F); unsigned int temp_two = number >> 5 << 5; [/code] which one is faster? I write a …

Member Avatar for mrnutty
0
122
Member Avatar for saneeha.nust

I want to decrypt the bootmgr file on my system.. I want to use the unprotect() method... I need to know that is it possible to do it with unprotect(), being the administrator of the machine.. And what should be given as the entropy value? Should the entropy value be …

Member Avatar for BobS0327
0
139
Member Avatar for Jigs28
Member Avatar for Momerath
0
1K
Member Avatar for vedro-compota

Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one …

Member Avatar for vedro-compota
0
221
Member Avatar for jobojo

Using VWD Express 2008, GoDaddy Hosting, SQL Server, ASP.Net VB I am very new to ASP.Net and have been working on a site and at one point, everything worked properly on local server. However, I have uploaded the site to GoDaddy hosting and the log-in function of the site does …

Member Avatar for hericles
0
281
Member Avatar for Malraux

Hello I have a sequence that looks like this: 60211401dc070000 which is a string (it was build through a series of concatenations and conversions) How can i just tell him that it is actually a hex ?? without modifying it's value... Thanks! Have a nice day

Member Avatar for Lucy Four
0
322
Member Avatar for LacyMacy

[CODE]//So I'm writing this program that converts change into smaller denominations. //For example .97 would be 3 quarters, 2 dimes, 0 nickels, with 2 remaining. //The program compiles and runs but it's not the completely correct output. Can //anyone help. //Converts change into small denominations. #include "stdafx.h" #include<iostream> #include<conio.h> using …

Member Avatar for Lerner
0
206
Member Avatar for gerchi152

Hi! I have this code in my program [CODE]sqlstat= "select bookNum from booktitle" sqlstat2="select bookNum, bookName from booklist where bookNum not in " & sqlstat & "and bookAuthor like '" ListBook.SelectedItem & "'"[/CODE] but it has "Incorrect syntax near the keyword 'and'" error... please help me with this... response is …

Member Avatar for gerchi152
0
88
Member Avatar for Majestics

I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution.

Member Avatar for mKorbel
0
313
Member Avatar for siaswar

There is a threaded bst class program. I want to have a delete function for this class. every time I tried to write, not work. how can I have a delete func as simple as other funcs. I googled a lot but all codes are written with structs not with …

Member Avatar for WaltP
0
119
Member Avatar for zachattack05

I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything …

Member Avatar for thines01
0
85
Member Avatar for newbie26

please help me!!! im restarting the mysql server from putty: Empty pid file /var/lib/mysql/mysqld.pid for /usr/sbin/mysqld when i checked mysql status, unused running unused running what's the problem?? im using putty in configuring mysql server thanks in advance.

Member Avatar for Ezzaral
0
84
Member Avatar for jbrunet

I have a DLL file written in C++, using Microsoft Visual Studio 2008. The socket class coding is an adaptation of [url]http://www.adp-gmbh.ch/win/misc/sockets.html[/url] and the whole thing works when compiled as a 32 bit DLL, but the Internet connectivity does not work when I compile it as a 64 bit DLL. …

Member Avatar for jbrunet
0
206
Member Avatar for sacarias40

Hey Guys, I'm looking for the best way to model my noSql Database to allow for user notifications and activity stream. what would the flow to something like this be? I don't want to annoy the user with 1000 notifications if they don't need that. Activities and Notifications will include, …

Member Avatar for sacarias40
0
131
Member Avatar for moone009

I cannot figure out why this will not execute. For somereason it does not like my inner join I believe but it works perfectly in management studio. Any ideas? [CODE] Dim column_1 As String Dim column_2 As String Dim column_3 As String Dim TotalCol As String Dim D As String …

Member Avatar for adam_k
0
107
Member Avatar for hsayid

[B]Parallel Resistance[/B] i am trying to input and calculate this for any given number of resistors and any value of the resistors. the formula is [B]1/R= 1/R1+1/R2+1/R3.........+!/Rn[/B] Could someone tell me how to input this into C++ could u explain a little on how to do this aswell. Thank you …

Member Avatar for studentba065
0
6K
Member Avatar for visweswaran28

Hi, I want to convert Single Column values to Row. Table Original Content: Code Amount Expenditure 10027 5000.00 LOCAL CONVEYANCE 10027 320.00 LOCAL CONVEYANCE 10116 1589.00 TRAVEL EXPENSES 10095 350.00 LOCAL CONVEYANCE 10095 1215.00 TRAVEL EXPENSES Expected Output : Code LC TE 10027 5000.00 NULL 10027 320.00 NULL 10116 NULL …

Member Avatar for BitBlt
0
187
Member Avatar for Kinetic

I am creating a website that will display the web in an inline frame. I want to be able to drag links from the frame to a text element that acts as an address bar also located in the page. When the items are dragged and dropped into the address …

Member Avatar for fobos
0
116
Member Avatar for Cupidvogel

Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but …

Member Avatar for d5e5
0
284
Member Avatar for Macko888

Hey Peeps! Im not too familiar with jQuery, Ive been wanting to make a tooltip for a "search result grid", each trigger should have a unique comment in the tooltip. so say for instance i have a php call like so: [CODE] <?php $query = mysql_query("SELECT * FROM `Cars` ORDER …

Member Avatar for fobos
0
191
Member Avatar for cangan

Hi list, Three functions use the following items vector. Where/how should i put the vector to make this possible ? Any reference to related sources will be appreciated. [CODE] vector< vector<int> > items ( 6, vector<int> ( 6 ) ); [/CODE] P.S I tried to make it static but it …

Member Avatar for cangan
0
125

The End.