199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coril

I'm trying to read user input and store it as a string including the whitespace. I did a search for a solution and was pointed to fgets() or scanf(%[^\n], str). But both these solutions give me an error. This is what I have: [CODE] scanf("%d", &input); if (input == 1){ …

Member Avatar for Narue
0
1K
Member Avatar for zhackon

Look, Im planning to make a payroll program using Turbo C++, i'm a beginner. please help me or just give me steps on how to create my own program please?,,,,, :confused: :confused::confused:

Member Avatar for zhackon
0
313
Member Avatar for kehayov

[CODE]public class TestMySource { public static void main(String args[]) throws java.io.IOException{ char ch; for (;;) { System.out.print("Please insert a char: "); ch = (char) System.in.read(); if (ch == '.') { break; } } } }[/CODE] output: Please insert a char: Please insert a char: Please insert a char: a Please …

Member Avatar for JeffGrigg
0
163
Member Avatar for extemer

hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... [CODE] <?php …

Member Avatar for Airshow
0
182
Member Avatar for divyakrishnan

Hi.. I want to show a progress bar when downloading a file. In my script I am clicking a hyperlink and waiting for a while to appear the download box. I want to display a progress bar before appearing the download box. I had seen many examples for displaying the …

0
126
Member Avatar for AK47

I am creating a business software package in visual basic.net that will handle invoices, quotes, purchase orders, inventory items, customers, etc. This program is multi-user meaning that different people could each be running an instance of the program on their computer, with each instance modifying a central database. The problem …

Member Avatar for gearup4it
0
276
Member Avatar for megachip04

I am trying to let users upload .flv files that will be played through flow player. While I am not getting an error, the file is not copying to the ftp folder. The upload script I have is [CODE] if ($_FILES["file1"]["type"] == "video/flv") { $path1 = "uploads/".time().'.'.$HTTP_POST_FILES['file1']['name']; $path1 = str_replace …

Member Avatar for cereal
0
150
Member Avatar for mkbuster

I need to sum up the values of 3rd column and 4th coulmn based on the following conditions 1) If the 1st column (i.e ctpy) of the record matches with any other record && first two character of the 2nd column (ety), matches with first two character matches the 2nd …

Member Avatar for mkbuster
0
468
Member Avatar for ecdmonkey

Background: I have a Drupal site with around 150 users. Each of those users has a spreadsheet that they send to me weekly. I've uploaded all of the spreadsheets to an Editgrid account and I've created a custom drupal block to display there Live spreadsheet and edit it so removing …

Member Avatar for ecdmonkey
0
271
Member Avatar for Midar01

Pease please help.. with visual basic 2008. I am trying to get ListView to work but it does not for me. I already set up ListView with 3 colums, but the coding is not working first column called ITEMS, second Quantity and 3rd is PRICE. All items are on Buttons …

Member Avatar for Midar01
0
153
Member Avatar for masterjiraya

the problem here is When I check 1 checkbox there's no mysql error but if the checked checkboxes are more than 1 then an error occurs. it only takes the first but the following checkboxes occurs an error. the code can be downloaded here. the file of the problem is …

Member Avatar for masterjiraya
0
170
Member Avatar for Caraka

I am having trouble structuring an sqlite update statement that has multiple parameters. The following code does not raise an exception, but nor does it update my table. After extensive googling and searching Daniweb, I think I'm looking right at the blindingly obvious and missing it. I have a list …

Member Avatar for Caraka
0
4K
Member Avatar for jovillanuev

Guys, Please take a look my script. my object here is to get the most recent date from table 2. what if the recent date from table 2 is less than the date from table 1? [CODE] Table1 Type-Date1 -------- 1-2011-07-16 2-2011-07-16 3-2011-07-10 4-2011-07-10 Table2 Type-Date2 -------- 1-2011-07-06 2-2011-07-07 3-2011-07-01 …

Member Avatar for Pgmer
0
102
Member Avatar for masterjiraya

File name:index.php [CODE=PHP] <html> <head> <script type="text/javascript"> function showUser(str, query) { if(document.getElementById("Author").checked==true) { query="author"; }else if(document.getElementById("bookname").checked==true) { query="bookname"; }else{ document.getElementById("textHint")="please select"; } if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } …

Member Avatar for karthik_ppts
0
6K
Member Avatar for jeraldmuthu

Hi i'm new to xslt the below code for getting chart in pdf after clicking the chart checkbox [CODE] <xsl:if test="$chartimage"> <fo:block text-align="center" space-after="8em"> <fo:external-graphic xmlns:fo="http://www.w3.org/1999/XSL/Format" scaling="uniform"> [B]<xsl:attribute name="src">[/B] <xsl:value-of select="concat(concat('url(',$chartimage),')')" /> </xsl:attribute> </fo:external-graphic> </fo:block> <xsl:if test="$chartPageBreak='true'"> <fo:block break-after="page" /> </xsl:if></xsl:if> [/CODE] bold coded setted attribute name through that they …

0
144
Member Avatar for king03

