199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sciprog22

Hello, Thank you for your time! I have a Hashmap that has keys of of type Account (custom class) and the values are strings. The Account class has the following private variables: 1) name (String type) 2) account number (String type) 3) balance (type double). Following are the files: public …

Member Avatar for sciprog22
0
225
Member Avatar for naz1234

Hi, I got some data from this table. Can it be use using (for loop) ? http://i.imgur.com/lq7WtWA.png Recently, I used (if else) function, but it seem too longer. I am new to C progrmming. Here the code (if else) funtion that I done: if (0 < result < 409 ) …

Member Avatar for jnneson
0
265
Member Avatar for daisyy

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter pw = response.getWriter(); InputStream inputStream = null; // input stream of the upload file // obtains the upload file part in this multipart request Part filePart = request.getPart("audio"); if (filePart != null) { // prints out some information …

Member Avatar for jwenting
0
2K
Member Avatar for yadhu
Member Avatar for jwenting
0
73
Member Avatar for Falcon25

Hi guys, I'm really stuck on this. I am not completely familiar with getters and setters so I am having great trouble with this. Firstly, I am using a windows form application and I have initialised a list within the 'Form1' class. I want to be able to use that …

Member Avatar for JOSheaIV
0
19K
Member Avatar for Darth Vader

Hello, I am trying to find all possible operative system/router/adapter reasons what can cause internet to stop connecting. The goal is to create code that check for all those reasons and programatically resolves those issues. I have found 2 codes that do reconnect the internet connection if not connected. Example …

Member Avatar for JOSheaIV
0
635
Member Avatar for Anirudh_2

Hi! I have a hexadecimal word in the form of a string, and i need to convert it into binary. For eg : AA FF (there is a space in between the two parts). How do i convert this into binary ? Thanks in advance :)

Member Avatar for Moschops
0
223
Member Avatar for Pilot122x

