64,152 Solved Topics
Remove Filter ![]() | |
Hello people, i am really sorry to post two new threads in such a short time, but i have a problem that's driving me nuts. I think i know where my program fails, but i don't know the reason why. Let me explain: I am making a chat program. I … | |
Im trying to creat a password varification system where the user enters there password twice while making a user account but everytime the user enters there password it is telling them 'sorry, passwords dont match' Im trying to say if there are two input boxes in the first one they … | |
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="cart.aspx.vb" Inherits="cart" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script runat="server"> Dim TotalUnitPrice As Decimal = 0.0 Function GetUnitPrice(ByVal Price As Decimal) As Decimal TotalUnitPrice += Price Return Price End Function Function GetTotal() As Decimal Return TotalUnitPrice End Function Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, … | |
Hi I've been searching on how to use php variable names inside an array and to much dismay I've found nothing. I'm sure it's something really simple but I can't seem to get it even after the numerous educated guesses I've made and tried. What I want to do is … | |
Hello, I am trying to structure query to execute MySQL fulltext search. I have creates simple table as follows: CREATE TABLE IF NOT EXISTS `entries` ( `id` int(3) NOT NULL auto_increment, `doc` text collate utf8_unicode_ci, PRIMARY KEY (`id`), FULLTEXT KEY `doc` (`doc`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; And … | |
hi guys >> i need ur help please >>> i ve created a login page which includes user name and password and i created a welcome page which contains the required codes for connection and verifying the username and password from oracle database .. when i run the login page … | |
I would like to know how to programmatically call a mathod regarding on time. In my example I would like to call a method every hour. Can I use a Timer or is there something else? | |
Hi all, I have just made a search bar for a site but I am having trouble trying to return the number of results that are found. E.g. I want it to print "Your search terms returned 'xx' results" after each search. This is my code: [CODE] <?php include ('db.php'); … | |
I am trying to create an update query for a website, and I keep getting an syntax error message. I narrowed it down to the table column that is the only field that is set to be of type text. [code]UPDATE company SET references = "blah blah blah" WHERE company_id … | |
HI All, I'm developing a security system for a CMS but it appears that my redirect does not work. I'm using sessions and I know that the session is being created since I did an echo on session_id(). [CODE]<?php if($count==1) { $_SESSION['loggedin']=1; print "logged in"; header('Location: edit.php'); print "no"; } … | |
The code: [CODE = php] $selecteddate = $_POST['Releasedate']; $selectedplatform =$_POST['Platform']; $selectedstyle = $_POST['style']; $query="SELECT * FROM $table WHERE date = '$selecteddate'AND Style = '$selectedstyle'AND Platform = '$selectedplatform'"; [/CODE] Ok, the code works if someone picks something for all 3 of the items, so all of the code works, but if … | |
can i change the value of an int with a pointer. e.q. int n = 20; int *size = n; can i change n by doing this *size++. thanx | |
Hi All, I'm trying to replace all occurances of ' to ’, which is it's character code in HTML. How to I get str_place to search for '? [CODE]$data=str_replace("’","'",$data);[/CODE] Cheers, | |
I am writing a project to calculate the area and volume of 2d and 3d shapes. I have a class hierarchy with my abstract base class called 'shape'. I want to make a separate class to calculate a prism of a specified depth from any 2d shape, yet am unsure … | |
please help i don't know how to delete multiple rows in mysql using checkboxes, because it seems the delete doesn't seem to work. here's the code: [code=php] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect … | |
Last date value (Next Training ) gets properly inserted but not the rest... any clue? [ICODE] <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/JABILMCALLEN.mdb" DeleteCommand="DELETE FROM [Certifications] WHERE [CertificationID] = ?" InsertCommand="INSERT INTO [Certifications] ([EmployeeID], [TrainingDocID], [StartedTraining], [EndedTraining], [EvalutationType], [TrainedBy], [NextTraining], [Approved]) VALUES (?, ?, ?,?,?, ?, ?, ?)" SelectCommand="SELECT * FROM [Certifications]" UpdateCommand="UPDATE … | |
hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys. | |
Hi, I'm trying to create a textgame in python, and after searching for a few topics about it I though I knew how to make it. Many textgames use a system like this: [CODE]def room_one(): #do stuff if something: room_two() def room_two(): #do stuff [/CODE] Most of the time the … | |
I generate an array from the folders in a directory; which is placed in an array. i then compare it for changes in the currant folder.This way i can monitor for new files that are add to the system and trigger the script. but i am having problems comparing the … | |
hi guys, i want to give new line after fixed amount of characters(say after every 100 characters) in the textbox.as i have to display my news content which is very large. pl guide me for that.thanks waiting for ur reply. | |
I am looking for a host that supports jsp files and xml. I went to several host provider and I noticed that most of them supports asp and not jsp. Is jsp a standard language that every host supports it? | |
Hi All, I think this is my first question here. My web application uses an Access database and I'm getting some strange behaviour which might be related to that. Here's the issue: At the end of processing a users request (during which a lot of calculations are done), a record … | |
Hi, I have a panel on a form and am displaying a picturebox on that panel. I have set the Panel Autoscroll to true. Even when I manually make the panel smaller than the picturebox, no scrollbars are shown, why is this? Here is the code I am using to … | |
I'm writing a program which accepts the price of a tour. A tour is priced between 29.95 and 249.99. It's supposed to repeat until a valid price is entered... However, even when it is, the program continues to repeat. Here's what I have so far. [CODE] import java.util.Scanner; import java.util.InputMismatchException; … | |
its a random number generator [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> #include <iomanip.h> using namespace std; int main () { const int MAX_RANGE = 100; int value; int random = rand( ); int num = ((random % 100) + 1); int quit; do { srand (time (NULL)); value = rand() … | |
Hey guys, I'm new to all this but basically I've been given the task to create a simple C# board game using the console screen. The game consists of a 36 square board and 2 players (player 1 & player 2). Both the players take it in turns to roll … | |
Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the … | |
Hello. I'm currently developing an IVR system under Asterisk through the Asterisk Gateway Interface (AGI), connecting to a Mysql server using the Mysql C API. The server returns a ticket number that I have to say to the client, so I developed a TTS (Text To Speech) algorithm to say … | |
Hi, can anyone help me with this program. the program inputs a string and replace the first char with the second one. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 200 int main(void) { char myString[MAX]; char getCh; char setCh; int i = 0; printf("Please enter the string: "); gets(myString); … | |
How do you terminate the program?? for example I input exit on the dialog box as it should terminate the program. I really don't have any idea on how to do it. | |
I am trying to get a variable to increment in a function called by setInterval. It does one then stops... All I want is for the slider function to loop through the array over and over again, but it seems to like stopping after the first one. Here is the … ![]() | |
Hi i am using Visual c++ with SDL I have been using a tutorial from lazy foo productions but when i go to build my solution my complier says: Cannot open include file: 'SDL.h': No such file or directory | |
I was going to post this in the linux/unix board, but there is no 'start new thread' button. Why is that? Anyway, I'm going through a ton of steps to apply a patch file. Everything in the patch file seems to apply seamlessly, with one exception. My patch file is … | |
I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); … | |
Hello experts, actually i have a situation like this. i have a drop down menu value:{2,3,4,5,6}. there is a common operation need to be done if any number in menu list chosen.each of the number must have different number of layers. if user choose 2 means 2 layers,if 3 means … | |
Hey All Yesterday I was writing a recursive form of a prime factorization program and I wasn't sure about the syntax I used. the function works as is but I'm curious if I am being redundant or if this is the proper way to code it. Here is what I … | |
Hey guys im having trouble writing this code for my function. I have the idea down and a way to solve the problem but im having trouble writing it in C code. Basically im writing a function that runs exactly like the function strcat from the string.h library but we … | |
This is a rookie question and don't really know how to word it so that google finds me an answer, but can someone give me an example of a query using multiple WHERE restrictions so I can see how to format my query? | |
Hi, I did the stack implementation using arrays and i would like to do it with function pointers but i have no idea. If anyone could help by illustration that would be great as function pointers is pretty difficult for me! Thanks in advance. coolguy | |
HEy everyone. I've been workign on this for a few days now and it's due tomorrow, so I thought I would ask a developer community for any input. Here is what is supposed to be happening. The Server starts. The Client Starts. The user enters a table name into the … | |
I know: -basic cout/cin -declaring single integers/strings -currently learning 'for' loops as you can see, my knowledge is extremely limited as of now, and i wish to have a few practice problems to have a go at. May i have some suggestions? | |
Hi I want to remove a control in a placeholder, in a function in JavaScript. Is that possible? If so please help. Fia | |
I have a program where the cout "ing" a string misses the beginning letter of the string. I have made it so that there are 3 options to input/output the information. The "missing" letter in the string is ONLY evident in option 1; option 2 and option 3 does not … | |
hi im new to programing and im trying to make a program that would calculate the tax on a given price but that would accept the tax rate as either an integer or a double but i get this error [QUOTE]Index (zero based) must be greater than or equal to … | |
hi, i have this code which do search in Table1 and use the result of search to search in another datatable Table2: [CODE] SqlCeConnection conne = new SqlCeConnection(); conne.ConnectionString = @" Data source= |DataDirectory|\Database1.sdf"; conne.Open(); SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateRP ='" + DateTime.Now.Date … | |
I'm trying to create a python cards game (a Brazilian cards game). But when I try to print some values (the cards played) it returns the following error: [QUOTE]Traceback (most recent call last): File "<pyshell#16>", line 1, in <module> play() File "C:\Documents and Settings\Terminal\Desktop\Truco.py", line 71, in play print "You … | |
my son gave me this pc , I am trying to play a game but it seems i am missing something called direct3d. can this be downlaoded free somehere on the net? | |
Hi, I have a dynamic picturebox created at run time that loads an image and I want this picturebox to be clickable and open a web page. Here is the code that creates the picturebox in the formload section:- [CODE]void MainFormLoad(object sender, EventArgs e) { PictureBox pb = new PictureBox(); … | |
if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....?? | |
so i'm almost done with my project. however, i'm still getting some errors when i run. you can find my code below. if you see any problems and know how to fix them, please, please, please let me know! class tennis: def __init__ (self, name, rank, tournamentsPlayed, country, racquetBrand): self.name … |
The End.