64,152 Solved Topics
Remove Filter ![]() | |
In my proj i'm using ms-access DB.. i have two fields namely sms_date,sms_time.. i myself enter the records to the DB.. I need to populate the gridview with the records within the given range of date.. i hav a calendar control to select the date(mm/dd/yyyy) and user should type the … | |
![]() | i have problem . how make a 100 random number series. i need a code. plz plz plz help me ![]() |
![]() | i make this progrm . first i generate this of 100 number . then user cheaked the user how many time number is repeated in this series. but i want random series of 100 number . please check it & how to create a random series in this program. [CODE] … ![]() |
Hi there, I have added a validation script to this page [url]http://antobbo.webspace.virginmedia.com/webediting/documents.htm[/url] but it is not working the way I want it to, I am sure I made some silly mistake. Basically I want to make sure that people actually input something in the form below before submitting it. If … | |
Can anybody help me with java code to monitor system power,that is to check if a machine is running on battery or on ac power | |
I have a list of say 15 images. How can I make it so that in each page refresh they all change to a random position? Thanks | |
Hi Ia want to show text in a multi-line textbox, but my problem is how do I start a new line when using code like so.. [CODE] TxtBox_TechTalk.Text = " Good Effort.. You Got " & Lbl_TotalMark.Text & " Lets try the next test. Click the Subtraction Test button to … | |
Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is … | |
Ok i have a problem i cant solve I have 2 images image one saved in location x and has name x1 image two is saved in location y and has name y1 Now i want a script that picks up image y1 and replaces x1 with y1 using changeing … | |
Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is … | |
Hi, I have created an application to send data from WCF server application to my client side application. For this I have added a custom serialization instead of the default serialization. And now its sending data to the client as stream and I am able to de-serialize the object back … | |
HI all Experites can you help me on this Query How to get perfect result set I have three table. [CODE] 1)vitalsigns ID DisplayName DisplayShort ToMetrics ToEnglish 1 Temp Temp (0.556*({1}-32)) ({1}/0.556)+32 2 BP(Systolic) BPH (NULL) (NULL) 3 Wt WtH {3}/2.2 {3}*2.2 4 Height Height 2.54*{4} {4}/2.54 5 Pulse Pulse … | |
Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char … | |
hi.. I just want to know is there any way to use flash image in java i mean i f i have java servlet web form and i want to design this form on flash image then how can be it possile please help... | |
I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as … | |
Hi, I'm creating the layout for a dynamic webshop, all pictures are getting dynamic IDs to have their elements changed. I'm currently having errors with the code below and have no idea why. the argument id is not null, however document.getElementById(id) is. I don't understand how that can happen :S … | |
Hi, I am working on a php form where, I have 5 [B]rate[/B] , 5 [B]quantity[/B] & 5 [B]amount[/B] fields. The user will make entry on amount & quantity fields, and onchange the amount fields will be calculated, I also have a TOTAL field which will also be calculated from … | |
Im using this code ! con.Open() cmd = New OleDbCommand("select * from RoomTypeA", con) conreader = cmd.ExecuteReader Do While conreader.Read If conreader.Item("TimeEnd") = Me.TextBox6.Text Then Me.RTypeListA.Items(0).Selected = True Me.RTypeListA.Select() End If Loop cmd.Dispose() con.Close() conreader.Close() i want to select the item in listview that has the same TimeEnd with textbox6.. … | |
Hi, I am working on a PHP page where I have 5 rate, 5 qty and 5 amount fields. When I am define all the fields manually, i.e. defining each field with a separate filed name, field id then it is working. But when I have used a loop to … | |
Hi guys, I am trying to modify my program so that when i entered an invalid number, it will say that this is invalid and loop me back to the starting point. I just cant find the point to do that. either it will just say invalid and continues, or … | |
Dear All I have 2 Pages smtpAuth.php contents.php When I use this code [CODE]$body = file_get_contents('contents.php'); $body = eregi_replace("[\]",'',$body);[/CODE] It cannot show PHP variables values in Send email. Content.php file attached as contentsphpfile Whole HTML working fine but PHP DataBase values are not showing in Email. | |
[code=c] int i=0,j=0; char operand[30]; char lbl[20],opr,num[20]; while(i<30) lbl[i]=num[i]=operand[i++]=NULL; cin>>operand; for(i=0; operand[i]!='+' || operand[i]!='-'; i++) lbl[i]=operand[i]; opr=operand[i++]; while(operand[i]!=NULL) num[j++]=operand[i++]; [/code] ..is there any mistake in this piece of code, my execution is getting stuck at [code=c] lbl[i]=operand[i]; [/code] | |
Could I select a datetime record using date only? I need to show rows containing a particular date. I'm thinking to separate it into two column instead if I couldn't select only date from a datetime. | |
I wrote a program that interactively allows you to import files directly from your HDD into another python program. When building a new program, you simply call my program, navigator, and it lets you choose a directory and it prints out a numbered list of file: file a 1 file … | |
Hi guys. I downloaded pygame and a few other modules for Python. I know that I have to put them in a certain folder to make sure Python can read them, but what is that exactly? I'm running a Mac, OS 10.6.6. I already tried putting it in the main … | |
May seem like a stupid question but can an array call a function? and if so is it possible to select an array from user input, so if the array was something like Num[10] and the user would input 6, it would then select Num[5] and call the function associated … | |
hey. I am trying to add a menuscreen to my game using the enumeration method. I get 4 errors: No overload for method 'UpdateMenu' takes '0' arguments (at L: 161 C: 25) No overload for method 'UpdatePlay' takes '0' arguments (at L: 166 C: 25) No overload for method 'DrawMenu' … | |
Hello friends, I try to rewrite links with htaccess, but the server does not change the links. I want, e.g.. the link [url]www.example.com/index.php?option=com_content&view=section&id=7&Itemid=54[/url] To be: [url]www.example.com/cat/7/Item_54[/url] (Or something similar). My .htaccess file is: [CODE] ## # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $ # @package Joomla # @copyright Copyright … | |
Hi all, I've got quite a simple question and after searching here and on other websites I can't seem to resolve what the "correct way" of doing this is in C++. Below is a simple piece of code illustrating what I am trying to do: [CODE] #include <iostream> class BaseClass … | |
<S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 <B> It's suppose to start will a or b and 1 afterward. it doesn't matter how many 1's are after a or b. [CODE]/* <S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 … | |
Hi I'm trying to display wordpress posts in October 2010. My best attempt was SELECT * FROM 'wp_posts' WHERE 'post_date' < 31/10/2010; but it shows an empty result and I think the dates need to be in a range. Any suggestions? Thanks, Kevin | |
Hello, I've made a program that uses an array of objects, it's work well so far, upto the point that I try to increase the size of an array. So, in main the relevant code loops like this: [CODE]int main(){ /* classes used */ phoneBook *p; .... numLines = 0; … | |
I'm making a project with OpenCV about tracking. But what I want is the ability to let the user import his own tracking algorithms. Is there some way that i can check in a specified folder if there are new algorithms added and how can I include them in my … | |
Yes i realize this is the fibonacci sequence and i understand the math im just having trouble understanding the line in red what does it equate to in laymans terms? Thanks in advance :D [CODE] a,b=0,1 while b < 100: print b [COLOR="Red"]a,b=b,a+b[/COLOR][/CODE] | |
How do you determine what the main hard drive is? This is what I have: [CODE]filename="savefile2.txt";[/CODE] and this is pseudocode for what I want: [CODE]filename="MainDrive:/JavaProject/savefile2.txt";[/CODE] My problem with it is, what if C: isn't the name of a person's hard drive? F:\ for instance. And also, if the folder name … | |
hi!!! i have got a small problem wid an sql query that i m writting in jsp the query is real simple... but i dont know y m not gettin it... [CODE] q="select '" +col+ "' from '" +ta+ "'"; Class.forName(sq.getName()); cn=DriverManager.getConnection(sq.getConnstr(),sq.getUser(),sq.getPwd()); st=cn.prepareStatement(q); out.println("before query1"); rst=st.executeQuery(); [/CODE] [CODE] q="select ? … | |
![]() | This is my computer science project,we were told to make any software we wish to make,so I thought about making a calculator,below is the code,but it doesn't seem to be functioning well,could anyone help and tell me what went wrong(I am using borland cpp 4.5 compiler,this program uses getch() to … ![]() |
I don't really know how to make the code for the following question. I need a program that counts. The program will ask the user what he/she wants to count by and It will then count from 0 to 20 using what ever increment that user has chosen I want … | |
hi all!! here's the deal: i have this code [CODE] Sub SaveToTextFile() Handles Button1.Click Dim name1 As String = TextBox3.Text Dim st1 As String = TextBox1.Text Dim st2 As String = TextBox2.Text Dim br1 As String = "{" Dim br2 As String = "}" Dim desck As String = br1 … | |
Hi every one! :) Based on the example of StyledTextCtrl of the wxPython demo i managed to write a small application intended to Php code writing. Does anyone know how to set styles for Php codes? I found it's necessary to use SetLexer(stc.STC_LEX_HTML) because STC_LEX_PHP is deprecated. But i have … | |
anybody know how to upload or set piture into windows form using code..i want create a button like browse that can chnge background and every i relaunch application,bckground is still there..please anybody.. | |
Hello all I am using reading a config file in which there is a entry [CODE]code_list="515,522,560,000" [/CODE] while i am reading this string in my java application and using split on it and then assigning it to a string[].it is giving null pointer exception.needed code is as follows [CODE] static … | |
Hi to all, I created following table ------------------------------------------------------------------- create table interiors(id integer, name varchar(20), type varchar(20) default 'baby cot', price integer) -------------------------------------------------------------------- but, when i doesn't inserted any value of 'type', by the definition of table, it should take default value. when i fetch all rows by 'select' query, it … | |
My array $pids contains integers. For example: 18742 59274 94255 97124 18742 94255 94255 I wrote: [CODE]$pid = array_unique($pids); for($i=0; $i<count($pid); $i++) echo $i.' '.$pid[$i].'<br />';[/CODE] And the output is: 0 18742 1 2 3 What's wrong? Why array_unique() doesn't throw away duplicated values? | |
Hey. i'm uploading a file to my server via php and the file name is en email (x@x.com) and after the upload the files saves as x_x.com anyone knows why? is it something in the php.ini or maybe its a code thing? Thanks in advance. | |
I'm trying to create a back end for a food truck whose menu constantly changes. I want to make a form that can update text on another page. I'm new to PHP. I think I need a way for the form to update html. So far I have the form … | |
Hi I'm trying to design something from the ground up, using several php sources as inspirations (as indicated by the TPL suffixes). I can't get it to work so please if you could indicate what I'm doing wrong here: [CODE]<?php if (!isset($_GET['page'])) { $page = "news.php"; include ($page); } else … | |
Hello, I have these div tags, they're very similar but I just need to change the IDs. Is there anyway to condense this code? [CODE] $(document).ready(function(){ //Full Name var changeName = $('#changeName'); var cancelName = $('#cancelName'); var fullnameDisplay = $('#fullnameDisplay'); var fullnameChange = $('#fullnameChange'); var helperName = $('#helperName') changeName.click(function(){ $(this).hide(); … | |
The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and … | |
Hello again :D Now that I have my member's profile, how can I let other members post comments/messages on his profile? Thanks, |
The End.