199,114 Archived Topics
Remove Filter ![]() | |
I have started to code a website with a simple PHP dynamic page. I am getting a error message on the homepage "Notice: Undefined index: page in C:\w\www\index.php on line 26". However the page does come up underneath the error. Can some one please take a look at the code … ![]() | |
I recently completed a "fun" program where it asks the user questions and outputs answers. I submitted it and my professor said all was great, except he wanted me to implement methods into the program. I have NO idea how o do the methods. Can someone use my code to … | |
[code=syntax] '''calculate the future value of an investment after 10 years''' def calcValue( initialValue, interestRate ): period = 10 investmentValue = initialValue for i in range(period): investmentValue = investmentValue * ( 1 + interestRate ) return investmentValue def main(): principal = int(raw_input("Enter initial investment amount: ")) interest = float(raw_input("Enter interest … | |
[code=syntax] from random import randint def menu(): while True: print """ \n\n\n\n\n\n\n ____ ___ ____ _ __ ____ _ ____ _____ ____ | _ \ / _ \ / ___| |/ / | _ \ / \ | _ \| ____| _ \ | |_) | | | | | … | |
Hello again, it is me with another homework hurdle. I am currently tasked with creating a Set class. We are not permitted to use Python's set class. I have looked at Python's set class for hints, but I had difficulty understanding it. We are not allowed to add methods not … | |
This is the last lab I have to deal with before the end of the semester and I'm stuck beyond reason it really is interesting though but...so many exams and I just can't figure it out 1.The program begins by displaying the following picture in a window labeled "Original Picture". … | |
I have this program that i have been working on which plays rock paper scissors game with the user. [code=syntax] '''play a game of Rock, Paper, Scissors''' from random import randint def firstChooserWins( chooserChoice, otherChoice ): #print chooserChoice, otherChoice if (chooserChoice == "Rock" and otherChoice == "Scissors") or \ (chooserChoice … | |
in the below quote i took from Devasya i implemented in SQL MS VS 2008, and there is an error coming any idea about it???? The code is : [code] db.openConnection(); int j = 0; int k = 0; string[,] a = new string[100, 100]; string data = "\""; for … | |
Hello All, I need some C/C++ code/calls to unzip a zip file. Please share the code/guidence. Thanks in advance, Hafeez Shaik. | |
Hello, If say I have 5 variables: v1=3 v2=1 v3=7 v4=6 v5=5 and two lists made from these L1=[v1, v2, v3, v4, v5] , L2= [3, 1, 7, 6, 5] and I sort on L2, so that I have, L2=L2.sort()=[1, 3, 5, 6, 7] Is there a way to sort … | |
Hi all I'm having the most frustrating time trying to select data from two different tables that relate to each other. I have a database that has the following tables: [B]images[/B], [B]gallery[/B], [B]categories[/B], [B]news[/B] ([B]news[/B] is somewhat irrelevant to my current problem) The [B]gallery[/B] table has the following columns: [QUOTE]_____________________ … | |
hello, can you help me how to put picture in my button..example i have cmdsavebutton..and i want to put beauty on my form i want my button to change to picture just like saving a document there is a square form then when you click that it will be saved...can … | |
I was attempting a problem on [URL="http://projecteuler.net/"]Project Euler[/URL] - Problem 20. Since 100! could not be stored as ulong, I was thinking of using hexadecimal. Though I find a lot of example of converting hexa to decomal and vice - versa, I cannot find any info on using it in … | |
anyone can me that I'm using VB.net 2003 and crystal Report 9. Here is my DB structure: Server = server123 Database 1: TestDB1 table :users Server= server123 Database 2: TestDB2 table :users In the design time in crystal report , i used the connection which connect to TestDB1.users but in … | |
Hello, I have a WebService that gets a LessonID and returns a list<string> that has all the links of the lesson from access database: [CODE] [WebMethod] public List<string> Lessons(int lessonID) { string lessonsource = ""; string cs = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source= " + GetDBLocation(); OleDbConnection cl = new … | |
Can someone else who has had more caffeine than I please look at this example and tell me what I am doing wrong? I have a custom business object called Customer and a Form1 with a BindingSource1, NumericUpDown1, TextBox1 and ComboBox1 and the attached code. Setting break points in the … | |
hi im learning VB.NEt im doing a game project where i have 4 animals racing in my properties i have stamina, weight, height acceleration all of them are in combo box with assigned values like "poor", "average", "fast" etc my problem is i want to show the finishing time of … | |
hey all, i know in this day and age tech it linked with each other. is there a way to send faxes and receive faxes just using php. or if there is a service what is the cheapest. what i would need to do is have a system set up … | |
how to print the min value from an array ? i just understand the logic of printing max value, i tried so much to print the min but didn't find any clue... here is the program for max value: [CODE] int main(void) { int num[5]; int i,max=0; for (i=0;i<5;i++) { … | |
When I do `mysql> show status like '%qcache%';` it returns: mysql> show status like '%qcache%'; +-------------------------+----------+ | Variable_name | Value | +-------------------------+----------+ | Qcache_queries_in_cache | 19817 | | Qcache_inserts | 299528 | | Qcache_hits | 687127 | | Qcache_lowmem_prunes | 6702 | | Qcache_not_cached | 3171 | | Qcache_free_memory | … | |
I am new to most the web programming experience and I have a php page (lets call it form.php for brevity) that posts some form information (including an attachment) to another php file that validates organizes the information (which I will call sendMail.php) and then mails it to the destination. … | |
I am doing an assignment that requires me to have 4 different radio button(earth, moon, jupiter and saturn) and two labels one showing the weight (on different planet) and one for the delivery price ( $5.00 for weights up to 1 kg; $10.00 for higher than 1 kg up to … | |
Hi guys, I am using MyEclipse....I have even import the itext.jar file to my project folder....still I am getting error in my java code.... Error in resolving import com.lowagie.text.html.*; import com.lowagie.text.pdf.*; Can anyone help me............. | |
My assignment is as follows... Create a program called part4.cpp containing a recursive function that accepts a pointer to a null-terminated string as its argument, and prints the string in reverse order. Demonstrate the function by calling it from the main function with a string that has been provided by … | |
I'm putting together the basic layout for a contacts book, and I want to know how I can make the 3 test buttons span from edge to edge just as the arrow buttons do. [CODE]import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; … | |
This is what I have Done..and this is what is wrong: What I have done is made a windows form project. On Form2, 3, and 4..I have a Control Tab..and this control Tab is holding Images and text boxes. What I want to do is implement SAVE into my menustrip … | |
Hi, i am trying to extract number out from a text which i grab from the database. [B]EG: ACK9734N[/B], I would like to extract just the number [B]9724[/B] from the text, how can i do so? i understand about using preg_match() but when i tried to do that, the number … | |
[CODE]#include <iostream> using namespace std; class Person { private: string name; public: Person(); Person(string the_name); string get_name() const; }; //////////////////////////////////////////////////////////////// class vehicle { protected: string name; int cylinders; Person owner; public: vehicle(); vehicle(string _name, int _cylinders, Person _owner); void display() { cout << name; cout << cylinders; cout << owner.get_name(); … | |
i'm having trouble with my factors function. I need to find the factors of all positive numbers in an array and then find their sums. I'm pretty confused at this point. The last thing that I tried was to take each number in array one at a time and find … | |
hey, I need a 24 hr i.e 00:00 to 23:59 timepicker in javascript. Precisely, the requirement is such that the database format are 24 hr timestamps. Hence I cant use am or pm time pickers.. Plz help guyzz.. | |
anyone has ideas? i could cd to %ProgramFiles%... or move folder anotherFolder [code] move folder %ProgramFiles% The syntax of the command is incorrect. [/code] thanks thanks | |
I am trying to construct a linked list that contains string pointers. Since strings can be quite large, I am trying to save space and access time by storing pointers to them in the linked list. The strings are read from a text file and inserted into a linked list. … | |
Hey guys, I have been looking into queue's and stacks this week guys and I decided that I would like to convert my current array into a stack. Does anyone know how to or can give me some assistance with the current code I have?? I really do not even … | |
Hello everyone, I currently manage hosting for a number of customers and started created a system to manage the customers and their hosting accounts / domains. I have the following setup currently: Tables -Customers (Customer name and contact info) -Customer Accounts (An account links domains + hosting in one account) … | |
I need to find more ftp examples, like, after logging in, performing an mget * Any pointers? Thanks. cmn | |
I have been fighting the same bug for weeks now with zero success: I am trying to get images to come up on my buttons, but they utterly refuse to show up. Regardless of whether I used my old Python 2.5.1 or now 2.6.5, the following code: [code]'''Minesweeper.''' from Tkinter … | |
Hey all, i would really appreciate some help with abit of code i'm stuck on. I am trying to read data from text files in this way: 1. Open text file 2. Read in the first line from the text file that doesnt start with "/" 3. change this char … | |
Hi In desperate need of some help! I'm having trouble with a mod I'm make on the threadbit template. I'd like to add some additional information from new columns added to the thread table which will show on forumdisplay. To do this I need to use the threadid in the … | |
Hello, I’m using Perl script where executing SQL query which connecting to SQL loader to insert my data into table. When the script runs the success status returns, but the loader doesn’t load anything to DB, I want to get the Perl return value to compare it. Here is the … | |
Hey all ok so the issue seems to be at line 45 it seems to be making a loop from the output betting im just doing something wrong with exceptions, sense im just learning them. thanks in advance [CODE] /* File Name: Demo.cpp Chapter No. 16 - Exercise No. 2 … | |
Hi everyone First post but I have been browsing as a guest for help with my university python project for a while now. There some really great help on here, Thank you! Right I'm doing a beginners python programming unit as part of my uni course, and as part of … | |
![]() | I have some data in the memory which is pointed to by a pointer (ptr2data), how do i pass this data to a function which accepts unsigned long/DWORD data types? [code] unsigned long* ptr2data; DWORD temp; ptr2data = (unsigned long*)&SomeArrayOfData[4]; temp = (DWORD) tempSerNum; AddDevice(7, temp); [/code] The above code … ![]() |
Hi everyone, I'm trying to code a program that uses RSA to encrypt your message. I assume you know it but if you don't know let me explain simply: [QUOTE]Your enter a word (actually it is a sentence but for now a word) then program will convert letters to numbers … | |
Hi, I was looking for some help with how i would go about setting up my commission table. Basically i have currently: Users Table UserID Username Password Email Clients Table: ClientId Client_UserID FirstName LastName Address PostCode Tel Email Insurance Table: InsuranceID Clients_ClientID Provider Commission DatePaid CarInsurance Table: CarInsuranceID Clients_ClientID Provider … | |
Hi! Tried searching the forums but I came up short, sorry if I'm asking the same stupid question over and over. I got a code snippet that looks like this [CODE]private void pictureBox1_Click(object sender, EventArgs e) { pictureBox1.Image = Image.FromFile(@"IMAGEPATH\test1.jpg"); }[/CODE] Since I'm a real newbie at programming I want … | |
Hello, I have a spry accordion that I have inserted in Dreamweaver with 5 tabs for Monday-Friday. How could I make the tab active depending on what day it is? i.e: So if its Tuesday the Tuesday tab will be active. [CODE]<div id="TabbedPanels1" class="TabbedPanels"> <ul class="TabbedPanelsTabGroup"> <li class="TabbedPanelsTab" tabindex="0">Monday</li> <li … | |
Hello ! I'm working on a project which allows user to design forms/questionnaires using asp.net website, and once done. The questions should be generated on a .net mobile web page to be filled up using mobile phone browser. The question is - when designing the form is done, should I … | |
I am trying to move a player in direction angle by speed. I need to use trigonometric functions in order to calculate this. Can anyone help me discover how to do this? [code]if (playerB.up == true) { (playerB.speed)+=((Delta*ballspeed)/1000); } if (playerB.down == true) { (playerB.speed)-=((Delta*ballspeed)/1000); } if (playerB.left == true) … | |
[CODE]<input type="checkbox" name="opid[]" id="<?php echo $row['opid'];?>"value="<?php echo $row['opid'];?>"value="<?php echo $_POST['opid'];?>" /> <label for = "<?php echo $row['opid'];?>"></label> <?php $opid= $_POST['opid']; $opids =""; foreach ($_POST['opid'] as $opid ) $opids.=((int)$opid)."," ; $opids=substr($opids,0,-1); $sql="DELETE FROM opentopic WHERE opid IN ($opids)"; $res = mysql_query($sql) or die(mysql_error() ) ; ?>[/CODE] Hi, I used the above … | |
Hello, I'm new at php. I have this simple problem I can't figure out. So I have the variable $name and I want the name to appear on a page plus be linkable. But the link has use the variable.. like this: http://www.website.com/$name And also I only want $name to … |
The End.