199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for niths

hi i am new to php. i am getting the following error. ------Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login\login.php:23)----------- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>username:</td> <td><input …

Member Avatar for niths
0
120
Member Avatar for persianprez

I have 3 functions working together, but I only have abundant returned every single time, I don't know what is wrong [CODE]def sumDivisors(n): total = 0 for counter in range(1, n): if (isDivisor(n, counter)): total += counter return total def checkForPerfect(n): total = sumDivisors if (total == n): return 'Perfect' …

Member Avatar for persianprez
0
205
Member Avatar for virspy

Hello Friends, I want to send emails daily 3 times,6 times a day automatically with my PHP code. the people who r registered for them only. i require help in sheduled mail code. iam not getting any idea on how to send scheduled mails. r provide any links related to …

Member Avatar for as.bhanuprakash
0
2K
Member Avatar for jallan2010

[code] Private Sub PopulateProductList() Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Dim strSQL As String Dim objListItem As ListItem Try strSQL = "SELECT [Sr No], [First Name] FROM [Lani]" con = New OleDbConnection(connectionString) con.Open() cmd = New OleDbCommand(strSQL, con) dr = cmd.ExecuteReader() lblani.Items.Clear() Do While …

Member Avatar for pritesh2010
0
148
Member Avatar for kuteinheart

Hey ppl, I have a couple of php codes for displaying the list box, depending on the selection from the first list box... I am trying to diplay all the list box on the same page using AJAX The problem is, My first , second & the third list box …

Member Avatar for as.bhanuprakash
0
118
Member Avatar for mldardy

I have two datasets called ds and ds1 that I want to merge into a grid. I get data from the first dataset to display in the grid but the second dataset where I want to display a count I don't get any data from it. I am trying a …

Member Avatar for Renukavani
0
224
Member Avatar for MehdiAnis

I have a WinXP Developer machine with Eclipse and workplace for all my PHP projects. I also have my UbuntuLAMP server in LAN. I want to create/edit php/hetml files on my Development machine, then publish the files to UbuntuLAN server. How? More over is there an automated way to:- 1. …

Member Avatar for MehdiAnis
0
610
Member Avatar for anuraggupta16

I am trying to connect to Mysql from Jsp in Tomcat and I am getting Java.lang.NullPointer Exception. Please provide any help as soon as possible. I have set the web.xml and the server.xml properly. My web.xml contains: [code=xml]<description>MySQL Test App</description> <resource-ref> <description>DB Connection</description> <res-ref-name>jdbc/TestDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>[/code] server.xml I have …

Member Avatar for jwenting
0
158
Member Avatar for shiv0013

i want to send mail through from my website. i used the below code [CODE]String host="smtp.gmail.com", user="username", pass="password"; //host = smtp_server; //"smtp.gmail.com"; user = jsp_email; //"YourEmailId@gmail.com" // email id to send the emails //pass = jsp_email_pw; //Your gmail password String SSL_FACTORY ="javax.net.ssl.SSLSocketFactory"; String to = email;// out going email id …

Member Avatar for jwenting
0
147
Member Avatar for juju bean

I am not sure how to explain the issue that I am having. I believe that I am successful with the exception of this part of the assignment and I have been working on this for hours and need help. This is what I am having trouble with:In the subclass, …

Member Avatar for jwenting
0
384
Member Avatar for archb

I want to give command line arguments to a file and then executive that python file from within my master python file. How should I go about this? I don't really care about the standard output. The file that I want to executive from with my file just outputs all …

Member Avatar for Tech B
0
207
Member Avatar for meistrizy

Thanks in advance for your help. I am writing a program that is supposed to display a menu and ask the user to enter a list of his/her favorite games, then display the games if they choose to. The problem is that when it comes to entering the names of …

Member Avatar for VernonDozier
0
122
Member Avatar for hell04

Hi all, I have the following task; Extend an ArrayList of Integer by adding a method called 'sum', that returns the total sum of the elements of the list of integers. Such that each time the method is called sum up all the integers. So I started by making the …

Member Avatar for tiny7415
0
6K
Member Avatar for kumiyare

Hi every body!, I am new to PHP and I'm developing a basic PHP CMS, now specially I'm developing the database backup & restore section of the CMS, so I've experienced one problem. I want that CMS users able to upload their database back ups to restore, they will use …

Member Avatar for kumiyare
0
98
Member Avatar for achiman

Please is it possible to have two where statement in an sql query? for example: SELECT * FROM Persons WHERE FirstName='Peter' but I want another condition which will also pass the query like: SELECT * FROM Persons WHERE house='duplex' or car='Honda' Is the second query correct if not how do …

Member Avatar for debasisdas
0
97
Member Avatar for MDanz

this curls a webpage correctly, the bottom 5 lines of the code is where its not working correctly. It should collect the keyword($search) from the page and the first 5 words before the keyword and after the keyword. i've only got the first part working, it collects the keyword and …

Member Avatar for somedude3488
0
86
Member Avatar for mrnobody

