64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tuukie

Want to make a pulldown for hours and I want it to be on the hour now (it is now 22:40 so the pulldown should be on 22). Here is the code: [CODE=php] <?php $hour_now= date(G); $minute_now=date(i); ?> <form action="index.php" method="post" id="schedule_form"> <p> <label>Hour</label> <select name="send_hour"> <?php for($i = 0; …

Member Avatar for tuukie
0
140
Member Avatar for kingben

Hi. Please refer the code. I am having trouble in the 3 times nested loop (at the end) [code="php"] <?php error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', true); function remove_blank_spaces($strWhite) { trim($strWhite); $string = ""; for($i=0; $i<strlen($strWhite); $i++) { if($strWhite[$i]!=" ") { $string .= $strWhite[$i]; } } return $string; } function get_all_substrings($input, $delim='') …

Member Avatar for kingben
0
244
Member Avatar for Anigmalee

Hi, Im Newbie in VB, Need some help/advise here. 1)I dont know what different between Access Databass, SQL severdatabase, SQL server compact 3.5 in term in application? I just need a brief intruduction in when to use them(How to choose between them) 2)In My project, I use database to store …

Member Avatar for Alexpap
0
165
Member Avatar for bibiki

hey there. I have been struggling with separating classes in java and figuring out what methods go in what classes. when i build my apps in one file, i do them right, but when i try to separate classes, i mess up. like for example: I have these two classes: …

Member Avatar for quuba
0
198
Member Avatar for bidbul

hello, can you please help me? i wanted some clickable texts which opens not 1 but 2 urls in 2 different iframes. this code works on ie and opera but not on ff. i don't know what to do. thanks! [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> …

Member Avatar for bidbul
0
173
Member Avatar for progr

I am trying to make a program that determines whether a statement is true or false I have this so far:[CODE]public static void main(String[] args) { int w=2,x=3,y=4,z=5; boolean expression; expression = (w<=x)&&(z>=y); if(expression == true); System.out.println("true"); if(expression == false); System.out.println("false"); }[/CODE] ...but all it prints out is true and …

Member Avatar for progr
0
122
Member Avatar for rasizzle

Hey Guys, This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try. I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings. …

Member Avatar for rasizzle
1
102
Member Avatar for oXHutchXo

Sooo im doin this project for school and im super stuck on the keydown command, i dont know how to get it to work at all! my teacher is also has learned c# but forgot alot of it. so basically i want it so that if i press the up …

Member Avatar for oXHutchXo
0
125
Member Avatar for Protoroll

Okay so my loop is supposed to check if an item in the ArrayList has the MINIMUM_RATING value which is 1. It does that just fine, but the problem starts when there is more than one item with the MINIMUM_RATING value in it. I need it to stop at the …

Member Avatar for Protoroll
0
126
Member Avatar for ConCon

Can someone look at this and tell me why I'm getting an empty tar? [code] #!/bin/sh #### mysqldump --opt --user=[my username] --password=[my password] | tar cvz > backup.tar.gz #### echo | mutt -a backup.tar.gz -s \"Database Backup\" [my email] #### rm backup.tar.gz #### [/code] Thanks!

Member Avatar for ConCon
0
217
Member Avatar for jagopy

I am looking for very beginner programming software for my 12 y/o grandson for his birthday. He wants to program his own video games eventually but needs to start with basics. Is this a good software for that? If not, any suggestions? I am not technically savvy wise, so please …

Member Avatar for jagopy
0
120
Member Avatar for jmartis

Hello, I'm doing an analog clock windows forms application in Visual C++, and for this I need to draw a few lines in a blank space inside the form. I've searched the Net but can't find a simple way to draw inside a form window. Any Ideas?

Member Avatar for jmartis
0
151
Member Avatar for thuyson

i want to insert textbox's content into money column in sql.but i don't know how to do it. Please help me Thank u!

Member Avatar for thuyson
0
798
Member Avatar for ceyesuma

Could someone look at my Statement stmt? is this error due to improper string creation? Thanks [code] [/code] [code] public String stmtCreateStudentTable = "CREATE TABLE student (" + "stu_uid CHAR(11)," + "stu_password CHAR(11)," + "stu_lname CHAR(20)," + "stu_mname CHAR(20)," + "stu_fname CHAR(20)," + "stu_gender CHAR(1)," + "stu_age INT(3)," + "stu_start_date …

Member Avatar for ceyesuma
0
120
Member Avatar for doomfrawen

Hello friends! I'm writing a program that is connected to a mdf database and i need to query the database, but I have tried several ways to do it but without success :( ! This is my code: [CODE] string Query = null; SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User …

Member Avatar for doomfrawen
0
2K
Member Avatar for TrustyTony

I tried this super simple class example from net. (Yes I am a beginner in implementation of object oriented features in Python) UPDATE: Now from fresh start of IDLE it did not crash, but did not quit properly still. Hmm. TaskManager any (or dozen) python zombies hanging around?? No only …

Member Avatar for vegaseat
0
594
Member Avatar for nonshatter

