64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kipslem

Hello, Please could someone help me on this. I have a button on which when clicked will display the crystal report. This report displays as required but when I want to view the report the second time, there's this error message: "Index 0 is out of range, Parameter name:index". FYI …

Member Avatar for kipslem
0
722
Member Avatar for Jhon E

Hello everyone i'm getting the following error message. [COLOR="Red"]Fatal error: Call to a member function prepare() on a non-object in C:\xampplite\htdocs\Prepared_Statements.php on line 20[/COLOR] My code so far [B]connection.php[/B] [CODE]$db_server = "localhost"; $db_user = "root"; $db_password = ""; $db = "test"; $connection = mysql_connect($db_server,$db_user,$db_password,$db); if(!$connection){ die("Database Connection Failed".mysql_error()); } $select_database …

Member Avatar for Stefano Mtangoo
0
145
Member Avatar for Espenij

Hello I get this message : Notice: Undefined index: id in *****7index.php on line 26 when we go from php4 to php5. My code on line 25-35 is : [code] <?php if($_GET["id"] == "web"){ echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/style.css' media='handheld, only screen and (max-device-width:480px)' />"; echo …

Member Avatar for Espenij
0
8K
Member Avatar for Danny159

Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> …

Member Avatar for twiss
0
136
Member Avatar for CaffeineCoder

Hello; I'm currently working to convert a classic ASP site to ASP.NET. I am getting the error 'Cannot convert type String to System.Web.UI.HtmlControls.GenericHTMLControls' (I'm associating frontend variable to backend). Unfortunately, Google has not been much help on this. Anyone have any pointers on this? An example of this is: Frontend: …

Member Avatar for CaffeineCoder
0
105
Member Avatar for newcoder310

Hi, I'm getting the following while trying to execute my spring program [CODE] 5 Jul, 2011 7:22:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0]; startup date [Tue Jul 05 19:22:08 IST 2011]; root of context hierarchy 5 Jul, 2011 7:22:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions …

Member Avatar for masijade
0
78
Member Avatar for mrbungle

I have a textbox, and it's set to multiline, so a user can enter a few sentences. The problem is, if the user hits the enter button while in the textbox, it's starting a new line. This data is being saved as a text file, and it's causing problems when …

Member Avatar for mrbungle
0
2K
Member Avatar for Dhanesh10

hello everybody, i am using java as front end and ms access as back-end for my mini project, in my database, in couple of the tables there is field which i've declared [COLOR="red"]primary key[/COLOR] for those respective tables and which has type of [COLOR="Red"]autonumber[/COLOR]. so my question is, while inserting …

Member Avatar for Dhanesh10
0
363
Member Avatar for leo88

Hi, I am now doing a window form application which are contains several window form interfaces My question is that : Firstly I enter texts in a text box of interface A (login page) , then I clicks a button to hide A and go to interface B. At B, …

Member Avatar for sametyildirim
0
367
Member Avatar for sadsdw

Hi friends, I wrote a code to build a matrix with specific calculations. When I'm using 3000 elements works well ... But I did a test with 150.000 (150.000 x 150.000) and I had problems. " terminate called after throwing an instance of 'std::bad_alloc' " I'm copying the code part …

Member Avatar for sadsdw
0
2K
Member Avatar for v_janssens

I have a class Node and want to declare an initially unknown number of instances of this class at run-time. First the program determines the number of nodes (num_n) from the user and then I want to define num_n objects. I have crudely got around this by defining a maximum …

Member Avatar for alwaysLearning0
0
215
Member Avatar for rickyfre

I bet someone already asked this but I can't find the thread. I am using windows XP home edition. I loaded python 2.6.6 off the web as it is the same version some of my code is written in. When I click on the idle GUI I get no response. …

Member Avatar for vegaseat
0
105
Member Avatar for davecoventry

Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave

Member Avatar for davecoventry
0
68
Member Avatar for leo88

Hi, I have 2 links within a datagridview. The 2 links are in the same row, let say link A and link B. How to let link A go to Form A and link B go to Form B? [CODE] Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) …

Member Avatar for Stefan_Lam88
0
145
Member Avatar for Vengful

hello im new to python and im just making simple programs(for now) so im doing this guessing game where the user enter a number and tells him if he got it right or not. here is the code [CODE] import random import re print 'This is a guessing game' def …

Member Avatar for Vengful
0
100
Member Avatar for sachinchandora

i have a error in c graphics "segment exceeds _TEXT 64K" i reduce some lines but i have no solution please help me as soon as possible i want to complete my program as soon as possible please help me some one

Member Avatar for Salem
0
1K
Member Avatar for klemme

Hi, In have created a smallm cms, and I would like to offer customers to download it, instead of only getting access to it, if I design a website for them, AND "attach" the backend to the site. How can I create a download function, so that the whole "system"/CMS, …

Member Avatar for diafol
0
99
Member Avatar for _neo_