Hi, I'm doing a program in dual core processor. I'm wondering, is it possible for write a program that is core specific..? For example, thread A only runs at core 1 and thread B only runs at core 2. I'm currently looking at [URL="http://www.threadingbuildingblocks.org/documentation.php"]Intel® Threading Building Blocks (TBB)[/URL].. Am I …

Member Avatar for Ancient Dragon
0
128
Member Avatar for Enders_Game

I'm trying to make a script that downloads from a specific website etc... it's done and everything. The problem is I need to compile it to a .exe for people to use and I noticed there isn't a py3exe to do this... So I downloaded python 2, and tried to …

Member Avatar for jcao219
0
156
Member Avatar for ejazmusavi

Hi Experts! I am working on drawing in C#. I have a problem in this program; when I draw a new object on mouse event and paint event the previous drawn object disappears. My code is as follows. [CODE] private void picMain_MouseDown(object sender, MouseEventArgs e) { MouseDownPoint = e.Location; mouseMovePoint …

Member Avatar for Diamonddrake
0
578
Member Avatar for Mitja Bonca

I would like to know how can I transfter a string value (a name or something) from Login class over static class to Form1? This code I have: 1. In program class: [CODE] static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] …

Member Avatar for kvprajapati
0
258
Member Avatar for Kyle Wiering

Ok, here goes, I've got a staticwindow where I am putting the information from keyboard presses and onscreen button presses. When I run the program, I can press the keys and they show up just fine. I then press the button on the screen with my mouse which also works. …

Member Avatar for Frederick2
0
446
Member Avatar for Midnite002

ok I have this PHP email script working and what I wanted to know was is there a way to popup the THANK you for your message reply on a submition or does it have to go to a totally new page to do so ... Currently the script loads …

Member Avatar for JRM
0
87
Member Avatar for zendet