Hey, I have been trying to devise a way to insert a formatted PHP date() variable ($expires) into a publicly available javascript countdown clock. Obviously, this is made difficult because PHP is server-side and Javascript is client-side. This first piece of code is me adding a number of days to …

Member Avatar for BeachyUK
0
238
Member Avatar for GAME

Is there a easier way to do multiple send keys instead of just having to C/P? [code]SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}");[/code]

Member Avatar for mbulow
0
110
Member Avatar for BobbieJean

Hi all, I had posted my code and updated it a few times in another thread and didn't get any response and since I have gotten some things figured out and had posted my long code a few times in the other thread, I thought I would put my last …

Member Avatar for BobbieJean
0
1K
Member Avatar for CipherPol9

hi i am developing a software for tecnichal assistance. i am using a acces database which consists in two tables assitance and cliente and i use inner join to connect t«the two tables. now i connot save data on the table i made the inner join. What code i have …

Member Avatar for pritesh2010
0
88
Member Avatar for pore

Hello, I'm working at a 8 puzzle ([url]http://www.permadi.com/java/puzzle8/[/url]) i want to compare two arrays. after that I want to get a true or a false and then I want to implement a algorithm. my question is: why can I not use 2 different variables and display the interger values of …

Member Avatar for pore
0
118
Member Avatar for vitroblue

i'm not quite sure this is the right forum to post this... please forgive me... i'm making a servlet it takes info from an html form and uploads it to a data base using jdbc that works just fine each time i run it, i get a console report that …

Member Avatar for javaAddict
0
89
Member Avatar for pankajagar2002

Hello frnds. i have little bit confusion on this topic, i try to find over the internet but not able to do this, could you please help me, i want to know that whether Calender.getInstance() method is threadsafe or not. Thanks in advance

Member Avatar for ~s.o.s~
0
1K
Member Avatar for tinchektinc

Hi everyone. First I would like to apologize if I didn't post this correctly, so please don't take it hard on me if I did. Here is my problem: I have to print out a system filled form, including text styles. For example (I have already solved the styling issue) …

Member Avatar for tinchektinc
0
3K
Member Avatar for pato wlmc

Well, a few weeks ago, i messed up my PC ( The windows part, Linux remains perfect ), not big deal, just formated, and seeing the bright side, i updated to Windows 7 ( i was on Windos vista). Everything is perfect.... or was until now. I used to "compile" …

Member Avatar for pato wlmc
0
139
Member Avatar for VBNick

Is there a way to put a computer to sleep somehow other than clicking start, then sleep? I am using a shortcut to this right now: C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0 but it doesnt do the same thing as clicking "Sleep" in the start menu. I need a piece of C++ code, …

Member Avatar for VBNick
0
1K
Member Avatar for itit

It gives the proper output when i run it 7 times. But it also gives the ColumnNotFound error at line 152 all 7 times. When i run it for the 8th time it gave an error of Incorrect syntax near 's' at line 133 which is "statement.executeUpdate(movieValue);" . When i …

0
59
Member Avatar for Dhanish

i need to validate a form using only JavaScript all the validations seem to work except that when it runs the function validateform() it doesn't return anything if all validations have been passed [CODE] <html> <head> <script language = "Javascript" type = "text/javascript"> function echeck(str) { var at = "@" …

Member Avatar for Dhanish
0
2K
Member Avatar for sweetypie123

Hi i have a listview control on form1. I want to send the selected value to form2. I tried couple of ways but nothing seems to work correctly. Please help.

Member Avatar for sweetypie123
0
98
Member Avatar for ana_eht

