199,114 Archived Topics
Remove Filter ![]() | |
I am new to PHP I need a little help in my php login script... I had 3 pages 1. index.html (user type username and password ) 2. login.php 3. logout.php ie [B][U]index.html[/U][/B] <html> /Main Page /////// <body> <form action="login.php" method="post"> <input name="uname" type="text" id="uname" /> <input name="pass" type="text" id="pass" … | |
I'm not sure if this should go in the MySQL board, or this, since it deals with both PHP and MySQL. But anyway, I am making a sports memorabilia site for a guy. On the item creation page, after I call the function to prevent sql injection, no matter what … | |
Hi all! How to use crystal report with ASP.net? How to choose database? pls help with an eg. Robins | |
Can someone tell me how the series is to be implemented in c 1,1,1 2,1 2 3,1 2 3 4 5, 1 2 3 4 5 6 7 8 here is my code but i am not able to get the answer [code] #include<stdio.h> int i,n1=0,n2=1,n3,n; void main() { printf("\n … | |
Hi, I am trying to break each record into 2 records but failed Is it possible? What is the correct way to do it? Thanks in advance!!! For Example: I have a table that contains 100 records . Each record has the following 10 columns: Col1, Col2, Col3, Col4, Col5, … | |
i have a machine problem to do. it should compute for the average grade of N scholars. N will be entered on the keyboard and the Student No. and Grades of the Scholars in *8 Subjects will be entered. sample output of program should be like this. STUDENT NO. S1 … | |
When using visual c++ does code that would work in other programs work as well? | |
I'd like to write a shell script that'd parse data from a pipe and then ask the user questions. ie: [code]echo "Ann Bob Charlie" | checkuser.sh checkuser.sh starting Ann is OK. Bob is not in the system. Add Bob? (y/n): [/code] I know a couple ways to read from a … | |
I am trying to use a switch statement and want the action to be log into a ftp server. I am not able to get it to work...can anyone help? here is what I have now....Thanks everyone in advance. $ftp_server = "ftp://MyFtpSite.com"; $ftp_server = $employeeftp; switch($attn1) { // this is … | |
I created a new Class Library, and want to use the MessageBox.Show function within a procedure in the class. Maybe this can't be done? I tried adding "Imports System.Windows.Forms" to the top of the class module, but it won't allow me to use that, either. Here's a simplified version of … | |
Hi guys. I will explain the problem I have in my own words. I have to make a program using the Fibonacci numbers, in which the user inputs a number of days and the original size a green crud population, and every 5 days the population changes by fibonacci numbers. … | |
can anyone here plz help me with my porblem.. im using VB6, i want to display a message whenever the user will close the window..] can anyone teach me how to code it.. | |
Say you have a class called example: [CODE]class example { int one; int two; };[/CODE] and you use this to get numbers from the user: [CODE]example number; cout<<"enter numbers"<<endl; cin>>number.one>>number.two;[/CODE] and then you call one function to manipulate the numbers and another to do some more manipulation. How do you … | |
Hello, I'm trying to simply copy the text from one .txt and create a new one and copying it to a new txt. I'm actually adding more text to that new file but that's not the part I'm having problems with. I could go through the entire .txt with this … | |
Hello DaniWeb, I am new and I have a problem thats driving me nuts, i'm sure its very simple to an experienced CS but I'm attempting to execute a couple conditional statements. basically, i am trying to write a program that determines the amount of shipping costs to inform the … | |
Hi, first post, and am a real novice, looking at the problems and solutions posted here. I have a database (Access 2003) where I want to change the name of a field within a query (to be used in forms and reports), depending on a decision the user makes. Can't … | |
Hi everyone, I have a problem with debugging a dll file. I'm trying to convert the epanet2.dll (EPANET: a free source-coded water resource program) into a 64-bit dll file for my project. When compiling, errors coding LNK2001 and LNK2019 occurred many times. error LNK2001: unresolved external symbol ... error LNK2001: … | |
Hi guys... I'm a student having a bit of trouble with my assignment. The assignment is to make a program for a phone company to calculate call durations, costs, discounts etc... I need the user to input call start time in 24 hour style... and end time. In order to … | |
In inbox link i want to show how many massage are in it,in such a way if in inbox there are 20 messages and only 5 are unread then to be shown in that link. like this [U]Inbox(5)[/U]. Also in inbox if message is unread to be highlighted,meaning all 5 … | |
[code=cplusplus] // file celsius to F // calculate from c to f in the depth st #include <iostream> using namespace std; float celsiusAtDepth (float); float CtoF (float); int main () { float depth; float tempF, tempC; // get depth cout<< " Enter depth in Km " ; cin>> depth; //calculate … | |
I was wondering if anyone out there had a good suggestion on an Installer program. I have a few friends that are interested in how I'm doing in my programming self-education, so I'd like to send them examples of what I've done. Now I've managed to use py2exe to create … | |
Hi All, I'm currently working on my project (which try to perform degree reduction for a Bezier curve). I've spent a long time trying to find library or useful class to help me perform matrix inversion. For example degree reduction in Bezier's curve (let's say from degree 3 to degree … | |
i am pretty new to assembly language and i wonder what is difference between the final binary output of the same program written in c and written in an assembly if they do exactly the same thing. if the binary output is the same then why use assembly language? if … | |
I am getting a windows error when I run my assembly program. It only happens when the user enters what is supposed to be entered, which in this case is the character 2. I am using FASM x86 architecture. [ICODE]include 'win32ax.inc' .data inchar DB ? numread DD ? inHandle DD … | |
I need help deleting from a vector. My program is about the josephus problem. It has to delete soldiers. It does deletes the first one but then it stops. Thank you! | |
A real simple one, just a question of understanding the python syntax I suppose. I won't waste your time by throwing the whole program at you, I think my question can be boiled down to this: [ICODE] a = ["cat"] b = ["bark"] wordinsa = input("Word: ") a.append(wordinsa) wordinsb = … | |
This is my program: There is a secret government organization called PIB which only accepts recruits who fit their criteria (shown below). If you fit any of the combinations of criteria, then you can apply to work for PIB. Write a program which asks the user appropriate questions (ask all … | |
i have a JS that generates fields on the fly i set a counter so that i can count the no. of fields the user generated now i need to loop through these fields and i dont know how to use that JS variable inside PHP for($i=0;$i< "JS VAR";$i++) i … | |
[COLOR="Green"][B] have to do this The constructor for the class should set the initial fuel level to 0.0 L (assume all fuel amounts are in litres). You'll need to use a Private Double class field. " [ICODE]Private FuelLevel = 0.0 As Double[/ICODE]........when i do like this i that error message.....[/B][/COLOR] | |
I have this project where I have push characters onto a stack from phrase until either one of the characters in encrypt1 is encountered that's also in the the phase. Then, it is supposed to stop and pop and print off the characters in the stack until it gets to … | |
If anyone has an idea for a program written in Java please reply. This is about my degree in cs so I would like to hear many ideas. I've seen many projects and haven't find something :-/ Thanks in advance Alex... | |
Ive began a book to learn c++ and in the first chapter I ran across my first question(thats never good...). In the book it says I should use this same template in every single c++ program I EVER make. The template is [CODE] #include <cstdio> #include <cstdlib> #include <iostream> using … | |
Hi, I am having the problem in nested list. Here is the code : [code=python]data1= [['Contacts',company.contacts.count() ], ['Notes', company.notes.count()], ['Met by', ], ['Industry', industry], ['Financial Investors', '31']] for item in metlist: data1[2].insert(1,item) [/code] Basically I am trying to insert the value for Met by in [ 'Met by', metlist->value] I … | |
a generalized list structure can be declared in C as follows: [code=C++] typedef struct element{ bool sign; union{ char data; element* link; }; element* link; } [/code] as you see in this approach an element can have either "data" or "element* link"(the last link is included in every element) and … | |
Hey everyone, I was just wondering if there is a method as part of the JTree class that would accept a parameter such as an instance of DefaultMutableTreeNode and change the content of the tree with that tree node as the root. I am looking for a method of doing … | |
i am doing HND in computing and i need to develop a software project; the problem that i have no idea what can i develop. actually if i can find a real world case or areal customer ,i will develop it for him for free; but he should not be … | |
Okay, continuing on with my little System access project I've been working on. Now I've gotten three different Python files in this Project. I'm using a main menu .py to offer option for the user to select from. Each option then opens one of the other two .py files and … | |
The requirements are actually simple, just asking to sort a few, say 10, 20 or so, intergers in ascending order. However, array and pointers are not allowed to be used, and just the fundamental knowledge about flow control are permitted. The hints are as follows: 1. Initialize a variable F … | |
hello all ,I have writen a program of LinList with First Node,but i don't kown to write the LinList without the First Node.Who can help me amend from the following program.Thanks ahead!!! [CODE]public class LinList implements List{ Node head; Node current; int size; LinList(){ head=current=new Node(null); size=0; } public void … | |
see buddies i make a program in c but it take enter 1st number then ask for opearator and then directly tell that wrong opearator iam tired but i cant find where is problem here it is ::::: [ICODE] #include <conio.h> #include <math.h> #include <stdio.h> #define PI 3.14159265 int main() … | |
hello, i got a error, declaration of string shadows a parameter...mind help me with it [CODE]#include <fstream> #include <string> using namespace std; int numToRom(string&,string&,string&); int main() { string data; string result; string romNum; cout<<"Please enter a number"<<endl; cin >> data; numToRom(data, result, romNum); cout<<"Output : "<<result<<endl; } int numToRom(string& data, … | |
Hey guys, I'm new to C++ and in desperate need of help. I'm trying to write a program that is like powerball. I need to generate six random numbers. The first five numbers need to be in the range of 1-55 while the sixth number is in the range of … | |
Hi all, Ok, I've just been trying to write a program that will convert MPH (miles per hour) into the number of minutes and seconds it takes that person to run one mile. This is what I have: [code=cplusplus] #include <iostream> using namespace std; int main() { double mph, count … | |
dear sir.... i have a problem... i have a data and the length is 2^64 which data type i have to use....? i don't know which one. plz tell me... thx | |
I am trying to do the [B]bubble sort[/B] to make my numbers in the array go from smallest to highest. Afterwards, I want to use the [B]SeqOrderedSearch[/B] to find the location of the number in the array. If the number is not found, i will have to state it is … | |
Hi, i am trying to do a project using Java language and MySQL. In my Java interface, there have a JComboBox which will calling MovieName from MySQL database. After i click on one of the MovieName in JComboBox, the schedule and also the information of the MovieName from the database … | |
OK, I have decided to download wxPython and Python2.6 . But I am confused which kind from here: [url]http://sourceforge.net/project/showfiles.php?group_id=10718&package_id=10559&release_id=629662[/url] I am running winXp Pro, and MAC OS X 10.5 . I don't know which win to choose, [U]32 or 64[/U], and [U]ansi or unicode[/U]? Also, osx [U]ansi or unicode[/U]? And … | |
hey guys... sorry for bugging you all but i have 1 last question and i promise that will be it. its probably simple but i just want to know how to go about raising a custom exception the result it expects is: [code] Traceback (most recent call last): ... Exception: … | |
Hi All, I'm trying to figure out how I canFirst, enter the number of salaries to process: 4 Now enter the 4 salaries to be averaged. Enter salary #1: 10000 Enter salary #2: 8000 Enter salary #3: -20000 *** Invalid entry. Salary must be positive. *** Enter salary #3: 25000 … | |
Hi, I keep getting an undefined identifier error when I try to do this: [Code=C] typedef char bool; // Make a bool type char false = 0, true = 1; // Make true and false void foo() { switch (something) { case 1: bool aaaaa; break; } } [/Code] It … |
The End.