Ok, so right to it. int CSQLDB::Init(const char *host, const char *user, const char *passwd, const char *db) { //Init mySQL mySQL = mysql_init(mySQL); my_bool rec = 1; mysql_options(mySQL, MYSQL_OPT_RECONNECT, &rec); if(!mysql_real_connect(mySQL, host, user, passwd, db, 3306, NULL, NULL)) { printf("(!!!) mySql connection rejected!\n"); mysql_close(mySQL); return 0; } failed = …

Member Avatar for マーズ maazu
0
236
Member Avatar for hell hansen

Hi guys i need some help. Im creating new invoice, and inside of invoice i've table. and in this table user can add new rows clicking add new row button. so in some table i have select field with drop down of prices, which the user must select the price. …

0
134
Member Avatar for fernandodonster
Member Avatar for sing1006

cmd.CommandText = "UPDATE tbl_System SET S_Name='" & TextBox2.Text & "', S_Function='" & RichTextBox1.Text & "', S_Failure='" & RichTextBox2.Text & "' WHERE EquipTag='" & Tbl_SystemDataGridView.CurrentRow.Cells(0).Value & "' i think this is correct format for update query but i still get error for this

Member Avatar for sing1006
0
263
Member Avatar for sarahmalkawi

i want to write easy68k Assembly program to read two numbers each number have 20 digit , then multiply them together and finally print out the result ??

Member Avatar for ALI KHAYRI
0
125
Member Avatar for new_2_java

Hello all, I have a J2EE application that displays a dropdown of items, in Arabic text. This data is stored in a table in underlying MySQL server. The DB character set is set to utf8 and I have in my JSP the carset encoding as utf8 as well. This works …

Member Avatar for new_2_java
0
1K
Member Avatar for COKEDUDE

If you carefully look at this example you will see with atoi when it runs into a string it gives the integer value of 0. So I was wondering how you tell the difference between the integer value of 0 and a string that got converted to 0. http://www.tutorialspoint.com/c_standard_library/c_function_atoi.htm

Member Avatar for deceptikon
0
141
Member Avatar for COKEDUDE

Is the ordering of checking if a number is between two values important? I figured this would be pretty simple to do but its not working. if(0 <= (int)strings[p][0] && (int)strings[p][0] <= 9) { printf ("NUM: %s\n",strings[p]);; } else { printf ("ID: %s\n",strings[p]); }

Member Avatar for JamesCherrill
0
1K
Member Avatar for anyashantu

How do I make my php contact form redirect the user to a thank you page after sending the email. ?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['fname'] ; $message = $_REQUEST['message']; mail("info@website.com", "$subject", $message, "From:" . $email); …

Member Avatar for cereal
0
3K
Member Avatar for john_93

try { OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;" + @"Data Source=c:\Users\PC\Documents\Visual Studio 2013\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Main database.accdb"); connection.Open(); OleDbCommand lala = new OleDbCommand(); lala.Connection = connection; string query = "SELECT * FROM [Firebird m0 Damage];"; lala.CommandText = query; OleDbDataReader reader = lala.ExecuteReader(); while (reader.Read()) { var parameter = new OleDbParameter("@Totalprice", OleDbType.SmallInt); parameter.Value = "comboBox6.SelectedValue"; …

Member Avatar for JOSheaIV
0
237
Member Avatar for COKEDUDE

I'm having trouble with the if statement. I have verified with print statements that (int)strings_line_tokens[l][m] == 0. I thought maybe my logic was backwards since I had two not statements with an or, so I changed it to an and. That didn't help either. if((int)strings_line_tokens[l][m] != 10 || (int)strings_line_tokens[l][m] != …

Member Avatar for Moschops
0
146
Member Avatar for Joby_1

Now i can check the size of the image. But can't validate the image type(.jpg, gif etc..). Could you please check the following my code and give answer. <!--Form image validation--> <script type="text/javascript" src="js/jQuery-1.4.1-min.js"></script> <script> $(document).ready(function(){ $('#i_submit').click( function() { //check whether browser fully supports all File API { //get the …

0
113
Member Avatar for abdullah_8

public class adding { public static void main(string[] args); int a=1; int b=2; sum c=a+b; system.out.println c(sum c); } help cant find symbol - method string

Member Avatar for JamesCherrill
0
213
Member Avatar for ryanzeng

Hi all, i need help to build up a cellular automata program. So, there is 4 state of cells, 0 = space, 1 = ".", 2 = "+", 3 = "#" This state is continuous from 0 - 3, after 3, it will be back to 0. For example, an …

Member Avatar for JOSheaIV
0
216
Member Avatar for abdullah_8

public class adding public class adding { public static void main(string[] args){ { int a=1; int b=2; sum c=a+b; system.out.println c;(sum c)-> } } help illegal start of expressions

Member Avatar for abdullah_8
0
158
Member Avatar for learner001

i have a register and login page where the users can register and login. their details gets saved in the database. my requirement is that when the user will login to the account, they should be redirected to their profile page, where they can view all their profile details. Till …

Member Avatar for shashigowda
0
387
Member Avatar for homeryansta

[CODE=C++] #ifndef LIST_H #define LIST_H #include <iostream> typedef char Item; class List{ public: List() {first = NULL; last = NULL;} //~List() void append(Item entry); void remove_last(); void output(); private: struct Node { Item data; Node *next; Node *back; }; Node *first; Node *last; }; #endif [/CODE] I'm writing a class …

Member Avatar for Syed Zuman
0
969
Member Avatar for anmol.raghuvanshi1

I am having registration form which is very long so i have divided into two parts at end of first part i have button continue.If user has filled all the fields and data in fields are correct he can click on continue button to fill remaining form.So after doing some …

Member Avatar for cereal
0
2K
Member Avatar for Anthony_8

i need help ! instead of ouputting password : admin i want to input asterisk password : ******* thanks in advance

Member Avatar for JamesCherrill
0
433
Member Avatar for Deimos161

Hey guys, I'm very new to this so please forgive me. I have a theme that I am trying to use to display some stats from my minecraft server (Yes I am one of those people :) ) The dashboard theme has a load of charts that are in a …

Member Avatar for Deimos161
0
204
Member Avatar for mithesh

<?php printf("This is the first line. \n"); printf("This is the second line"); ?> This is the code but it isnt printing in new line.

Member Avatar for prabhjots226
0
5K
Member Avatar for Petranilla

hello there, i have a purchase requisition table in mysql like below: pr no qty items 1 10 pencil 1 5 ballpen 1 8 eraser I would like to display them in tabular form and eventually the users should be able to edit. But my program does not assign the …

Member Avatar for diafol
0
474
Member Avatar for Azeez_1
Member Avatar for diafol
0
84
Member Avatar for Mr.M

Hi Dw. How to check if the running process has been injected by another process or there is another process running as another process. What I mean is, let's say the explorer has been injected by another process and both these processes run as one process and the explorer process …

0
115
Member Avatar for JohnMcPherson

Hello, this is a very strange problem. I had first put this discussion in the Linux and Unix thread, since I believe it is actually a problem with how the data is entered via but the vi editor, but I closed those out and will put it in the C …

Member Avatar for Nutster
0
303
Member Avatar for you207

Hi I'm try to change the background of the matched by a Regex text. Example: input: aaa aaa aaa //double white spaces in between output: aaa aaa aaa //change the background of all matched white spaces to red But it's coloring the wrong text. I have tried and searched google …

Member Avatar for JOSheaIV
0
953
Member Avatar for minteks

Hey. I'm struggeling hard. Been trying for 5 hours straight without much progress. I just can't see what'ss wrong. This is my third week learning Java in school. I am looking for guidence. Don't want anyone directly solving the task for me. As that would be cheating, I would fail …

Member Avatar for Taywin
0
262
Member Avatar for phoenix254

Hi, I have created real time script for my website. I wanted to ask u is it good or bad script? Here is my script: My php page:servr.php <?php set_time_limit(0); $con = mysqli_connect('localhost','root','') or die ("Could not connect to the Database"); mysqli_select_db($con,"msg") or die("Cannot find the database"); $last_id=null; while(1) { …

Member Avatar for jkon
0
282
Member Avatar for wikit

Hi, thanks in advance foy your time. I have in the past made a inventory site where a user selects from a dropdown what he or she has and saves it but this is a little different... What I'm attempting to do is this... User creates an account (have the …

Member Avatar for diafol
0
257
Member Avatar for theausum

<?php $ip = '59.32.28.65'; $url = "http://www.ipmango.com/api.php?ip=".$ip; $xml = simplexml_load_file($url); echo "IP address : {$xml->ipaddress} <br />"; echo "City : {$xml->city} <br />"; echo "Region : {$xml->region} <br />"; echo "Country Name : {$xml->countryname} <br />"; echo "Latitude : {$xml->latitude} <br />"; echo "Longitude : {$xml->longitude} <br />"; ?>

Member Avatar for Pramod_7
0
3K
Member Avatar for toxicandy

I have an old sqlite database that I am no longer going to be using but I want to transfer all of my data to my new mySQL database. I have everyone imported and it all looks good but the problem is when I order my one of my columns …

Member Avatar for cereal
0
1K
Member Avatar for IconiCxPimp

Ok so this is my base pig latin code and I need it to detect and change the capital letters into lower case as well as move the end punctuation to the end of the pig latinized word. For example if I type "Hello!" it gives me "ello!Hay" when I …

Member Avatar for IconiCxPimp
0
280
Member Avatar for ssreevidya.m

Hai , I used gridview for student list , and export it to pdf. But the 2nd column is not need to export. I make the gridview's 2'nd column visible false. [CODE] GrdStudent.Columns[2].Visible = false; [/CODE] But pdf file contain this column. Can you help me to solve it. Regards, …

Member Avatar for Rahuls45
0
2K
Member Avatar for ajit.nayak

Dear all I have combox accumated with 3 perameter Grid Connected PV-SYS- Full Feed In Grid Connected PV-SYS with Electrical Appliance -Net Metering Grid Connected PV-SYS with Electrical appliance ,battery system -Net Metering Each combobox value contain images.I used picture box to dispaly images. How to display the image based …

Member Avatar for Reverend Jim
0
366
Member Avatar for malatamil

i have a URL like this example.com/index.php?param1=10,20,30,40,50¶m2=50,60,70,80,90,10¶m3=40,50,60,70,80 Using PHP,javascript,JSON i did this pentagon radarchart. If the values are changing then the pentegon image also will be change. and if the parameters limit is 3 only. if it is 1 parameter then the respective parameter values will display. By using the …

Member Avatar for malatamil
0
628
Member Avatar for iharrythomas

Hello, It would be great if someone tell me what is the exact difference between DDL and DML? Thank you

Member Avatar for jwenting
0
115
Member Avatar for UK-1991

Hello, I am using a bootstrap modal pop up box I just need to show the data from the data base in the modal box for that I hae used ajax to do that as in normal listing when ever users click on the records view button it should show …

Member Avatar for UK-1991
0
346
Member Avatar for Dili1234

this is my first time of creating trigger..I tried to create trigger using mysql to count how many 2007 data in the table when inserting new record but it not working....... My table have more than 50 data... CREATE TRIGGER No_of_Publisher_year Before Insert ON Book FOR EACH ROW SET @Count_No=New.Copyright; …

Member Avatar for Kuripaner
0
202
Member Avatar for SpottyBlue

I got the questionairre problem. I was trying to fill the answers from the 20 questions and output the file as results.txt, but it only shows the answers of 19 questions. And when I fill up all the answers, the total score shows 0. The scores for each question (except …

Member Avatar for rubberman
0
198
Member Avatar for Violet_82

HI guys, I'm just about to build a small, simple expenses application. Basically I'd like to keep track of how much money I'll make by selling some stuff, and therefore I have to input the income and have a total of it, the expenses (fee, refunds) and total it and …

Member Avatar for Violet_82
0
194
Member Avatar for AntonyRayan
Member Avatar for rproffitt
0
73
Member Avatar for rpv_sen

Hi I am trying to create a update function. But it not updating in the database. Please help me to fix. **Test-2.php** $whereString = ''; $bind = NULL; if(isset($_POST['Submit'])) { if($_POST) { $SCYQ64UKID = $_GET['SCYQ64UKID']; $SCYQ64AVGP = $_POST['SCYQ64AVGP']*100; $searchFields = array('SCYQ64EMAL'=>$_POST['SCYQ64EMAL'],'SCYQ64EV01'=>$_POST['SCYQ64EV01'],'SCYQ64EV02'=>$_POST['SCYQ64EV02'],'SCYQ64EV03'=>$_POST['SCYQ64EV03'],'SCYQ64EV04'=>$_POST['SCYQ64EV04'],'SCYQ64EV05'=>$_POST['SCYQ64EV05'],'SCYQ64EV06'=>$_POST['SCYQ64EV06'],'SCUSER'=>$_POST['SCUSER'],'SCYQ64AVGP'=>$SCYQ64AVGP,'SCYQ64TZ'=>$_POST['SCYQ64TZ'],'SCJOBN'=>gethostname(),'SCPID'=>'SSWEB','SCUPMJ'=>$_POST['SCUPMJ'],'SCUPMT'=>$_POST['SCUPMT']); if($post = array_filter($_POST)) { if($fields = array_intersect_key($searchFields, $post)) { …

Member Avatar for rpv_sen
0
451
Member Avatar for Arun_14

I have a problem with adding more than one number in calculator..the problem is while adding 1+2 answer is 3 and when i do 1+2+3 the answer is 5 and not 6 why so.. ihave tried different method of creating array for storing the value but nothing seems to work …

Member Avatar for Santanu.Das
0
182

The End.