64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for GeekTool
Member Avatar for jeetudaljit

Pl. help in handling button events in JSP like calling a servlet on Button click or executing java code.

Member Avatar for ethar.ammar
0
1K
Member Avatar for riahc3

Hey I have this code........ /*MORE THINGS ABOVE*/ <?php foreach ($_options as $_option) : ?> <?php print_r($_option);?> /*MORE THINGS BELOW*/ That print_r gives me this (the first time around, other times its the same but it just gives me different Xs and Ys which is expected): Array ( [label] => …

Member Avatar for riahc3
0
179
Member Avatar for BilalAKhan

Hi, I am trying to populate a textbox with the database data taking in consideration the session state. Checking if the session variable has the same name as in database, it should display the rest of the information in text boxes. I have come up with the following code: Protected …

Member Avatar for BilalAKhan
0
156
Member Avatar for sam63

What is the difference? Is one better than the other? How do you choose between the two? Why does one not need to instantiate when calling a static method?

Member Avatar for MuhammadSaad
0
4K
Member Avatar for dualzNZ

Hi all i am a bit stuck lol I am trying to get the file extention from a url say yoursite.com/file.zip in the data base the full link will be there, i am looking for a function that will take the full url take ".zip" and then will output "(file …

Member Avatar for diafol
0
122
Member Avatar for nagatron

Hello to all VB masters, I have a problem with the search command. I have a button name [B][COLOR="red"]"btnSearch"[/COLOR][/B] a text field name [B]"fldSearch"[/B] a table named [B][COLOR="red"]MSFlexGrid[/COLOR][/B] and a database named [B][COLOR="red"]db.mdb[/COLOR][/B]. The function of the search button is to search the data being entered in the fldSearch and …

Member Avatar for ChrisPadgham
0
412
Member Avatar for Bile

Hello everyone, can some one help me with the code to create a folder by code in vb6,I am greatefull for Qvee72. The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so …

Member Avatar for ChrisPadgham
0
187
Member Avatar for Sendy Hipo

erm i got a bit problem with toupper(); example: char ch = 'a'; char upper; upper = toupper(ch); if i use cout to show char "upper", it shows the ascii code for uppercase.. in this case, it shows '65' in screen, i know it supposed to show 'A' instead of …

Member Avatar for Sendy Hipo
0
131
Member Avatar for Lobster1071

Fairly new to the VB.NET world, but a long time Access and FoxPro programmer. I'm trying to do something that was extremely easy in Access, but can't believe it is this difficult in VB.NET. I populated a combobox with values from a mySQL table. I want to return a hidden …

Member Avatar for raventara
0
1K
Member Avatar for kothaisaravan

Hi, I have c# Application running in my desktop(Windows XP) with Java web services and oracle DB . The Application includes a shipping screen which has a calendar window. When I run the application in my desktop it works fine. Client uses the same application. We access it through CITRIX …

Member Avatar for kothaisaravan
0
113
Member Avatar for antwan1986

Hi everyone and thanks for reading. This problems been driving me nuts for the last day and I'm completely stuck. I made a dummy table of users to test out SQL connections but everytime I echo out the information, it keeps dropping the first record, and jumps straight to record …

Member Avatar for jopianokid
0
4K
Member Avatar for HasNor

Dear experties, i got bad new.. and biggest problem when my system is not stable after go live.I'm using PHP. My system not catch the information that entered by user correctly. I don't know why.. Which part actually I need to check? somnetime it work ok but sometime it work …

0
83
Member Avatar for sammoto

Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double …

Member Avatar for sammoto
0
102
Member Avatar for anand01

hi all , I know how to develop Mvc architectur application , Now I paln to learn frameworks, which one will be best choice structs or spring? , should I learn both ?

Member Avatar for anand01
0
112
Member Avatar for public

I'm trying to set up a GPT-site. When I want to test the redeem method, I get the following error: > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in (blabla-link, not imporant)/redeem.php on line 39 I've tried some stuff, but nothing seems to be working. Does …

Member Avatar for public
0
185
Member Avatar for Majestics

I am facing some problems in a project regarding to byte fetching from a file and storing. Problem in java bytes is they are number, instead of char. In file i have seen a byte is like a char... Also how to make bytes unsigned , because signed bytes creates …

Member Avatar for Majestics
0
198
Member Avatar for Gaiety

Hi, Can somebody please explain , printing with structure variable also working. int main( void ) { struct bitfs { unsigned char a:4; unsigned int b:5; }; struct bitfs bf = {15,31}; struct bitfs2 { unsigned char a:4; unsigned int b:5; }bf2 = {15,31}; printf("a= %u \n", bf.a); printf("b= %u …

Member Avatar for WaltP
0
110
Member Avatar for Sendy Hipo

i read c++ ebook, then i make a code to open a file using fstream and use ios::in flag here's the code : #include <iostream> #include <fstream> using namespace std; bool openFileIn(fstream&, string); int main() { fstream dataFile; if(openFileIn(dataFile, "sendy.txt")) { cout<<"succes"; } else cout<<"fail"; return 0; } bool openFileIn(fstream …

Member Avatar for Sendy Hipo
0
154
Member Avatar for Kremlin

Hey all, I have a JApplet that runs in browser and I can't get it to create a new JFrame popup when a button is clicked. It works fine in my IDE (Eclipse) but not when I upload it. Here's the code for the JFrame I'm trying to create: import …

Member Avatar for NormR1
0
452
Member Avatar for mie.ilani

anyone can help? i want to check whether the data has been exist or not. but its shows some error in this code. error :No value given for one or more required parameters. Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.KK3DB) Dim cmd As New OleDb.OleDbCommand Dim adap As New …

Member Avatar for mie.ilani
0
110
Member Avatar for coder389

I have a long string of characters as input and I want to count the number of words in that string. How can I do it through regular expression?

Member Avatar for Mitja Bonca
0
201
Member Avatar for wan632

i have previously created time using mktime and stored it in file, now the problem is how can i call it back and read as standard time, not an array. this is because i wanna make use of difftime function. here is my code sample: int ex(){ int typ; printf("\n\n\nEnter …

Member Avatar for wan632
0
115
Member Avatar for london-G

Hello, I have two linked tables in my database (access), one is for the student and one is the ages(selection drop list ). When I have transfered the data in vb form, a simple text box is shown with numbers in it. How can I have the drop down list …

Member Avatar for Mitja Bonca
0
139
Member Avatar for Djmann1013

What is wrong with this signup code? > process.php: <?php $host=""; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name=""; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("Cannot connect to server. Try again later."); mysql_select_db("$db_name")or die("Cannot connect …

Member Avatar for diafol
0
248
Member Avatar for ElaineTeo

if(empty($_POST['txtEmail'])) { if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } $page='SignUp.php'; header('Location:'.$page); } else { $page='SignUp.php?emptyusr=1'; header('Location:'.$page); }

Member Avatar for ElaineTeo
0
207
Member Avatar for ferit1223

I've just started php and mysql.trying this code to check if mysql account is correct or not. <?php $usr=$_POST['username']; $psw=$_POST['passwd']; echo ' body tag, other things and a message: Logging in! '; echo $usr; $connection = myqsl_connect('localhost',$usr,$psw); if (!$connection){ die('<p>Stopped : ' . mysql_error()); echo '<br /><a href="index.html">Retry</a></p>'; } else …

Member Avatar for ferit1223
0
101
Member Avatar for Sendy Hipo

Hi! i have problems with input validation, so here goes the problem : Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment VideoNote Solving the Weather Statistics Problem Review …

Member Avatar for Sendy Hipo
0
420
Member Avatar for VernonDozier

I have an abstract class. I'm creating a large array in the base class, which appears to never be deleted because no destructor is called. My questions (obviously) are... * Why isn't a destructor called? * How do I fix it? #include <iostream> using namespace std; class A { protected: …

Member Avatar for mitrmkar
0
271
Member Avatar for HTMLperson5

Is it possible to make a Python program which checks if a file exists, maybe like: #!/usr/bin/python if exist 'File.txt': print "File.txt exists!" else: print "File.txt does not exist :-(" Obviously the `if exist` code will fail, as it is not a python command, but is there anything like the …

Member Avatar for HTMLperson5
0
2K
Member Avatar for zur1ch

So i made another Code in C in which i am making a program to stop working when the Licence has ended. The Program Runs but lets say the date its suppose to end on June 20, 2012 so it triggers the Stop of use of the program. This is …

Member Avatar for zur1ch
0
100
Member Avatar for steven447

Hello, I have a website that uses Smarty. When I try `$oSmart->display("header.html");` I get a blank page without warnings and errors. I'v proven with `var_dump()` that the smarty object is succesfully created. I know to that the page is enterily rendered by using: echo "start"; //Smarty Stuff echo "end"; Also …

Member Avatar for steven447
0
757
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args) { String writtenStuff = "Hello i am bucky bucky"; int otherNum = 0; int length = writtenStuff.length(); int i; for (i = 0; i < length; i++){ if (writtenStuff.charAt(i) == 'b') continue; } }//end method }//end class Here is my code, …

Member Avatar for GeekTool
0
111
Member Avatar for G_Waddell

Hi I have a real conumdrum here - I just can't expalin this behaviour!! A colleague has designed a view that contains the following : `CONVERT (nvarchar(4),YEAR(dbo.SYSFinancialYear.FinancialYearStartDate)) + N'/' + RIGHT ('00' + RTRIM(CONVERT (nvarchar(2), dbo.SYSAccountingPeriod.PeriodNumber)), 2) As YearPeriod` When you are in the design view, of the view and …

Member Avatar for G_Waddell
0
153
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args){ String writtenStuff = "someone was here!" + "here i am!"; int numP = 0; int length = yazi.length(); for (int i = 0; i < length; i++){ if (yazi.charAt(i) != 's') continue; ++numP; }//for end System.out.println("the total number of the letters …

Member Avatar for GeekTool
0
130
Member Avatar for 330xi

Hi! I'm working with word through my c++ application. And I want to read some documentation about available opportunities. I see some piece of code of some paticular situations (to add a picture, to add text, to save file, to fill table) in forums, but I want to observe all …

Member Avatar for 330xi
0
348
Member Avatar for razree

Hi all I've been struggling with this one for some time now and I would realy appreciate some help. I have a string which gets data from mssql server, reader collects data (among others also "person) SQLStr = "select * from tablename order by id desc command = New System.Data.SqlClient.SqlCommand(SQLStr, …

Member Avatar for razree
0
2K
Member Avatar for london-G

I have started a database application just like an address book, however I would like to have the user to upload a picture that will show when the user click save. Any idea? Thanks alot

Member Avatar for seslie
0
136
Member Avatar for bhagawatshinde

Hi guys, How to sort hashtable keys in ascending order. I have 5 keys 1,2,3,4,5 and respective values are 10,7,8,6,9,5. but when i am displaying records it shows like this..... foreach (DictionaryEntry entry in srque) { MessageBox.Show("Key === " +entry.Key); MessageBox.Show("Value ===" +entry.Value); } the output i am getting like …

Member Avatar for bhagawatshinde
0
3K
Member Avatar for themaj

Back on my form with a ton of financial data entry textboxes but I want to have the data formatted at runtime, as I enter the data. I have a format declared as Public Const cFmtCurrency = "##,###,###" ' don't need decimal for the local China currency What would be …

Member Avatar for themaj
0
366
Member Avatar for calebcook

Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` …

Member Avatar for Incognitus
0
238
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 It seems this is something PHP related. How can …

Member Avatar for riahc3
0
726
Member Avatar for fatalaccidents

Hey guys, I'm trying to use mpi4py on my mac but I'm running into some problems. I'm just trying to get it up and running by running a simple helloworld program that runs on different processors. When I run the command 'mpiexec -n 2 python helloworld.py' I'm getting a very …

Member Avatar for fatalaccidents
0
553
Member Avatar for TTTHXC

i have a function that is supposed to check a string against a set of types, stored as a hash set in the class o. however the function only works if there is one word. if the string conmtains more than 2 words, my program crashes with NullPointerException. public static …

Member Avatar for TTTHXC
0
103
Member Avatar for ollie60

Hi Recently I had the following error occur when the CImg destructor is called, 0xC0000005: Access violation. It occurs at the end of the function unwrapFilteredImage when the destructor is called and I have traced it to the point where inImage is being destructed. The first thing that is destructed …

Member Avatar for ollie60
0
238
Member Avatar for sammry

I am using the followng code, to import csv into mysql. if($_POST['sform'] == "1") { $fname = $_FILES['upload']['name']; $chk_ext = explode(".",$fname); if(strtolower($chk_ext[1]) == "csv") { $filename = $_FILES['upload']['tmp_name']; $row = 1; if (($handle = fopen($filename, "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $row++; $data_entries[] …

Member Avatar for sammry
0
129
Member Avatar for npmiller

I was creating a program using vb.net on visual studio. Unfortunatley when I closed out I save it in a way where all of my developer coding was erased. Luckily I still have the debugging file, but it won't allow me to see the form developer or design view (which …

Member Avatar for adam_k
0
105
Member Avatar for koolzed

a simple c++ program for an adress book that adds contact, stores the contacts and searches for the contact... it should have only one class called class addy_book..i called a constructor and am stuck coz i don't know where to go from here #include <iostream> #include <fstream> using namespace std; …

Member Avatar for WaltP
0
1K
Member Avatar for Majestics

How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions.

Member Avatar for Majestics
0
165
Member Avatar for DCSS

I have a problem that seems so simple to fix but I cannot figure out why this is not working. I have done this in other apps with no problem. I have an ASPX page that displays data at the top for info only and a Gridview to show related …

Member Avatar for DCSS
0
850

The End.