Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for Shizuo

Heres my code [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Order extends Applet implements ActionListener { String password = "pword"; TextField txt1 = new TextField(10); TextField txt2 = new TextField(10); Button btn1 = new Button("Ok"); Button btn2 = new Button("Ok"); Label lbl1 = new Label("Choose Your Order"); …

Member Avatar for JamesCherrill
0
451
Member Avatar for Shizuo

How do I change all greater than .00 cents to .49 cents be .00 and all greater than .50 to be round off? I'm using SqlYog btw. Example: price 1: 16:03 price 2: 16:53 Output: price 1: 16:00 price 2: 17:00

Member Avatar for Shizuo
0
100
Member Avatar for Shizuo

I have a datagridview which retrieve data from my ms access file also I hid the primary key. If I added another row and used da.Update(dt) it gives an error because the primary key is empty. now I have a separate textbox for that primary key how can I update …

Member Avatar for lolafuertes
0
117
Member Avatar for Shizuo

how do I code the query for getting data from table where datadate = valueofdatepicker or < 15 days something like SELECT * FROM EMPLOYEE WHERE Hireddate BETWEEN ( @date and @date-15days) <---how do I subtract the 15 days?

Member Avatar for Mitja Bonca
0
101
Member Avatar for Shizuo

[code] try { OleDbCommand cmd = new OleDbCommand(String.Concat("UPDATE EMPLOYEE SET", " Emp_Name='", rec.txtEmpName, "',E_Position='", rec.txtPosition, "', Department='", rec.txtDepartment, "',Date_Hired='", rec.txtHired, "', Address_City='",rec.txtAdC, "',Address_Province='", rec.txtAdP, "', Civil_Status='", rec.txtCivil, "',Maiden_Name='", rec.txtMaiden, "', Spouse_Name='", rec.txtSpouse, "',Citizenship='",rec.txtCitizen, "', Telephone='", rec.txtPhone, "',Mobile_Phone='", rec.txtMobile, "', Emergency='", rec.txtEmergency, "',Birthdate='", rec.txtDOB, "', Birth_Place='",rec.txtBirthPlace, "',Height='", rec.txtHeight, "', Weight='", rec.txtWeight, …

Member Avatar for Mitja Bonca
0
95
Member Avatar for Shizuo

I have 2 table [EMPLOYEE] Emp_ID Emp_Name [ATTENDANCE] Emp_ID Emp_Name Time_In Time_Out How do I display it like this. I hope I present this right [CODE] +--------++----------++---------++---------+ | Emp_ID || Emp_Name || Time_In ||Time_Out | <---- FROM ATTENDANCE +--------++----------++---------++---------+ | 1 || Josh || || | <---- FROM EMPLOYEE +--------++----------++---------++---------+ …

Member Avatar for adam_k
0
150
Member Avatar for Shizuo

for some reason my code is resulting to syntax error INSERT INTO and its pointing to executenonquery line [code] try { OleDbCommand cmd = new OleDbCommand(String.Concat("INSERT INTO CHILDREN2 WHERE (Emp_ID , Child_Name, Age ) VALUES ('", Convert.ToInt32(CaptionText.ToString()), "','", txtName.Text, "','", txtAge, ")"), clsData.con); clsData.con.Close(); clsData.con.Open(); cmd.ExecuteNonQuery(); cmd.Dispose(); clsData.con.Close(); } catch …

Member Avatar for arunkumars
0
89
Member Avatar for Shizuo

I want to concatenate Emp_ID and First_Name column but it gives multistep error. my other table works fine except for the EMPLOYEE table. [code] try { con.Open(); ds = new DataSet(); dt = new DataTable(); ds.Tables.Add(dt); cmd = new OleDbCommand("SELECT Emp_ID + First_Name FROM EMPLOYEE", con); cmd.CommandType = CommandType.Text; dAdapt …

Member Avatar for Shizuo
0
65
Member Avatar for Shizuo

How can I output the resulting echo from my php to the main html? heres my code: what I want is when the I submit , the resulting echo will be posted in the <p id="alert" name="alert"></p> of the main html HTML: [code] <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>REGISTER</title> <link rel="stylesheet" type="text/css" …

0
75
Member Avatar for Shizuo

lest say I have a inputbox in html and I want to compute the answer to ..hmm lets say 1 + 2 - 1 * 6 + 8 / 2 want is the basic function for this? you can just teach me the basics, or advice something . I'm new …

Member Avatar for diafol
0
527
Member Avatar for Shizuo

[code] div{ background:0 10px url(bkcontentwrap.png) repeat-y; background-size: 800px auto; overflow:hidden; } .profile{ text-align:center; } [/code] the width of div and .profile is the same , but i want to change the width of .profile without changing the width of the background

Member Avatar for Arkinder
0
148
Member Avatar for Shizuo

I'm having problem with counting some special characters on textarea every time I press alt+164 for example , it does not count the character unless I press another key. heres my code: HTML [code]<textarea style="resize:none;" rows="15" name="tarea" cols="45" onkeyup="count_chars(this);" onkeydown="count_chars(this);" onkeypress="count_chars(this);"></textarea> [/code] Javascript: [code] function count_chars(tarea) { x = document.myform.tarea.value; …

Member Avatar for Shizuo
0
89
Member Avatar for Shizuo

heres my script [CODE]function count_chars(tarea) { if ( document.getElementById("checkchars").checked ) { x=document.myform.tarea.value; document.myform.charcount.value=x.length; } else { var x ; x = document.myform.tarea.value.replace(/\n/g,''); var y = x.split(' '); document.myform.charcount.value = x.length - ( y.length - 1) ; } } function count_words(tarea) { var y=tarea.value; var r = 0; a=y.replace(/\s/g,' '); a=a.split(' …

Member Avatar for urtrivedi
0
91
Member Avatar for Shizuo

a javascript that count the number of words,lines,letters, spaces,special characters, vowels,consonants, sentence in a textarea I'm really noob in javascript but I do have an idea for counting words and letters

Member Avatar for urtrivedi
0
71
Member Avatar for Shizuo

[CODE]<html> <head> <script> function zoomToggle(iNewW,iNewH,Image,mouse) { if(mouse==1) { Image.style.width=iNewW;Image.style.height=iNewH; } else { Image.style.width=iNewW;Image.style.height=iNewH; } } </script> </head> <body> <table width="100%", height="100%" > <tr align ="center"> <td> <img src="pics/Penguins.jpg" width="50" height="50" onmouseover="zoomToggle('500px','500px',this,1);" onmouseout="zoomToggle('50px','50px',this,2);"> <img src="pics/Jellyfish.jpg" width="50" height="50" onmouseover="zoomToggle('500px','500px',this,1);" onmouseout="zoomToggle('50px','50px',this,2);"> </td> </tr> </table> </body> </html>[/CODE] here's my problem, after zooming in the …

Member Avatar for stbuchok
0
60
Member Avatar for Shizuo

We have given an individual assignment about a simple atm program which withdraw and check balance, sounds simple? here's the twist, the atm database have money inside with denominations 1,000bill, 500bill and 100bill ,20 pieces each , so once the user withdraw cash, it should output how many 1000,500,100 bill …

Member Avatar for Shizuo
1
96
Member Avatar for Shizuo

How do I change a component that is called in a different class? for example i have added a button on a jframe then called the frame, then in another class how can i change the setVisibilty of the button that was called in the other class?

Member Avatar for Shizuo
0
91
Member Avatar for Shizuo

[B]How to clear the content of a JFrame? my code is something like this: there is a main window with buttons 1 and 2 (2 is for exit) when I click button 1, a new window should appear with lots of components , etc then inside it is a cancel …

Member Avatar for navedalam
0
92
Member Avatar for Shizuo

hes the code [code]import java.io.*; import java.awt.*; import java.awt.event.*; import java.lang.*; public class CreateEventFile extends Frame implements ActionListener, WindowListener { private Label companyName = new Label("Event Handlers Incorporated"); Font bigFont = new Font ("Helvetica", Font.ITALIC, 24); private Label prompt = new Label("Enter this month's events"); private TextField host = new …

Member Avatar for masijade
0
169
Member Avatar for Shizuo

it give an access denied<java.io.filepermission Item.txt write> error any suggestion for a simple id generator? [code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.lang.*; public class Shoes extends Applet implements ActionListener, ItemListener { Font SansSerif = new Font ("SansSerif", Font.BOLD, 12); Button create = new Button("Create a …

Member Avatar for Taywin
0
130
Member Avatar for Shizuo

[code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Books extends Applet { Choice b; String [] blist; //CheckboxGroup edition; int i; public void init() { setBackground(Color.green); add(new Label("Please Pick a Book:")); b = new Choice(); blist [0] = ""; blist [1] = "Java Programming"; blist [2] = "C# Programming"; blist …

0
93