199,114 Archived Topics
Remove Filter ![]() | |
Hi All, New to the world of PHP and such, and took on a project that I really should have farmed out, but too late now. Here is my question: the problem is the redirect for an error message in a contact us page. I have very specific standards set … | |
Thanks in advance for your help, everyone. ...So basically, for a program I have to do for this internship, I have to find a way to extract certain lines of temperature, density, and frequency data from a .txt file, and then pop them in 3 different string arrays. A typical … | |
Hi there, I was hoping someone might help me edit this [URL="http://www.pcmechanix.ca/mobile_redirect.htm"]mobile redirect code[/URL] so that it includes IPhones with the redirecting process. Any suggestions? FYI - Besides this minor exception, it is quite an effective code for redirecting mobile phones. You can try it for yourself, simply enter the … | |
Hi all, I'm new to this and trying out a few projects to get started. What I want to do is get the script to search the page for keywords kept in one of three arrays and highlight the word in a colour depending on which array it is in. … | |
Hi, am trying to Write a C++ program to create a data file with several attributes. Accept n person’s information and display the same. So far this is what I have tried to do. My chaalenge is how to read the command line ipnut from the user to the file … | |
Hey people, I've got a file, looks like this: [QUOTE]england america spain brazil germany australia[/QUOTE] now, I need to read it line by line: [CODE]country = open('languages/country.lang', 'r')[/CODE] and give a value to it, like: [QUOTE]A1 = country.readline()[/QUOTE] and then A2 for the next country and so on. So I … | |
Hi, I'm new here so first i would like to say hello to everyone :) I have been learning PHP for the past year on and off and have built a fully pledged website. Since my website first launched it has progressed into a full membership system which i love … | |
Hello, I want to retrieve weather information of 'Chittagong' city of 'Bangladesh' country from "BBC.com/weather" from java application. but i don't understand where from i should start. Please give me suggestions. Its urgent. Thanks, Shahid | |
c#, web forms, vs2003 i have this data grid view that im trying to create a shopping cart. my problem is when i data bind to each and every time if ther is previous binding that values still there how do i only bind the new value and display only … | |
[I]<<mod edit: [URL="http://www.daniweb.com/forums/thread244248.html"]split from here[/URL]>>[/I] Probably a long shot, since this thread is long since dead, but was hoping I could get a hand. I'm trying to do pretty much the same thing here, but I'm getting an error at this line: [code]self.storeli[self.counter].append(a)[/code] Throwing a KeyError: 0 at me, referring … | |
how do i insert a image into a directory through MySQL, rename it, generate a link and upload the generated link in MySQL......??? anyhelp will be really apprietiated.... and if its a tutorial its the best way out, i'm not good at PHP..... plz its urgent for me.. thx alot.. | |
I need a little help with this :icon_redface: if I use ifstream::read() and go past the end of the file, how do I tell how many chars have been read? thanks, Nick | |
[CODE]while((fgets(receiving array,50,file_ptr)!=EOF);[/CODE] How this while is executed? | |
As I was student, the bracketed plurals were absolute 'NO, NO'. With this simple function you can cleanly avoid putting bracket plural(s) after your numbers. If the number deciding singular/plural should not be automatically included, you can make version with [icode]str(n)+' '+[/icode] eliminated. If you want to put automatically space … | |
I am making a password genarator and having trouble with this part of code. I am trying to loop until length is meet but it only creates one char and I am trying to when it gets to certain char to skip and do nothing but loop until length is … | |
Hi, I Want to Send HTML mail with Image and logo. pls some one help me how i can do it. Thanks -keval | |
I have two forms named form1 and form2 respectively. And a MDI form named mdi1. I want to open form2 as a child of mdi1 when a button on form1 is clicked. How can I do this please help me. | |
I'm writing a small search tool that searches a SQL Server database using Full Text Indexing. I have two text boxes with four radio buttons between (NEAR, OR, AND, AND NOT) Ex. CONTAINSTABLE(jobs, *, ‘computer NEAR California’) This works fine but if I start adding more text boxes\radio buttons (As … | |
Hi guyz i am getting an error on my header information..the warnig is displayed when this part of code Runs echo '<a href="' . 'ecomm_catalogue_view.php?product_code=' . $product_code .'" >'; '</a>'; header("location: ecomm_catalogue_view.php?' . 'product_code=' . $product_code . '"); the warning displayed on top of each page is: Warning: Cannot modify … | |
Hi. I am a student, and I have an report to do for our Computer Programming Fundamentals class. We are required to demonstrate the use and function of constructors and the JOptionPane class. I have implemented a simple age calculator using Java as my demo, and I intend to go … | |
create a method sumOfDigit(String str) compute and display the sum of the digits found in str Example: String str = "1234hello12678"; sumOfDigit(str) -> returns 34 ---need some codes guys! can you HELP me?! | |
Can someone please explain to me why I cannot move variables from object to object. I've been getting no sleep and burning myself out learning java and it is driving me crazy here is the example. [CODE]import static java.lang.System.out; class ONE { public static void main(String[] args) { TWO addition … | |
public class Sorting { public static void main(String[] args) { int j=10; int[] arr=new int[10]; for(int i=0;i<arr.length;i++) { arr[i]=j; j+=10; } int num=Integer.parseInt(args[0]); bsearch(arr,0,10,num); } static void bsearch(int[] arr2,int first,int last,int key) { while(first<=last) { int mid=(first+last)/2; if(key==arr2[mid]) { System.out.println("Found the key"); } else if(key<arr2[mid]) { last=mid-1; } else if(key>arr2[mid]) … | |
Well, I'm a college student with a dread C++ online class and now my (insert explicative) professor wants us to write a program for a diamond. The actual assignment is... Write a program that displays a diamond of given the odd length (an odd integer size less than or equal … | |
Is there a reliable way to 'pluralize' english words with Python? | |
Hi, I am attempting to connect a form in Dreamweaver to an email account via a ftp webspace. I have the following generic code, (HTML form and PHP mail file) but I am not receiving emails... Would anyone have an idea of what I have done wrong and/or provide any … | |
Hello. Could someone please help me understand what's going on with this code? What I'm trying to do is read each line of a file into a vector<char const *>. I feel like the answer is probably extremely obvious but I just can't figure it out. [CODE]int main( int argc, … | |
Hey guys. This is driving me crazy. I can't see any code problems and I had another friend look and neither can he. EVERYTHING works PERFECTLY...all echos work right and everything and no errors get returned..the problem is $query4 and $query5 appear to do nothing..though i get no error..i get … | |
Hi there I am having some trouble with a script. What it does is uses the http request (similar to googles search suggestions) to replace the entire page content div, this works fine but some of these pages use javascript. one has a lightbox, another has contact form verification. is … | |
hii.... this is my first thread..hope i return satisfied.. i am a newbie in asp ,net...i want urgent help... the following snippet i am going to present was copied from some where though it works perfectly fine...i jst want to change its functionality a bit..............its basically a drop down box...i … | |
hello! i have to find time in nanosecond of a particular process and for that i am using clock_gettime() function. i tried different codes i got from net but getting same error [QUOTE] error: ‘CLOCK_PROCESS_CPUTIME_ID’ undeclared (first use in this function)[/QUOTE] i have included relavent header file of time also. … | |
Hello, I defined a list in a class and want to do a class containing get/set functions. How can I set or get a data struct (list element) that has variables of different type and each variable is taken separably as an input from the user (I do the input … | |
Hello! I have constucted a code for the card game 21. The code uses inputDialogs to "talk" the the player. I thought my shool assigment was over by doing just that...I was wrong, our teacher dumped a new bomb on us. With these kind words; [I]Develop task 5 (Twenty-one card … | |
Hi. I'm new to daniweb and i am also a novice programmer. I have this assignment to get a shape, then a shape inside that one, and then another inside the second one, and then fill each shape in with different patterns. Here is an example. if the user enters … | |
this is what i have so far, i need to combine 2 c strings, print them backwards and figure out whether they are a palindrome or not. (the for loop is where i stopped, it could be wrong) [CODE]#include<iostream> #include<cstring> using namespace std; int main( ) { char s1[15], s2[8]; … | |
someone please help me do the loop .....thanks ... ..here is the problem ...the user will enter integer values until 0 is entered. The program will find the lowest and highest values entered.It will also calculate the total number of value entered..... [code]#include <iostream> #include <iomanip> using std::cout; using std::cin; … | |
i have a class, [code=java] class myapp // for example { // some variables used by UI and telnet class // i.e. my edit text controls and telnet object oncreate() { // initiate UI elements like 2 edittext controls and ascroller and a button // start telnet thread } class … | |
I am a student working on an inventory app. Until this current assignment I felt I half way knew what I was doing. What is required is the following: [B]~Modify the program to handle multiple items:[/B] should work with this code added - it worked on another program [CODE]//Prompt user … | |
here is one program which has 1 abstract class without abstract method. its also works fine. Then what the use of abstract class, any how it does not allow to create objects, we can use this with concrete class to implement method defined in abstract class which we have to … | |
Okay so i have to get my VB programme to connect to an access database which i did, just dragged and dropped and clicked. My data base has 3 tables,products, customers and orders. I have to be able to edit, update and delete customers and products. People also have to … | |
hello there... acctually i m creating a desktop application in vb.net so on the data insertaton page i had got an error that is "the ConnectionString property not initilized".. so i m posting all my code here... kindly help me.. [code] Public Class Registration Private Sub Button1_Click(ByVal sender As System.Object, … | |
I am a VB programmer, so I know a lot about programming. I am just new to C and want to ask a simple question. How can I read a file and use strtok with space as the delimiter and have access to all tokens in memory? The example provided … | |
Hi again! I have a db table named "users" . Within that table, a column named "havechildren". When a client registers on my site, they will choose whether they have children or not by a simple yes or no drop down. That information is stored in my table in the … | |
Hello, I am trying to use this code: [code] PictureBox1.ImageLocation = "http://avatar.xboxlive.com/avatar/" & TextBox1.Text & "/avatar-body.png".Replace(" ", "%20%"); [/code] The error I get is: [code]Error 2 Operator '&' cannot be applied to operands of type 'string' and 'string' C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Lucky Se7en\Lucky Se7en\GamercardViewer.cs 27 37 Lucky Se7en … | |
How could I [CODE]print();[/CODE] the '<' and '>' signs? You can't escape character them ('') Say, for example, I wanted to Print(); "The <font> tag is awesome" It would print out: "The tag is awesome" Thanks, Mitch | |
Hi all, I have a cities table in MySQL with 3 rows in it. Table 'cities' row 1 'city' row 2 'statename' row 3 'stateabbreviation' With 52,593 cities in the DB. I would like to create an auto search form so that while typing a city in it will show … | |
So hopefully I am aloud to post this here. I am doing great in class but this chapter and especially this programming challenge has got me stumped. So I am in need of help. Heres the question: Create an application that when a user enters a positive integer value in … | |
Can anyone please help me on this? The server is supposed to see which computers are online and which are not. if the workstation are not online the computer should not be seen on the server's list but if it open again the computer name should appear on the list. … | |
I'm trying Euler problem 3 on [url]http://projecteuler.net/[/url] for fun. I think I have a program that works (with very small numbers), but it takes too long. Can anyone give me some hints to improve speed? [CODE] /** * The prime factors of 13195 are 5, 7, 13 and 29. * … | |
Hey guys, Today I find myself stuck working on a small project. I am reading information from a pipe and want to output that information to a HWND. The HWND is already created and I'm using ::SetDlgItemTextA() to properly append the data within the multi-line "edit" box. This kind of … |
The End.