64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for coroll

Hi all, when i execute it gives me this exception. I am trying but i coudnt slove. Plz help me. InvalidOperationException ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. it points to this line -> "int executed = com.ExecuteNonQuery();" this is my code: [CODE] try …

Member Avatar for coroll
0
162
Member Avatar for somon

Here is the thing, as you might know AdMob has a `AdSize.*` function, where u put `Banner` to show banner ads, and AD_banner` for tablet banners, what i want to do is take a screen size of a device so that i could throw it in my if statement and …

Member Avatar for peter_budo
0
194
Member Avatar for Angle90

Hello everyone, I need help here, using C# 2008 Express i created a mini internet browser that runs perfectly, but i want the mini browser when launched to load a local .html file "welcome.html", so far no joy, can anyone put me through please, I just want a mini browser …

Member Avatar for Angle90
0
111
Member Avatar for vanpersie

Hi With the following script [CODE] <html> <body> <?php $server = "localhost"; $username= "root"; $password ="mysql"; $connect_mysql=mysql_connect($server,$username,$password); if($connect_mysql) { echo "Connection Established"; $mysql_db=mysql_select_db("mysql"); if($mysql_db) echo "<Br><Br>Connected to database <BR><BR>"; echo "<Table>"; echo "<TR><TH>Employee_ID</TH><TH>Employee_Name</TH></TR>"; echo "<DBQUERY q>select emp_id,emp_name from employee"; echo "<DBROW><TR><TD><? q.emp_id></TD><TD><? q.emp_name></TD></TR> "; echo "</DBQUERY>"; echo "</TR>"; echo "</Table>"; …

Member Avatar for IIM
0
108
Member Avatar for johndohmen1963

Hi how do i update a selected column with numbers ? 001 002 003 004 005 and so on when i delete a row shall we say 003 i have then the numbers 001 002 004 005 thats not the problem the problem is when i insert a new image …

Member Avatar for johndohmen1963
0
110
Member Avatar for azegurb

hi all, i have search form that retrieves data from database. and i have select options. when i choose with only [CODE]select option[/CODE] it can populate data from database. but i want to retrieve data from database with both input tag (by typing into it) and select tag it cannot …

Member Avatar for azegurb
0
195
Member Avatar for mrbungle

I'm having a hard time understanding this. I get what multithreading is- allowing a program to run more than one thread to improve performance, by splitting up some of it's resources. So I'm at the point in my app where I need to use it. I need to upload some …

Member Avatar for codeorder
0
159
Member Avatar for MareoRaft

when I... [CODE]double a = 0.00000001; cout<< a <<endl;[/CODE] The computer outputs 1e-07. I want to force the computer to write it as 0.00000001 thanks! ;)

Member Avatar for MareoRaft
0
201
Member Avatar for rooneey10

Hi I'm trying to read a text file by use a array for an interactive map. In the text file I stored shop names such as: Label2.Tag = "test" Label3.Tag = "House" When I hover over a label it will display the name in another label such as "lblShowName". So …

Member Avatar for codeorder
0
105
Member Avatar for rpv_sen

Hi I am trying to display the records Horizontally from my 3 different table 1. place table - n number of place 2. Item name 3. Item in different place i want to display the above report as in the attachment. please help me to resolve the issue [CODE]<table width="100%" …

Member Avatar for rpv_sen
0
2K
Member Avatar for Ichcha

[CODE] set datefirst 6 datepart(wk,'2011-01-12') [/CODE] yields 2. I would like to derive 2011-01-08 from this number. please help.thanks in advance.

Member Avatar for Ichcha
0
115
Member Avatar for mikefromchitown

Hi, I'm trying to use a variable to import a text file. Is it possible to change the path and filename below to a variable? I would like to change "L:\GEAM Data.txt" to a variable "fname", which a user previously entered using Application.GetOpenFilename. [CODE]With ActiveSheet.QueryTables.Add _ (Connection:="TEXT;L:\GEAM Data.txt", _ Destination:=Range("A1"))[/CODE] …

Member Avatar for ibancracker74
0
126
Member Avatar for iamthwee

Hello my fellow friends. I'm in need of help. I'm just no good with Javascript. What I have is the following... [url]http://vadikom.com/demos/poshytip/#async-simple[/url] Now it works well. But you have to create a new class for EACH toolip on the page and reference it to its class id. WTF? Anyway to …

Member Avatar for Airshow
0
113
Member Avatar for jacksantho

I have a php script with a form that insert data in a mysql db and when I click on submit I would like the page to refresh after the insertion, how can I do that? it's a php script that display data from a mysql db, and the submit …

Member Avatar for jacksantho
0
188
Member Avatar for pro_learner

Guys,i have to develop a simulator for Merge sort algo in java.I'm familiar with Java.But i have no idea how to do that.Java applet is easy? or it can be done as a Desktop app.My idea is to do as a desktop application.The programme should allow user to input a …

Member Avatar for pro_learner
0
167
Member Avatar for facarroll

Here is the code I am trying to make work. As you can see, the code as it stands will call a javascript window. All of that works well. I now want to add the lines that are commented out, in order to make the window display conditionally. I have …

Member Avatar for facarroll
0
123
Member Avatar for james6754

Hello, I am looking for some information about how high level languages communicate with the lower levels of the computer. Hope this makes sense thanks.

Member Avatar for james6754
0
238
Member Avatar for megachip04

I'm trying to set up a simple little rating system for videos on a website. If you push + it adds 1 and if you push - it subtracts 1. I've got it working just fine. However, the way i'm checking to see if you've rated it already is by …

Member Avatar for Stefano Mtangoo
0
249
Member Avatar for sathya88

hi... am develop simulator project...using java (java run time environment) for that can use applet method or java gui frame method.. suggest me..

Member Avatar for sathya88
0
217
Member Avatar for Deathmachine

I restart a project of mine which use mysql, I used xampp in the past to test the code on the mysql server so I update to lasted version but a piece of code that is identical and was working, I now get an error in [U]the class check in …

Member Avatar for Deathmachine
0
168
Member Avatar for Ootred

I am very new to php and mysql. I have read and re-read many forum posts on this subject, but I just cannot figure this out. I have been at it for almost two weeks now. This is my hope: Load images and captions from a database into an html …

Member Avatar for cereal
0
394
Member Avatar for heshanm

Hi all, I want to add an amend functionality to my system. Therefore i need retrieve data from 2 different tables and display it in a single form. [B]account_details [/B]( [B][U]account_number[/U][/B], full_name,____) [B]account[/B] ( [B][U]account_number[/U][/B], name_with_initials,____) When i try to retrieve data from these 2 tables,output comes as an empty …

Member Avatar for heshanm
0
183
Member Avatar for zachattack05

When I need to serialize things to a byte array I usually write the array to a MemoryStream first then use the binary formatter to serialize it to whatever (file, another byte array whatever). The question I had was, can I just serialize a byte array instead of converting it …

Member Avatar for zachattack05
0
108
Member Avatar for Muralidharan.E

Hi friends, What is the main benifit of using GWT in web applications? Is there any popular sites which has been developed by using GWT? Which is the best website to learn about GWT with easy examples? Thanks in advance !

Member Avatar for Muralidharan.E
0
141
Member Avatar for Man1919

hi, i'm starting to learn vb.net, and i trying to make some special translating program, its need to translate hebrew text into special letter sequence. for example: the text input are: [ICODE]בניית ביניינים מתקדמים[/ICODE] (which its means [ICODE]Construction of advanced buildings[/ICODE]) And the text output are: [ICODE]BPJJZ_BJPJJPJM_NZWDNJM[/ICODE] according to the …

Member Avatar for Man1919
0
438
Member Avatar for Na'Vi

Hi, I'm having trouble understanding pointers and arrays. [CODE] course[] = "Numerical Methods"; printf("%c %s\n", course[6], course); printf("%c %s\n", course[6], &course[0]); [/CODE] I don't understand how the second print statement prints the same thing as the first. How does &course[0] print out the entire array? I thought it was just …

Member Avatar for Narue
0
80
Member Avatar for unaiseek

[code=sql] select accno.tbaccession,classno.tbaccession,bookno.tbaccession,title.tbaccession,author1.tbaccession,status.tb_issue from tbaccession cross join tb_issue where title.tbaccession = '" & Trim(ListBox1.Text) & "';[/code] this code does not work, pls help

Member Avatar for debasisdas
0
101
Member Avatar for nji2rhyme

Hi, I have a code which runs a check. User inputs values into textboxes in inputform, then runs the check, and the msgbox is displayed. if msg is yes then program continues, else I want it to return to the input for to change values in textboxes. How can I …

Member Avatar for Netcode
0
94
Member Avatar for miac09

Hi, I have posted an example code to report overlaps between segments in two lists based on their start and end coordinates. The problem is that the while loop is breaking after 'True' and won't iterate through the lists. So, in the example lists it will only return (True, 0, …

Member Avatar for TrustyTony
-1
228
Member Avatar for aldeene
Member Avatar for Purkinje

I have a question about function-based decorators. When I make the first call to sqrt(), I enter the decorator function, which I understand. However, every subsequent call to sqrt() only calls the temp_func, not the actual decorator again. I thought decorators were called every time the method is called, but …

Member Avatar for Purkinje
0
195
Member Avatar for suraj_p

When i run this program it takes more values and prints less values.... this runs on Dev C++([url]www.bloodshed.net[/url]) [CODE]#include<iostream> using namespace std; #include<conio.h> int main() { int arr[5][5],i,j,k,l; cout<<"Enter matrix row wise"; for(i=0;i<=3;i++) { for(j=0;j<3;j++) { cin>>arr[i][j]; } } for(k=0;k<3;k++) { for(l=0;l<3;l++) { cout<<" "<<arr[k][l]; } printf("\n"); } getch(); } …

Member Avatar for suraj_p
0
179
Member Avatar for ramjeev
Member Avatar for ztdep

[CODE]// // Media.h define the class cell // #ifndef MEDIA_H #define MEDIA_H #include<vector> #include<string> using namespace std; class Media { private: // media name string name; // the density vector vector<double> density; // the capacity vector vector<double> cp; // the thermal conductivity vector vector<double> thermalConductivity; // the viscorsity vector vector<double> …

Member Avatar for mike_2000_17
0
8K
Member Avatar for AngelicOne

I have a form that is being validated using PHP server side scripting. To show multiple errors, I store it in an array and used foreach to loop through the values and echo it for dislay. I thought i'm finished using PHP validation but I noticed that everytime I submit …

Member Avatar for urtrivedi
-1
180
Member Avatar for cleecaldwell

New to PHP and need some help with this. I'm creating a test, but I'm getting all of my questions randomly from my database. For example, if this is my table: ID S Q1 A1 A2 1 C Why A B 2 F When A B I know that I …

Member Avatar for P0lT10n
0
165
Member Avatar for sadsdw

Hi friends, I'm retrieving some information from a input file with 10 columns and I need to get the first 3 columns and set into 3 different variables and the last 7 in the same variable. I was using "ifstream" and ">>" like: [CODE]myfile >> stringA; myfile >> stringB;[/CODE] ... …

Member Avatar for sadsdw
0
96
Member Avatar for carloskire

Hello. This java app I'm developing on NetBeans 7. When i run the project, line 4 below: [code=java]FileReader input = new FileReader("projects");[/code] is not executed and apparently stops execution. Only when debuggin the file or running step by step are the next lines executed. No execution past line 4, except …

Member Avatar for carloskire
0
273
Member Avatar for blotind

Hi all This won't validate!! any suggestions? it for some reason doesn't call the ValidateFrom function... so the error lies either with the manner in which i'm calling the javascript functions or the javascript itself. [CODE] <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> …

Member Avatar for Airshow
0
181
Member Avatar for xylude

I am running the following code: [CODE] if(is_array($check)) { foreach($check as $val) { if($_SERVER['PHP_SELF']==$val) { $show = false; break; } else { echo "<p>".$_SERVER['PHP_SELF']."!=".trim($val)."</p>"; } } } [/CODE] And I am getting the following output: /client/scheduled.php!=/client/scheduled.php Hopefully it's not something dumb on my part, I appreciate any advice.

Member Avatar for xylude
0
87
Member Avatar for bigdan182

hey, I promise i'm getting there!! so my code now seems to be emptying the structures as they are passed between the functions, any thought on how to fix it? also if anyone knows of any good examples of passing by reference, that could apply to this code that would …

Member Avatar for NathanOliver
0
149
Member Avatar for tedman102

I have tried to get this program to work with no luck. How do you properly use the nested selection structure? (sorry for the lack of braces, I tried getting rid of some for less confusion. Didn't think it would work but thought I might as well try :D). I'm …

Member Avatar for tedman102
0
430
Member Avatar for faroukmuhammad

Hi guys, What does the [B]owner[/B] in [B]show[/B] method do and how does it work. Thanks in advance. [CODE]FORM.Show([Modal], [Owner])[/CODE]

Member Avatar for faroukmuhammad
0
173
Member Avatar for rotten69

Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up …

Member Avatar for NormR1
0
196
Member Avatar for L3gacy

Hey guys I basically finished reading Beginning Visual C++ 2010 with Ivor Horton, I skipped the MFC part as I am more interested in the Win API which there's was only one third of a chapter on(not enough) and I was wondering if Programming Windows, Fifth Edition by Charles Petzold …

Member Avatar for L3gacy
0
190
Member Avatar for marcux

Hi all! After surfing the web I ended up here as I could not find a good answer! I am writing an application with c++ and gtkmm. I want to access the network card and listen on all ports for packages. As far as I have found out it is …

Member Avatar for marcux
0
382
Member Avatar for MDanz

[CODE]RewriteRule ^user/[A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ /profile.php?user=$1&r=$2&page=$3 [L][/CODE] this isn't working... i get an internal server error.. if i remove it the page works. Any idea how to fix this? the url should be like below [url]http://www.example.com/user/testing/1/1[/url]

0
85
Member Avatar for Stefano Mtangoo

I have been learning PHP MVC pattern and it is pretty cool. have almost finished app and I can see how mess you can make a code without good design. Now can MCV be applied to C++ apps? Where does Plugin manager/Plugins go if that is even possible?In model or …

Member Avatar for Stefano Mtangoo
0
177
Member Avatar for asif49

[CODE] if (fileScan.hasNext(posPattern)) { posCB = fileScan.nextInt() + 1; for (int i = posCB; i > 0; i--) { String writeByte = fileScan.next(); BufferedWriter out = new BufferedWriter(new FileWriter("E:\\dataReadable.txt")); out.write(writeByte); out.close(); }//for } [/CODE] Using a for loop, how would I write to the file without clearing the contents, so …

Member Avatar for asif49
0
109
Member Avatar for menonnik

How can we calculate whether a number is a power of 2 or not in a single statement without using a loop? All the ones that I can think of use loops or don't satisfy the condition. for eg. The use of XOR doesn't work as it gives incorrect input. …

Member Avatar for TrustyTony
0
188

The End.