can someone pls tell me what is the damn error here?!! [CODE] package t6q6; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner (System.in); System.out.println("Please enter your account number."); int account = input.nextInt(); System.out.println("Please enter P or R for Premium or Regular …

Member Avatar for ana_eht
0
130
Member Avatar for moobaa

Hi Everyone... I am trying to do some Object calls within a PHP script which is INLINE within HTML. However the "->" PHP syntax is effectively closing the <?php start tag. How do I escape this syntax within the PHP to ensure the browser doesn't perceive it as a tag …

Member Avatar for moobaa
0
96
Member Avatar for bbrradd

Ok i need to read in 2 files. The first file contains employee data, and second file contains employee ID# and the hours the employee worked. I need to matchup the ID numbers and add the hours, which i have done. my problem is if there is a invalid ID#, …

Member Avatar for bbrradd
0
110
Member Avatar for pearle

I'm supposed to rewrite a binary search function so that it uses a generic type for array elements instead of just int. The only changes I made to the function are inserting the line "template<typename T>" and changing the line "int binarySearch(const int list[], int key, int arraySize)" to "int …

Member Avatar for pearle
0
574
Member Avatar for Wizablue

Hmm, I was trying to load strings from a file(formated) to an 2D Array... but.... [CODE] FILE * fp; char TempBuffer[100][100]; char array_game[100][100]; fp=fopen(filename,"r"); for(i=0; i<100; i++) // Create 2D array to Hold the array of the file { for(j=0; j<100; j++) { fgets(TempBuffer,101,fp); strcpy(&array_game[i][j],TempBuffer); } } [/CODE] I get …

Member Avatar for Wizablue
0
490
Member Avatar for rciprogrammer

Hi Looking for a way to pass back multiple data types from a method. I want to be able to pass back an array that the method fill out, and also the length of that array (I need that because the calling code will pass the byte array to the …

Member Avatar for rciprogrammer
0
128
Member Avatar for replax

Hey guys, after compiling my program I get the following error [code]Windows has triggered a breakpoint in *.exe. This may be due to a corruption of the heap, which indicates a bug in *.exe or any of the DLLs it has loaded. This may also be due to the user …

0
114
Member Avatar for jaku78

Hi. At the moment I'm trying to get this very simple calculator to just set the label of the text in the GUI to just be the label value at the moment. I plan to make it do the math but I'm having trouble getting to that point. When I …

Member Avatar for jaku78
0
138
Member Avatar for bchin

Hi, I have been searching high and low on google, and I cannot seem to figure out how to convert unicode to integers. Take the unicode codepoint, u'3001', for example. I know in utf-8, this is suppose to be ideographic comma. The hexadecimal representation is 0xE38081. I know if I …

Member Avatar for bchin
0
3K
Member Avatar for danielagaba

hi i'm pulling multiple rows of data from my database to display in a csv document but every row it displays is the same as the first row. appreciate the help. [CODE] <?php session_start(); include 'include.php'; connect_db(); $filename = date("Ymd")."_summary.csv"; header("Content-type: application/csv"); header("Content-Disposition: attachment; filename=$filename"); $date = date("Y/m/d"); $sql = …

Member Avatar for colweb
0
76
Member Avatar for morteza_ipo

Hi everybody! I want to get list of files and folders with permission from ftp! This is my code: [CODE] from ftplib import FTP ftp=FTP('ftp.domain.com','username','pass') a=ftp.dir('') [/CODE] after runnig : (Output) drwxrwxrwx 1 user group 0 Mar 01 14:29 Backup drwxrwxrwx 1 user group 0 Mar 01 14:29 logs drwxrwxrwx …

Member Avatar for nezachem
0
152
Member Avatar for cherryduck

Hey, this is a continuation of my image editing program, I am trying to perform intensity thresholding with an intelligent threshold. My code thus far: [CODE] private void thresholdMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); setUndoImage(inputImage); BufferedImage thresholdImage = new BufferedImage(inputImage.getWidth(), inputImage.getHeight(), inputImage.getType()); int threshold = 0; int tnew = …

Member Avatar for cherryduck
0
185
Member Avatar for PierlucSS

I'm starting a process in a thread that is used to built up a treeview with a recursive method. I'm getting the following error "Action being performed on this control is being called from the wrong thread. marshal to the correct thread using Control.Invoke or Control.BeginInvoke to perform this action." …

Member Avatar for PierlucSS
0
1K
Member Avatar for joker.med

Hello everyone, After I created a JTable with: JTable MaTable =new JTable(); MaTable.setModel(new DefaultTableModel(new Object [N][1], new String [1])); I wanted to add new columns to it, so I did this: TableColumn Colonne = new TableColumn(); MaTable.addColumn(Colonne); The operation did worked, even the new columns displayed correctly, but, when I …

Member Avatar for joker.med
0
87
Member Avatar for koitfm

I have to read from input file (which contains strings and integers) only integers, rearrange them to descending order and write to output file. How should I do this?

Member Avatar for jephthah
0
4K
Member Avatar for obeem

Hi guys, I am trying to make the Tic Tac Toe Class game but I am encountering an error with the initialization of my array for the game board. Instead of initializing everything to blank spaces, random characters end up in there and I don't know what is causing this …

Member Avatar for obeem
0
120
Member Avatar for DrkNite

we use a terminal emulator called facetwin to run our main unix based applications we want to attach a small document scanner and magnetic strip reader to the system this runs on currently we have a magnetic reader that emulates a keyboard so it sends keystrokes back to the unix …

Member Avatar for jimhutchins
0
137
Member Avatar for cokaznsyco72

I need to get character input from the user and convert it into a float type. However, I can't use arrays, strings or the functions printf() and scanf(). I have to do everything with putchar() and getchar(). How would I do this?

Member Avatar for DoctorBinary
0
154
Member Avatar for Jimingle10

Intro - I am an electrical major. Having said that, my school has a pilot program this year that I was randomly selected for, that includes introduction to C# in the program. I am not very familiar with programming at all but I must admit, I have made decent progress …

Member Avatar for newenglandguy
0
854
Member Avatar for egoche

Some of the fields in a form are desired but not required. As a result of these fields being left alone, PHP will return errors similar to: "Notice: Undefined index: manager in C:\wamp\www\form.php on line 12". My current question is how do you tell PHP to disregard a field if …

Member Avatar for egoche
0
2K
Member Avatar for oniongirl

Hi all, I think I've got myself into an unresolvable situation. I have a form (it is used so that non-techies can create their own questionnaires) that asks for a user to enter a number that reflects the number of options they want that question to have. A button is …

Member Avatar for oniongirl
0
79

The End.