Hey guys, i need some help with a hangman project for school. The outline is: make program that plays the game of hangman, read the word to be guessed into a string variable. ( The programmer must make about 10-20 words to have one randomly picked each time a game …

Member Avatar for WaltP
0
456
Member Avatar for zrd0808

I am trying to copy a string into an array then write bits out to a file accordingly. (compression assignment). here is the code [code=c] // strnewdup(const char* s) returns a copy of a // null-terminated string, with the copy stored // in the heap char* strnewdup(const char* s) { …

Member Avatar for zrd0808
0
2K
Member Avatar for a.w.howell

Using Python with pylab included, I have created a plot. In the plot's title, I am including a variable from the program. I save the plot as a ps and every thing looks great. However, when I try to print the document to paper or to a pdf, the numbers …

Member Avatar for woooee
0
144
Member Avatar for smile_pls

Hello DW!, I am in a beginning stage vb user. I need a small help. I need to create a program, if I entered the "product code" in a text box / search box, it wants to display its full details from database, such as Product code, product name, description …

Member Avatar for LennieKuah
0
312
Member Avatar for txwooley

I have an old computer that doesn't have internet access. It does have Python 2.6 which supposedly has Tkinter. The problem is, it returns an error that Tkinter module is not installed. I searched the net, and saw that I may have to manually install tcl/tk. Done. I tried [CODE]import …

Member Avatar for woooee
0
163
Member Avatar for jeffery12109
Member Avatar for HiHe
0
101
Member Avatar for OfirSh

I have a problem I have a long table with many costumers, each costumer have between 70-100 bills how can i get for each one his top 5, all the replies giving me only the top 5 of the first.(MsSQL!) 10X Ofir

Member Avatar for jaysapidocs
0
296
Member Avatar for hondros

This is a nice command prompt I wrote up a month ago. It's still in the Beta stages however. Anyways, here's a brief overlay of what it does: 1) Takes user input of a function, creates an x/y table and plots it 2) Change the x-range 3) Graph waves (Main …

Member Avatar for hondros
0
222
Member Avatar for Ragnarok

I have been picking up little bits of JavaScript for a while now and I can do a lot of basic scripts like disjoin (sp) rollovers and redirects and stuff. Now I want to be able to create advanced scripts like games and advanced form handling things. I find that …

Member Avatar for Airshow
0
242
Member Avatar for Asthuran

I've been looking around the site for an answer to this, only thread i've found pertaining to it was this: [url]http://www.daniweb.com/forums/showthread.php?t=96516&highlight=how+do+i+get+my+function+to+ask+a+question+and+wait+until+the+user+presses+a+key+in+C%2B%2B%3F&page=2[/url] and that thread wasn't very helpful, so, i'm sorry if it's been asked before somewhere. anyway, onto my question: The title was pretty self explanatory, I want to know …

Member Avatar for WaltP
0
1K
Member Avatar for Zurompeta

Within a function, I am creating a new variable that contains an HTML element. The variable declaration works fine in Firefox for example, however it comes up "undefined" in Google Chrome. [CODE]function updateName(num) { name = document.getElementById("id_name_"+num); } [/CODE]

Member Avatar for Airshow
0
116
Member Avatar for fugnut

Hello all, I am writing a program that reads in from a file and depending on the first character read in, it will then read in other data and make calculations. The file has data similar to "C 10 or T 10 20" The letter being the shape and the …

Member Avatar for MyrtleTurtle
0
150
Member Avatar for Ian Morrison

I'm implementing an [URL="http://www.objectmentor.com/resources/articles/acv.pdf"]acyclical visitor[/URL] in my project and having some difficulties with the requisite dynamic_cast. The setup looks something like this: [CODE]class Visitor; class Entity { public: virtual void accept(Visitor &v) const = 0; }; class MyClass ; class MyClassVisitor { public: virtual void visit(const MyClass &obj) = 0; …

Member Avatar for Ian Morrison
0
96
Member Avatar for ChPravin

Hello All, Is there any way to completely test a Circular Queue Implementation?I have written an array based implementation and need to know if it works for all the cases.I was just wondering how to come up with exhaustive set of test cases to test the code instead of the …

Member Avatar for ChPravin
0
582
Member Avatar for MDanz

I have a keyword "car" in the sentence. one two three four five six seven [B]car[/B] eight nine ten eleven twelve thirteen fourteen fifteen. i'd like it to echo three four five six seven [B]car[/B] eight nine ten eleven twelve because 5 words before and 5 words after, including car. …

Member Avatar for MDanz
0
91
Member Avatar for Designer_101

Hey I was wondering how you allow the user to highlight text they've typed (in a form) and click a button to edit its style (placing tags around the highlighted text). Could someone explain this a little further and perhaps provide an example. Thanks in advance.

Member Avatar for Designer_101
0
103
Member Avatar for hiz460

Hi, I want to create a code, which basically adds one to the last customer ID, and shows it in a combo/list box. For example, if the last customer ID used is 7, then it would add one, and show 8 in the combo/list box. Is this possible? How do …

Member Avatar for hiz460
0
86
Member Avatar for JainishP

This is the class I created to make a MinHeap from data that is being inserted into it: [code]public class MinHeap { protected int [] a; protected int lastindx; public MinHeap() { lastindx = 0; // heap starts at a[1] a = new int[1]; } // is the heap empty? …

Member Avatar for georgeh1
0
435
Member Avatar for brightstar
Member Avatar for Mr.Bling Bling
0
2K
Member Avatar for pateldeep454

My task is: The Captain Crunch decoder ring works by taking each letter in a string and adding 13 to it. For example, ’a’ becomes ’n’ and ’b’ becomes ’o’. The letters “wrap around” at the end, so ’z’ becomes ’m’. Write a method that takes a String and that …

Member Avatar for pateldeep454
0
902
Member Avatar for motters

hi does any one know why this code won't display my links [CODE] <div id="columnRight"><div id="innerColumnRight"> <div class="marginBox"> <h1>Second Menu</h1> <!-- Vertical Navigation Start --> <div id="navVertical"> <ul> <?php do { ?> <?php echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>'; ?> <?php } …

Member Avatar for motters
0
103
Member Avatar for tariq1081

my assigment tell me to: Write a program to randomly generate a 3-digit number N (it is ok if the number has fewer than 3 digits). Create a number NN which is N placed next to it. Example, if the number N is 263 then NN is 263263. If N …

Member Avatar for armsracer
0
106
Member Avatar for degenz

i am having a problem where i want to give user an option to select more entry from one dropdown...example : <form name="form1" method="post" action=""> <label> <select name="service" id="service"> <option value="service1">service 1</option> <option value="service2">service2</option> <option value="service3">service3</option> <option value="service4">service 4</option> <option value="service5">srvice5</option> <option value="service6">service 6</option> </select> </label> </form> in this case, …

Member Avatar for katarey
0
118
Member Avatar for Freespider

hello... i want to separate string like "!string" i need to put the "string" to some char*... i did char firstWord[10]; sscanf(text,"!%s",firstWord); why its not woking? and how to make it work? i try to search, but nada....

Member Avatar for WaltP
0
132
Member Avatar for manutd4life

Hello just Admit in a university and new in C++ i just wanted to know how to do area for several circle How to modify the code below to do the area of circle?? here's the code: [code=C]//Calculate area of a circle #include <cstdlib> #include <iostream> using namespace std; // …

Member Avatar for Tellalca
0
130
Member Avatar for dabobrow

Modal not showing up when show is called, also error on loading page. Attaching code below, can anyone help me discover my syntax / logic issues here? NOTE: Did some research on this before posting, some claimed it can be an issue of where the modal is placed on the …

Member Avatar for dabobrow
0
90
Member Avatar for pymatio

Hi everyone, I'm trying to make a Space Invaders clone with pygame (python SDL library, if you hadn't guessed ;) ). The problem I'm having is that when the space invaders move down and change direction they break formation (some move left/right to far). Here is what I think is …

Member Avatar for pymatio
0
611
Member Avatar for jeffery12109

as you know I'm making a text adventure using Python. Should I put the monster's stats into a class or dictionary? Please suggest. All suggestions welcome!

Member Avatar for jcao219
0
140

The End.