Hi there guys I need help in my c# program. I have an enrollment form for students and I can't add the additional charge of 1500 for male students. As you can see in my attachment, the textbox below which contains 9164 must be 10664 if a student is male. …

Member Avatar for Mitja Bonca
0
138
Member Avatar for kylelendo

Hello Friends Does all computer viruses have .exe extension???? If not then how do they get executed in the main memory?? Thank you

Member Avatar for Netcode
0
87
Member Avatar for kumar500

Hello friends i know little bit of java programming.but i want to learn Mobile programming.now am starting mobile proramming in J2ME and android..My question s if am well in the mobile programming wil i get job...Mobile programming wil giv good future for me..?pls giv me a good answer..thank you..

Member Avatar for peter_budo
0
125
Member Avatar for bhagawatshinde

Hi, can anybody suggest me how to take backup and restore of sqlexpress. I have used sqlexpress in my project i have little bit idea about taking backup and restore of sql server using SMO but unaware about sqlexpress. Can anybody help me please.... Thanks in Advance

Member Avatar for nick.crane
0
147
Member Avatar for Mike Bishop

Can someone please tell me what i am doing wrong with this code. I have created a dataset and want to push that data into crystal reports. [CODE] Dim rpt As New CrystalReport1() 'The report you created. Dim myConnection As SqlConnection Dim MyCommand As New SqlCommand() Dim myDA As New …

Member Avatar for IrshadIkhlas
0
551
Member Avatar for mrjimoy_05

I am a newbie in Visual Studio (C#). I want to store a text read from a text file and display it on a TextBlock control, but just for a specified row. How can I do that? I've try to search on the internet, and most of them just show …

Member Avatar for nick.crane
0
1K
Member Avatar for boshu

Hi There I am building some SW modules in Linux environment and at the end of a build the artifacts are stored in the env in a particular folder called HW. This HW folder contains a number of folders underneath for individual targets and those contains one or more folders …

Member Avatar for boshu
0
132
Member Avatar for reygcalantaol

Hello guyz, I'm glad I finally back here. I need help using the preg_match function. I am scraping url and I need to get the specific value from the html tags. Here is the string [I]<p><b>1,664</b> Referring IP addresses</p>[/I], I need to get [I][B]1,664[/B][/I] How can I achieve it using …

Member Avatar for reygcalantaol
0
128
Member Avatar for TrustyTony

As [URL="http://www.daniweb.com/software-development/c/threads/377568/1625821#post1625821"]Goddess Narues' C code in C forum[/URL] was over my head and her critique of simplistic solution maybe overflowing the integer range was valid in C, I worked out a recursive solution more suitable to my brain in my preferable language. Maybe one day I put in C, now …

0
270
Member Avatar for yelolimo

Hello all, I've been struggling with this for the last 3 days and just can't seem to figure out where the breakdown is occurring. I have successfully extended an existing class and have added a new property to that class. However when I go to pass the value into the …

Member Avatar for Pgmer
0
165
Member Avatar for extemer

hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... <?php mysql_connect("localhost","root","")or …

Member Avatar for ddymacek
0
179
Member Avatar for marvolo1300

Hi, I'm just trying out something with returning values to a variable and I've encountered a problem. Basically the program is supposed to return the value of [CODE]string x[/CODE] as either true or false from the [CODE]isEven[/CODE] function, then the [CODE]void output[/CODE] function should output the value of [CODE]string x[/CODE] …

Member Avatar for marvolo1300
0
96
Member Avatar for PratikM

Hi guys, I need to make a c++ project for my camp and i'm stumped and don't know what to do. I only know the very basics and i don't want to make any card games like black jack or RPG's cause people are already doing that in my camp, …

Member Avatar for pseudorandom21
0
115
Member Avatar for sid78669

I have the following code in a .js file: [CODE=Javascript] function clearVillage() { /*Do Something...*/ } [/CODE] Now in my HTML page generate through PHP, If I call this function through a link like this: [CODE=HTML] <a class="fg-button ui-state-default ui-corner-all" onclick="clearVillage();" >Clear Village</a> [/CODE] It works. However, if I replace …

Member Avatar for sid78669
0
106
Member Avatar for Amit33sharma

Please help me for developing a vb6 application for accessing multiple web cams simultaneously (is there any example source code in vb6.0) Thanks, Amit

Member Avatar for creophagist
0
1K
Member Avatar for decade

Im sure most of the php developers here knows how to use mysql or mysqli now my question is Which is better? Mysql or Mysqli? And why? please answer me guys.

Member Avatar for decade
0
98
Member Avatar for betny

Hi,Someone please shade somelight about this- how arguments are to be passed from a run.bat file Thanks Best Regards Bethuel

Member Avatar for thines01
0
321
Member Avatar for vishal1949

I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It …

Member Avatar for thines01
0
2K
Member Avatar for glycerine

I hope the title made sense. ok ive got a table in a PostgreSQL database that has a few coloumns in it. What im tryting to do is the following: [CODE]<?php $totaltimetodayresult = pg_query($link, "SELECT SUM(acctsessiontime) AS totaltime FROM radacct WHERE acctstarttime LIKE '%".$today."%'"); while($totaltimetodayarray = pgfetch_array($totaltimemonthresult)){ $totaltimetoday = $totaltimetodayarray['acctsessiontime']; …

Member Avatar for glycerine
0
708
Member Avatar for rayden150

Hello, I would like to know how do I compare two chars properly Im making a healthcare project, its pretty rudimentary, Im trying to make a comparison between a char that the user inputs and the char that is in a structure that is saved in a .txt file So …

Member Avatar for Ancient Dragon
0
298
Member Avatar for manugm_1987

Hi Is it possible to obtain complete path name using mouse click i.e when i click on a file say file.txt on c:\ i shld get the result as c:\file.txt. Or say if i have opened the file and the file is my active window how to get the path …

Member Avatar for Ancient Dragon
0
152
Member Avatar for caut_baia

Hi.I have a piece of code that compiles without even a warning on the borland 5.5 compiler yet complains bitterly when compiling with g++.I've heard that g++ emits more portable code but shouldn't they both be standard compliant?From what i've read in the '98 standard book this should be legal …

Member Avatar for mike_2000_17
0
633
Member Avatar for jkrueger

Thought all of the following was handled and not: 1) python runs script which opens file and prints to screen OK 2) when cx_freeze distilled script is run it reports file to open is not there, when it is 3) the distilled script can be run from a term with …

