64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for serkan sendur
Member Avatar for macokovac

hello guys i need put banner on 'my account table'. banner should included reflink of member or user who's accessing this page. here is banner picture: <img src="http://i35.tinypic.com/349ciza.jpg" border="0"> and here is all php code of my account table: [ICODE]<?php include_once('header.php'); if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"])){ $user = $_COOKIE["usNick"]; $myDb->connect(); $sql = …

Member Avatar for macokovac
0
176
Member Avatar for krany18

hai friends, i am developing a application like a job portal. but in that i am getting a error whilw i am writng the program.. please clarify my doubt.. the error is: please tell me the how to delete a record from database using asp .net and C#. please send …

Member Avatar for dickersonka
0
118
Member Avatar for leki

I try using this code: [code]File wd = new File("/sx04a1/jakarta-tomcat-5/webapps/maltixa"); String sscp = "scp /sx04a1/jakarta-tomcat-5/webapps/maltixa/index.jsp [email]jipbekok@fff04.ff.ff.es:/sx04a1/jakarta-tomcat-5/webapps/maltixa/index5.jsp[/email]"; p = Runtime.getRuntime().exec(sscp,null,wd); try { p.waitFor(); } catch (InterruptedException e) { e.printStackTrace(); } out.println("Exit value: " + p.exitValue()); BufferedReader reader =new BufferedReader(new InputStreamReader(p.getInputStream())); String s = reader.readLine(); out.println("scp said [ " + s + …

Member Avatar for leki
0
161
Member Avatar for robgeek

Hi everyone, I have worked some more on my code and this time I am getting some error that I am not able to resolve. Please help me. The error says: "initialization skipped by case label." Please show me how to resolve this. Here is the code. The error has …

Member Avatar for robgeek
0
4K
Member Avatar for aamresh1

We tried compiling a code - multiply1.c in the Linux environment by giving the command gcc multiply1.c (we have renamed it) but its throwing errors like :- In function "main": undefined reference to '_gmpz_init_set_str' We are getting 6 to 7 this type of errors. Can you please let us know …

Member Avatar for aamresh1
0
167
Member Avatar for avpy

hi people, i am able to make the following code work if i don't use a destructor: #include<iostream> using namespace std; class CVector{ public: int *x, *y; CVector(); CVector operator+ (CVector); CVector(int,int); // ~CVector(); private: }; CVector::CVector(){ x = new int; y = new int; *x=0; *y=0; } CVector::CVector(int a, …

Member Avatar for vmanes
0
122
Member Avatar for chunalt787

Some of the code has been omitted. I am trying to write a DFS function to traverse a maze. It will eventualy add the nodes to a tree that I will traverse once I get the DFS working. Currently it goes into an infinite loop and I cannot figure out …

Member Avatar for chunalt787
0
608
Member Avatar for slimjimmer

Hi I'm trying to implement malloc into the following file but I am having some difficulty grasping the concept. My code: [code=c] #include <stdio.h> #include <stdlib.h> #include <string.h> #define HALF_PI 1.570639 #define EXPECTED_ARGS 2 #define LOWER_LIMIT 0 float Integrate (float upper_limit, float x[2][10000], float fx[2][10000]); int main (int argc, char* …

Member Avatar for slimjimmer
0
154
Member Avatar for sandawg

When I printout the array contents, it prints null rather than the expected entered data. Will someone please tell me what I am doing wrong? Thanks. My code follows; [code=java] import java.util.Scanner; public class Inventory { public static void main(String[] args) { Scanner input = new Scanner( System.in ); boolean …

Member Avatar for Antenka
0
121
Member Avatar for aparnesh

I have a database of book titles where string values are stored. A php script reads the data and displays them. The problem is happening when a Book title contains the ' character - as apostrophy let's say. One example is the title "The Devil's Alternative". So when I write …

Member Avatar for aparnesh
0
144
Member Avatar for rmlopes

Hello, I implemented the follolwing function: [code] template< int n > struct GetNRands{ static void fillVector( set<int>& v, int max ){ if( n > 0 ){ int f; int pos; do{ f = rand(); pos = f * max / RAND_MAX; } while( v.find( f ) != v.end()); v.insert( pos …

Member Avatar for ArkM
0
138
Member Avatar for Intelrate
Member Avatar for Intelrate
0
98
Member Avatar for punmeister

Hey hey! I'm trying to write a script that finds out if a given program name exists in the OS environments PATH variable (cross plathform). Thing is, I get a NameError, it's probably a simple error, but I've struggling with it the last hour. Any help would be appreciated [CODE=python] …

Member Avatar for punmeister
0
122
Member Avatar for murderotica

Hello there, I've been doing some research about the Outlook.Selection interface and made an application out of it. My goal is to get all of the items in my inbox folder. I have already created a way to get all of them, my problem is to filter each types of …

Member Avatar for murderotica
0
869
Member Avatar for sbv

Hi Friends!! I have done a task of Importing excel in SQL server 2000 using Vb.Net 2003. I have provided Import/Overwrite facility to the User here. For this i used a Combobox. I have inserted values in Combo at design time. From the Property, Items (Collection). In Code i checked …

Member Avatar for sbv
0
112
Member Avatar for morecrab
Member Avatar for morecrab
0
147
Member Avatar for Darkangelchick

Hi guys, I'm currently working on a program to return whether an inputted number is perfect or not. I've found that the formula for the perfect number is If 2n-1 is prime then 2(n-1)(2n-1) is perfect. I've worked out some code, but I'm stuck. [CODE]Def listfactors(n): For 1=2 to n/2 …

Member Avatar for lllllIllIlllI
0
142
Member Avatar for Darkangelchick

Hey guys im doing the NCSS python challenge and I need help!! ok so here's my current problems (p.s. my teach cant even help) PROBLEM 1 ************************ [code]# This is a Python file def fibonacci(n): return (n <= 1) and 1 or fibonacci(n-1) + fibonacci(n-2) def decrypt(s): def helper(s): return …

Member Avatar for Darkangelchick
0
215
Member Avatar for MJFiggs

I dont know why, but this program I wrote is having a problem. it has a problem converting an Ace from 11 to 1 when the players have more than 21. if you could look over this, I would appreciate it. [code] #include <iostream> #include <ctime> using namespace std; double …

Member Avatar for MJFiggs
0
120
Member Avatar for Lukezzz

I am stuck in a problem where I should show a progress in % in a label. I have manage this code and think this should work but the label doesn´t update the % value it only shows "Progress... 0 %". Is there anything I perheps should add to update …

Member Avatar for Lukezzz
0
87
Member Avatar for rexusdiablos

Hi All, I'm using a script that displays a larger image when a thumbnail is clicked or moused over. I need the larger image of the first thumbnail to be displayed by default so that I never have an empty white space on my page. The html page is as …

Member Avatar for rexusdiablos
0
259
Member Avatar for ray_broome

Hi, i'm new to ASP.NET, been using PHP for a while but now getting into ASP.NET/C# and was wondering how i would go about accomplishing the task in the title. I'm still an ASP noob right now so any suggestions/help is welcome. To do something like this normally I would …

Member Avatar for ray_broome
0
323
Member Avatar for cout<<"alias"

Hi there, been working on a small program that will loop a function which adds two integers until the user enters 00, but can't seem to work out the finer details. A little newer to C++, don't need a complete answer but any advice would be much appreciated [code=c++] #include<iostream> …

Member Avatar for cout<<"alias"
0
386
Member Avatar for Tekito

I'm not quite sure how to tackle this problem. I have a form that displays the properties of a class. I have events for all the properties so the form gets updated automatically when the properties change. However, upon initializing a class, these events do not get called, and so …

Member Avatar for Tekito
-1
373
Member Avatar for Shinedevil

[code] string MAP[11][11]; MAP[0][0]= "|I|"; MAP[0][1]= "|I|"; MAP[0][2]= "|I|"; MAP[0][3]= "|I|"; MAP[0][4]= "|I|"; MAP[0][5]= "|I|"; MAP[0][6]= "|I|"; MAP[0][7]= "|I|"; MAP[0][8]= "|I|"; MAP[0][9]= "|I|"; MAP[0][10]= "|I|"; //1 MAP[1][0]= "|I|"; MAP[1][1]= "|R|";//thing MAP[1][2]= "|T|";//thing MAP[1][3]= "|F|"; MAP[1][4]= "|F|"; MAP[1][5]= "|F|"; MAP[1][6]= "|F|"; MAP[1][7]= "|R|"; MAP[1][8]= "|R|"; MAP[1][9]= "|G|"; MAP[1][10]= "|I|"; [/code] This …

Member Avatar for MattEvans
0
123
Member Avatar for joeblob17

I am importing object files and making tables from the for a project due tommorow night. The function works fine when I use it the first time i.e. input pro1.txt, but when I call the function again and input pro2.txt as the file name my program crashes. All of the …

Member Avatar for joeblob17
0
87
Member Avatar for schmidty169

Here are my parameters to follow: Every Account at the bank keeps track of a balance. In addition, each Account allows users to deposit and withdraw money. Accounts are subdivided into: SavingsAccount. This type of account has an interest rate associated with it. This rate is used at the end …

Member Avatar for schmidty169
0
269
Member Avatar for javaAddict

Hi there, Does anyone know any good books for Struts 2? I have tried reading: Struts 2 In Action, but I wasn't very thrilled about it Thanks

Member Avatar for javaAddict
0
93
Member Avatar for bpacheco1227

I'm having problems with if statements present value (PV) should be no larger than $10000 interest rate is not higher than 10 and no less than 2 and number of years at least 3 I've tried the if statements with error messageboxs but I was getting confused with all the …

Member Avatar for bpacheco1227
0
121
Member Avatar for cog_bn

When I run the code, what's supposed to happen is that when I input three numbers separated by spaces (e.g. "[i][u]23 4 5 <enter>[/u][/i]"), it outputs "[b]no more input\n\nReady\n[/b]", when I input four or more numbers (e.g. "[i][u]23 4 5 34 65 <enter>[/u][/i]"), it outputs "[b]is more input\n\nReady\n[/b]": [code] #include …

Member Avatar for cog_bn
0
184
Member Avatar for bajanpoet

How do I get a textbox to automatically update with information when I select an item from a combobox? [icode] txtCustID.Text = Custds.Tables(0).Rows(cboCustomer.SelectedIndex).Item("custno")[/icode] is what I came up with, and it populates properly when the combobox is first loaded up, but if I select another item, the text boxes don't …

Member Avatar for bajanpoet
0
114
Member Avatar for markaman

I've tried this multiple ways, the latest below. Maybe I'm on the wrong track. Thank you. [code]<?php do { ?> <?php [COLOR="Red"]$class='class="other"';[/COLOR] ?> <?php if($row_rsFrontPageAds['AdLink']) echo "<a href=\"" . $row_rsFrontPageAds['AdLink'][COLOR="Red"]"\"".$class."\">"[/COLOR]; ?> <img style=" " src="<?php echo $row_rsFrontPageAds['AdPath']; ?>"alt="" max-width="" border="" class="imgright1"/> <div align="justify" class="style48" > <?php if($row_rsFrontPageAds['AdCaption']) ?> <?php echo …

Member Avatar for markaman
0
75
Member Avatar for CodeBoy101

I was wondering how do you countdown to a given date, like for and enevnt or something. Let's say you know the target date is let's say Christmas and you have the current date, how do I calculate how many days are between them?

Member Avatar for CodeBoy101
0
135
Member Avatar for squidd

Another problem I am looking into is the following: How does one use a command button to run private sub's (again) or (at all)? For instance if a website isn't available at the exact moment that it is being checked for certain information on it. I have it set to …

Member Avatar for kain_mcbride
0
151
Member Avatar for zatin

I have a Person Class, binarySearch needs to be performed on surnames. I need help with binarySearch algorithm. This is what I have so far: public class Person implements Comparable { private String firstName; private String lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for antwan1986

Hi everyone and thanks for reading. I'll give you a quick insight into my project and desired goal. I've a client who wants a purchase order system that will send purchase orders in the form of emails, and log them into a database. PHP and SQL are my core skills …

Member Avatar for jonnyhitek
0
157
Member Avatar for ronan_40060

Dear Experts In our application the values that are sent from FRONT end( Java) are stored in a C++ Structure on Unix box and then a remote procedure call is made . To store the values that are coming from front end , Im allocating the memory using operator new …

Member Avatar for ronan_40060
0
308
Member Avatar for jbennet

Okay, i have two classes. One needs to access (public) methods within the other . If i declare [code]ClassB objectName = new ClassB(); [/code] in one method of class A , then use objectName.methodname() in that method then it works fine. Butif i then try and call objectName.methodname() from another …

Member Avatar for masijade
0
103
Member Avatar for ttano173

I need to write a program that asks the user to enter a string and then ask the user to enter a character. The following steps each need to have separate functions... • Check the validity of the character • The program should display the index number of the character …

Member Avatar for ttano173
0
372
Member Avatar for stevehart808

Hi everyone, Any ideas how to change this code so I can have a square thumbnails instead of always the same width but not height? Thanks [code] function CreateSiteThumbnail($srcFile, $destFile, $width, $quality = 100) { $thumbnail = ''; if (file_exists($srcFile) && isset($destFile)) { $size = getimagesize($srcFile); $w = number_format($width, 0, …

Member Avatar for stevehart808
0
229
Member Avatar for ALAZHARY

Hello, everybody. first, look at the following code: [CODE]#include <iostream> 1 using std::cout; 2 using std::endl; 3 using std::cin; 4 5 double* treble(double); 6 7 int main(void) 8 { 9 double num = 5.0; 10 double* ptr = 0; 11 ptr = treble(num); 12 cout << endl 13 << "Three …

Member Avatar for ALAZHARY
0
655
Member Avatar for zanzo

I have two input textbox with the same name, when submiting the page I get only the value of the second textbox. how can i get the value of both fields???

Member Avatar for Aamit
0
121
Member Avatar for XxAaronxX

Hey I am trying to teach myself C++ and i am having trouble with a measurement converter I am pretty sure my problem is in the line [CODE]Yards = Meters * 1.094;[/CODE] but i don't know how else to write it, this is my code: [CODE]#include <iostream> namespace std; int …

Member Avatar for XxAaronxX
0
100
Member Avatar for Shanti C

Is there any possibility to do online chatting with php. In clear, if we post our message ,the other person for whom we post will get that message with out inserting that message into the database... Can any one please help me out... Thanks...

Member Avatar for shivjamesh
0
519
Member Avatar for patkhor

Hi, I'm using fgets() to read lines of text file and display them. The fgets() is in an infinite loop. The problem occurs when I remove lines from text file while program is running. The lines count is correct, but the program display the old content of the file up …

Member Avatar for patkhor
0
104
Member Avatar for Pgmer

Hi all i need one help. i have a text file something like this date time employee name Department id Employee id Jan 2007 12 pm abc 001 676666 ''''' ''''''''' '''''' '''''''''' ''''''''''''' ''''''''''''' '''''' '''''''''' '''''''''' '''''''''' Feb 2007 9am xyz 005 434367 all are tab delimited and …

Member Avatar for Pgmer
0
168
Member Avatar for kempablavitt

Hi! I need help with a memory game. I dont know how to do when I want the users choice to appear. The function guessing. I want the user to first write e.g. A1 and then B2. and the doldmatris() is the one with the words. Then the start function …

Member Avatar for Murtan
0
270
Member Avatar for gp04lch

hi, just added an mdi form into a tabpage with the following code: [CODE]frm_ASN f_New = new frm_ASN(0); f_New.Dock = DockStyle.Fill; f_New.FormBorderStyle = FormBorderStyle.None; f_New.MdiParent = this; this.components = new System.ComponentModel.Container(); ExtremeTabPage tab = new ExtremeTabPage(); tab.Text = f_New.Text; tab.Name = f_New.Name; tab.Controls.Add(f_New); this.Text = "[" + f_New.Text + "]"; …

Member Avatar for gp04lch
0
122
Member Avatar for VBNick

hi, I'm using this bubble sort to sort the elements in my array right now, but I need something faster. [code=cplusplus] bSorted = false; while(!bSorted) { bSorted = true; for(int e = a_count - 2; e >= a_lbound; e--) { if(a_edges[e + 1].B < a_edges[e].B) { bSorted = false; tmpEdge …

Member Avatar for VBNick
0
179

The End.