Is there a way to get current date and time from remote windows machine on linux? On remote windows machine ssh not enabled, there are no powershell. Can we achieve result via telnet or smbclient?

Member Avatar for _neo_
0
2K
Member Avatar for geekme

Is it necessary to install mysql workbench in order to run database based php web apps?

Member Avatar for jrotunda85
0
105
Member Avatar for jamd200

[code=java] /*This program takes two integers as command-line arguments (they are initially strings), and returns the sum, difference (based on the order they're entered in the command line), product and quotient (also based on the order they're entered in the command line) of those two integers. For example, in the …

Member Avatar for jamd200
0
2K
Member Avatar for Xufyan

Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page, i have done this with form action but i want the error to be shown …

Member Avatar for Stefano Mtangoo
0
361
Member Avatar for jmurph333

I need to disable the 2nd item in a comboBox when something happens. How would I go about doing this? Any help is appreciated.

Member Avatar for jmurph333
0
94
Member Avatar for saadismail85

Print stars in console like this using java ? ......* .....*.* ... *...* .. *.....* . *.......* ...*.....* ... *...* .....*.* ......* dot = spaces [B]look to my code just i need to print border not filled shape[/B] [CODE]import java.util.Scanner; public class Stars { public static void main( String args[] …

Member Avatar for stultuske
0
816
Member Avatar for IIM

Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user …

Member Avatar for IIM
0
241
Member Avatar for newcoder310

Hi, Can any1 tell me wht is the problem if i can't find an import in a main class [CODE] import org.springframework.context.ApplicationContext; [/CODE] It says that the import cant be resolved. thanks

Member Avatar for newcoder310
0
78
Member Avatar for yousafc#

What is Wrong in this code [CODE]Select * from Studentinfo Inner Join Admission On Studentinfo.Studentid= admission.studentid where Studentid= '1'[/CODE] Please Help as soon as Possible

Member Avatar for yousafc#
0
127
Member Avatar for bhawna_5nov

I dont know whts wrong with the code... its in java..the error msg is shown while compilation i.e. class, interface , or enum exception.. plzz can anyone help me with this.. [CODE]import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class DiffieHellman extends java.applet.Applet implements ActionListener { …

Member Avatar for javinpaul
0
282
Member Avatar for Xufyan

please look at this code, [CODE]for ($count=$num1; $count<=$num2; $count++){ for ($count1=1; $count1<=2; $count++){ echo $count1; } } [/CODE] why this is never ending loop ? when i run this code my browser hanged, why it is happening ??

Member Avatar for Xufyan
0
98
Member Avatar for stow19

hey all, I know this might seem like a basic question but we haven't really been taught it at university and I was getting curious. Once you've created your program and have all your relevant java classes/package and it has been compiled where do you find the .exe and how …

Member Avatar for stow19
0
201
Member Avatar for masterjiraya

I have 2 forms right now Form1 and Form2 the default setting start up is Form2. Inside Form 2 there was a button that will release the Form1 button using Form1.Show(). I have now the problem. What I want to do now is to close the Form2 without closing the …

Member Avatar for Mitja Bonca
0
201
Member Avatar for annttiigs

Hi all, I want to get the string resource with R refference like R.string... but there is an issue that my class is not an activity. [code=Java]deviceNameEditor.setText(settings.getString(Constants.LOCAL_DEVICE_NAME, <def_val> ));[/code] how can I use the def value setten in the strings by using R.string indicator. since R.string will return a int …

Member Avatar for annttiigs
0
95
Member Avatar for z_zendegi

hi to all I have a dos command that can backup system state in winserver2008,it write it in cmd when i run it and say y to its question but I want to have this command in bat file for a scheduled task that runs daily,I create this task and …

Member Avatar for z_zendegi
0
116
Member Avatar for jamd200

[code=java] /*This is a small GUI application that I made for personal use. It allows you to enter the colors of the bands on a 4-band fixed resistor to calculate the resistance (and tolerance) of that particular resistor. Eventually, I will create a version that deals with 5-band and 6-band …

Member Avatar for jamd200
0
7K
Member Avatar for Supergrass

Hi there, I've this error "Parse error: syntax error, unexpected T_STRING in /home/content/06/8070006/html/wp-content/themes/veryplaintxt/functions.php on line 512". Could anyone please help me take a look and tell me what's wrong with my code? Thanks heaps in advance! :) Sincerely, Gina [CODE]<?php // Produces links for every page just below the header …

Member Avatar for Supergrass
0
2K
Member Avatar for krunalkakadia

hi guys, i m displaying news titles & it's contents using repeater control. pictorial representation: news Title 1 news Title 2 news Title 3 news Title 4 now, when i click on news Title 1,it's content should appear from my database in between news title 1 and news title 2.same …

Member Avatar for Atul Dhiman
0
222
Member Avatar for bigzos

Hey,i am working on a module in vb 10..i have to retrive data from the database between two dates...i have used the following code but not able to get ny output,,nt even an error [code] Imports System.Data.OleDb Public Class Form4 Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr …

Member Avatar for pixma
0
202
Member Avatar for clisen

I'm having issues with a rather simple program that prints a string. I have two .cpp files, main and login, with login.h header file. The problem at hand is that when I want to print the string in main.cpp that was entered from login.cpp - nothing is shown in which …

Member Avatar for clisen
0
331
Member Avatar for Majestics

Can any one give a useful link to learn oracle report server and also how to connect it with java application.... Thank you. Require second question answer....

Member Avatar for Majestics
0
137
Member Avatar for dhruv_arora

I wrote this code and when I run the page I get the parse error :- [CODE]Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\view.php on line 30[/CODE] my code is :- i checked my whole code, i was unable to find the error [CODE]<?php $page_title="View Users"; include("header.html"); include("nav.html"); ?> <div …

Member Avatar for karthik_ppts
0
92
Member Avatar for didi00

Hi everyone. I'm making a shopping cart and I found out that I have a small problem. The currency that I want to use (BGN) is not supported by PayPal. I can use euro but the BGN is almost twice less than the euro. What can I do? This is …

Member Avatar for i-hate-blue
0
126
Member Avatar for TheLittleEngine

So i haven't figured out what the point of constructors are i am just learning C++ and am seriously having trouble with it, i do not get why...well i kind of get default constructors because it initializes the variables but what about a constructor with arguments and the member function

Member Avatar for Stefano Mtangoo
0
214
Member Avatar for rouse

Is there a PHP variable that holds the page title? I would like to get a hold of the title of the page that I at,(The text at the top of the browser) for later storage. Thanks!

Member Avatar for rouse
0
168
Member Avatar for theguitarist

I have to accept three numbers from the user using cin into 3 variables. If the user enters non integers,I must reject it and ask for a new one instead of that. So,here is my attempt: [CODE]int a,b,c; do{ cin.clear(); while(cin.get()!='\n');//remove failure bits,clear stream if wrong input cin>>a; } while(!cin);//while …

Member Avatar for m4ster_r0shi
0
189
Member Avatar for NathanOliver

Hey all, I'm looking to upgrade my compiler and I was wondering if there is a compiler that is fully c++0x supported yet. If not is there one that is mostly supported? I am currently using MSVC++ 2005 express. I would like to stay in the MSVC++ family since I …

Member Avatar for NathanOliver
0
367
Member Avatar for mrbungle

Like the title says, I have about 10-15 rows in a local dataset. I need to take any one row, and make it the "default" (on a button click), meaning to take that row and stick it right at the top so it comes up first. I've been up and …

Member Avatar for mrbungle
0
2K
Member Avatar for Majestics

[code]"insert into invoice(sno,entrydate,invoicedate,companyname,party,station,purchase,avail,sale) " + values("+Integer.getInteger(head.getSerial().getText())+",to_date('"+head.getEntryDate().getText()+ "','dd/mm/yyyy')"+",to_date('"+head.getInvoicedate().getText()+ "','dd/mm/yyyy')"+",'"+head.getCompany().getSelectedItem()+"'"+"'"+head.getParty().getSelectedItem()+"','"+head.getStation().getSelectedItem()+"',"+Integer.getInteger(head.getPurchase().getText())+",1,"+Integer.getInteger(head.getSale().getText())+")"); [/code] SNO NOT NULL NUMBER(38) ENTRYDATE DATE INVOICEDATE DATE COMPANYNAME VARCHAR2(50) PARTY VARCHAR2(50) STATION VARCHAR2(50) PURCHASE NUMBER(10,2) AVAIL NUMBER(1) SALE NUMBER(10,2) Whats wrong in this query.... I am getting sqlException ....

Member Avatar for peter_budo
0
92
Member Avatar for Dingbats

Hello everbody Simply put; [I]rand() is driving me nuts[/I]. I've been trying to get my teeth into Dev c++ (v. 4.9.9.2) for the first time and couldn't find anything anywhere which helped me anymore. Nearly all this code is IDE generated or copied from examples - I'm just trying to …

Member Avatar for Dingbats
0
1K
Member Avatar for dhruv_arora

I wrote this code called delete.php, i have another script called view.php which displays all the users in the database and displays a link to delete that particular record using the get method. In the delete.php file it retrieves the id through get method from the view.php file and deletes …

Member Avatar for dhruv_arora
0
161
Member Avatar for silvercats
Member Avatar for silvercats
0
79
Member Avatar for apanimesh061

I was going through a tut on the internet about Cookies in JS. So, they told to use this function "getCookie" ! I used that ..... but I cannot understand the use of regular expressions ie using document.cookie.split !! 'cause as far as I know a cookie is just a …

Member Avatar for twiss
0
109

The End.