Member Avatar for jkrueger
0
186
Member Avatar for sergent

Whats the difference between [CODE]using namespace NameSpaceName;[/CODE] and [CODE]namespace NameSpaceName;[/CODE] ?

Member Avatar for mike_2000_17
0
135
Member Avatar for Majestics

I have encountered ORA 00604 Error, while i was accessing database from my app over Vista system over network, it runs ok on database system... Can any one help me please finding out the solution.

Member Avatar for Majestics
0
94
Member Avatar for zaxahmed

Hello all! I am a completely new to programming in Java and I was recently given a tutorial in which I was supposed to create a 3x3 square grid. I am attaching a file as to give you a clear picture of what I must do. I have no idea …

Member Avatar for hfx642
0
393
Member Avatar for Kleiner

Hi. I am working on improvement of my program. Here is it's code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) drink= wx.Button(panel,label='Drink',pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.drink, drink) self.Bind(wx.EVT_BUTTON, self.food, food) def food(self, event): box = wx.TextEntryDialog(None, 'What is …

Member Avatar for darkmikey
0
693
Member Avatar for jamesyrawr

Hi I'd like someone to just give me a hand getting a form to open up facebox and submit the form details via that. Ok they process I'm looking for help on is this When a user enters the details into the contact form and clicks "submit" it needs to …

Member Avatar for Airshow
0
140
Member Avatar for hennelh

A recent assignment involved using very large integer values. A formula and very large x values were given and we had to compute the value of f(x). The tutor suggested using long long values as the 0 < x < 10^18. The function F(x) = F(x/2) - x if x …

Member Avatar for hennelh
0
4K
Member Avatar for teha_toshio

[CODE]1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A * * * * * * * * * * * * * * * * * * * * B * * * * * * * * …

Member Avatar for teha_toshio
0
174
Member Avatar for tubby123

What is the number of swaps required to sort n elements using selection sort, in the worst case? The site i am referring says theta(n). Shouldnt it be theta(n2), cuz worst case it requires n swaps for each of the n elements.

Member Avatar for Narue
0
85
Member Avatar for bklynman01

I have an application that allows the user to upload information from and Excel sheet. Since the user is more familiar with Excel, they prefer to do it this way. My software will close the workbook with [ICODE]Me.exApp.Workbooks.Close()[/ICODE], but if you have the task manager running, you can see the …

Member Avatar for ShahanDev
0
141
Member Avatar for rakwel10

pls help me fix the error. What and where is the problem? Thanks for the help! Here is the error message >> [B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )' …

Member Avatar for ddymacek
0
105
Member Avatar for mualanj

how can i populate javascript array value from my text box, suppose i have a array like this var a=new array("1.00","2.00"); instead of 1 2 i want to put text box value in there,which user will enter. thx in advance,really appreciate it.

Member Avatar for Airshow
0
100
Member Avatar for weeon

Im view total form total = harga * unit; View Sample Images : [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319"]http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319[/URL] [CODE]<table border="1"> <tr> <td bgcolor="#6699FF">jenis</td> <td bgcolor="#6699FF">harga</td> <td bgcolor="#6699FF">unit</td> <td bgcolor="#6699FF">total</td> </tr> <tr> <td><?php include"koneksi.php"; $result = mysql_query("select * from tpintu"); $jsArray = "var prdName = new Array();\n"; echo '<select name="prdId" onchange="document.getElementById('hargaBarang').value = prdName[this.value]">'; while ($row …

Member Avatar for ddymacek
0
104

The End.