199,114 Archived Topics
Remove Filter ![]() | |
[CODE] <html> <head> <title>MY FIRST AJAX SCRIPT</title> <script language = "javascript" type = "text/javascript"> function checkName() { var xml; try { xml = new XMLHttpRequest(); } catch(e1) { try { xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e2) { return false; } } xml.onreadystatechange = function() { if(xml.readyState == 4) { alert(xml.responseText); … | |
Hello! Iam trying to Check Values Of 2 textboxex .. n then Print A certain Amount.. can Any 1 help me.... Code: [CODE]If C1.Text = "Agra Fort" & C2.Text = "Delhi" Then L8.Text = "800Rs/-" End If [/CODE] Actualyy i have jst Started learning VB.net... Iam trying to Check from … | |
Hello i am making my project i am stuck at searching two strings in database for example my table [hotel] contains columns [Date] [Room Size] [Meal] [Car] i want to search for date + room size too. my code checks only [Date] but not [Room Size] and i want that … | |
Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my … | |
Hi guys, Need your help. Currently my development server using Wamp server. please read below for services details: * Apache/2.2.11 (Win32) PHP/5.3.0 * MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ * PHP extension: mysqli * Server: localhost (MySQL host info: localhost via TCP/IP) * Server version: … | |
I'm not used to getting this deep in c++, but all these pointers are making my brain boil. I'm trying to get a str_replace working [CODE]VOID str_replace(PCHAR Dest, PCHAR Find, PCHAR Replace) { PCHAR New=(char *)malloc(sizeof(CHAR)*MAX_STRING); PCHAR Found = Dest; PCHAR Temp = Dest; strcpy(New,""); while(strstr(Temp,Find)) { Found = strstr(Temp,Find); … | |
I have decided to create Bulls and Cows game for my project. I have been checking for it's correctness. But it behaves bad in some cases. Like when I have already guessed the word it doesn't respond right. This happened rarely but I can conclude that it still is not … | |
In C I have created a program which can archive multiple files into an archive file via the command line. e.g. $echo 'file1/2' > file1/2.txt $./archive file1.txt file2.txt arhivedfile $cat archivedfile file1 file2 how do I create a process so that in my archivedfile I have: header file1 end header … | |
Hello, [font=courier new][u]Brief Tutorial Revision[/u]: All examples can be compiled successfully in your compiler. Also, each example is compatable using the [b]-Wall[/b], [b]-pedantic[/b], [b]-ansi[/b], and [b]-std=c89[/b] GCC flags. Also, a few paragraphs have been modified, and code examples improved. Previous tutorial, Pointers #2, has been combined in this revision.[/font] [b][u]Introduction[/u][/b] … | |
Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning … | |
hey people . i have a question and i dont know where to post it . i want tow wrtie .htaccess file that rewrite the url of my links as well as increate my websites memory , i mean the size of the uploaded files and so on . i … | |
I am using PHP and MySQL E-Commerce book and when i want to see department list i got these errors. I did lots of things but nothing happened. does anyone help ? [COLOR="Red"] ERRNO: 2 TEXT: include_once(catalog.php) [function.include-once]: failed to open stream: No such file or directory LOCATION: C:\xampp\htdocs\seeshop\presentation\departments_list.php, line … | |
Im pretty new to python and am trying to right a small script.... [CODE]#!/usr/bin/python import csv import string itemlist = [] reader = csv.reader(open("statement.csv", "rb")) for row in reader: item = row[4] itemlist.append(item) itemlist = list(set(itemlist))[/CODE] Every time I run it though I get the error : [CODE]Traceback (most recent … | |
Hello everyone and Merry Christmas. The reason I am opening this thread is that I am required to write a polynomial calculator in Common LISP as part of a Course Work. As I am newbie to LISP(s) I am asking you if anyone can help me with it . The … | |
hi I have been working in this code for a while and I need to know what's wrong with it ASAP. here: [CODE]#include<iostream> using namespace std; class Node { public: int value; Node * next; Node(); Node(int); }; Node::Node():value(0),next(NULL){} Node::Node(int v):value(v),next(NULL){} bool AllPositive(next * h) { bool test = false; … | |
hello all,, i am working on online hotel booking project . where user can pic room in Hotel and booked them using paypal. what if user want to cancel booking... i used paypal api for that.....and payment type is sale.... my Question is that 1. if user wants to cancel … | |
Hi, For example my xml looks like this: [code] <root> <Book_information> <bookTitle>Lorem 1</bookTitle> <choices>test1</choices> <choices>test2</choices> <choices>test3</choices> <choices>test4</choices> <choices>test5</choices> <choices>test6</choices> <calendar>2010-12-30</calendar> <calendar>2011-01-12</calendar> <calendar>2011-03-10</calendar> </Book_information> </root> [/code] I need to loop the elements "Choices"... How can i do this? I know how to work with the for each loop, but i don't … | |
[CODE]#include<dirent.h> #include<stdio.h> #include<stdlib.h> #include<sys/stat.h> int main () { struct dirent **namelist; int i,j; char userd[20]; struct stat statBuf; printf("Enter a directory %s\n",userd); scanf("%s",&userd); printf("the dir is %s\n",*userd); i=scandir(".",&namelist,0,alphasort); printf("enter a directory name %s",*userd); printf("scandir returned i=%d\n",&i); if (i<0) perror("Scandir failed to open directory I hope you understand \n"); else { … | |
I want to download a series of files say 150 files whose download links are similar but they vary only by a number. That is, the general download link is: [url]http://www.example.com/content/download_content.php?content_id=#[/url] where # is a number b/w 1 and 150. Which of the following works best? Share your suggestions too.. … | |
hello, can any 1 please help/guide me for creating an program .exe file in C. as i am using Dev c++ compiler.say for E.g( program of addition in this by compiling & running it i get the required output. but if i dont want to run the program again n … | |
I need to bind purticular external webservice webmethods name with in asp:dropdownlist at run time. anybody can help please.. Thanks in advance.. Suganya.B | |
Hello, I am trying two days now and I have spent about 12+ hours on this and I can't find a solution :( Please help, or I am gonna lose my mind! I am trying to save user's monitor resolution on MySQL. I almost done it but, I have a … | |
Sometimes a person can get too close to their work that they cannot see what is going on wrong. I hope that is the case here. I have been working on my favorite project, a large wood knowledge base at: [url]www.prowebcanada.com/taxa[/url]. There is enough data to look up already and … | |
I'm getting an error as i'm trying to Insert Data From a Form Into a Database through PHP but i don't know whats wrong with my code..help [CODE] <? include("connection.php"); mysql_query("insert into patient_information (ID,admission_ID,patient_ID,guardian_ID,admission_date,admission_time,patient_status,reason_for_status,referred_doctor_ID,referred_doctor_name,assigned_doctor_ID,assigned_doctor_name,department_ID,department_name,ward_ID,ward_no,room_ID,additional_notes) values('NULL','"$_POST[a_id]"','"$_POST[p_id]"','"$_POST[g_id]"','"$_POST[adm_d]"','"$_POST[adm_t]"','"$_POST[p_s]"','"$_POST[r_s]"','"$_POST[r_d_id]"','"$_POST[r_d_n]"','"$_POST[a_d_id]"','"$_POST[a_d_n]"','"$_POST[d_id]"','"$_POST[d_n]"','"$_POST[w_id]"','"$_POST[w_no]"','"$_POST[r_id]"','"$_POST[a_n]"')")or die(mysql_error()); echo $q; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "<script type='text/javascript'> alert('1 … | |
[CODE]<?php require_once('upper.php'); $error_msg=''; if(!isset($_COOKIE['LoginIdCookie'])){ if(isset($_POST['submit'])) { require_once('database.php'); $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password=mysqli_real_escape_string($dbc,trim($_POST['Password'])); if((!empty($LoginId)) && (!empty($Password))){ $query="SELECT * FROM registration WHERE LoginId='$LoginId' AND Password=SHA('$Password') AND Flag='A'"; $result=mysqli_query($dbc,$query) or die('Not Connected'); if(mysqli_num_rows($result)==1) { $row=mysqli_fetch_array($result); setcookie('LoginIdCookie',$row['LoginId']); //$home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/index1.php'; header('Location: index1.php'); } else{ echo 'Enter right UserName/Password combination or You … | |
This Christmas day, I am plagued by this negative nibble mystery. I have some bytes in a byte array that I want to split into nibbles [CODE] x = bytes(n) x = x << 28'cause the left 4 bits to overflow so we remain with only the right 4 bits … | |
I need a perl script to read the following message from log file WARNING: Child is hung for request Perl script should have the following conditions It should look log file located in specific location (example /mylog) and read "WARNING: Child is hung for request" (Without quotes) message continuously in … | |
I am using ADODB for connecting ms-access database from a vc++ application.I want to insert record in access database;but if the record already exists in the access table then update query should run instead of insert query. the above task can easily be done with stored procedure, but since ms-access … | |
Dear Sir/Madam, We are using NSIS to install an application. and we have a MySql Script file, which is using inside the installer class. This file is working with Mysql but not from the installer. This is giving a ERROR 42000 syntax error. Any help will be appreciated Arun G.K | |
Hi, C# in VS2008 using Tao.Freeglut and Tao.OpenGl I am required to create a 3d Tetris game. I have a menu named BuildMenu [CODE=C#] private static void BuildMenu(){ submenu1 = Glut.glutCreateMenu(selectMessage); Glut.glutAddMenuEntry("New Game(N)", 1); Glut.glutAddMenuEntry("Reset(R)", 2); Glut.glutAddMenuEntry("Quit(Q)", 3); Glut.glutAttachMenu(Glut.GLUT_RIGHT_BUTTON); } [/CODE] using these code I can make a menu pop … | |
Hello, I want to post my product details on amazon but i did not find any web service which provide facility to list your product on amazone. if is there a web service please let me know about that also please tell me if this service is free or i … | |
Hi .... I need to have an idea about the project..... kindly give me idea about projects that are some robotics or involving intelligence .... or any software development type .... plzz Regards... ![]() | |
Hai , How can i make beep sound in java,with out sound card, is it possible? how can i implement this, please help me. ![]() | |
Hi, I am newbie to c++. I would like to en quire on how to calculate the number of same alphabet in a string that we enter? For example if let say i have entered ABAAGAYHAUIJA and it should return 6. Here's my code. [CODE]#include <iostream> #include<conio.h> using namespace std; … | |
hi i am currenlty studying C sharp Visual studio, trying to convert a case study of polymorphism in payroll (which is avaiable in different books as console application) into windows application.. everything is going well, except here where i got switch statement and giving error in case 2- case 4 … | |
I have made a php comment script. It works fine, except that you cannot veiw the comments, you don't need to sign in or anything, but it wont show the comments. you can veiw the source at [URL="http://www.jsclsftwre.22web.net/testing/index.php"]Veiw it here[/URL] | |
Hi im having trouble linking my database. I dont understand what ive done wrong and keep getting the following message: Syntax error in FROM clause. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at................................... My code ive used is: [CODE] using System.Data.OleDb; namespace coursework2 { public partial class Form1 : Form { public OleDbConnection Coursework2; … | |
I cannot copy random numbers without repeating in a map. Unhandled exception at 0x0040115e in file.exe: 0xC0000005: Access violation writing location 0xabababaf. [CODE]int **map; int randomize(int numberToSelect,int range,int counter){ int* remainingNumbers = new int[range]; int* chosenNumbers = new int[numberToSelect]; for(int i = 0; i < range; i++) remainingNumbers[i] = i; … | |
I am new to javascript and I am not sure if my idea will even work in java script but here we go. My Dad has a web page and I am trying to help him out with it. He builds duck calls and I am trying to make a … | |
I have a project with a bunch of different options that you can turn on and off sprinkled throughout many files. You comment and uncomment the options you want, much like the php.ini file in PHP file, though this is actual code. It looks something like this: [code] //#ifndef _OPTION_1 … | |
Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main … | |
Hi, I am new here in this forum and I am currently studying JS. I need help with something but I couldn't find any existing problem like mine. anyway, I just want to pick a random sound when Play button is clicked. I just need something to start of then … | |
when i compile program then error are show in program that #include<iostream.h> or #include<conio.h> are not find. i also changed my directory that c:\tc\include or c:\tc\bin also but program not run error show that unable to with file include iostream plz tell solution of this. | |
I want to inquire what is the major difference between the usage of ArrayList and Array in the Java programming language. I would appreciate good responses and would be enthralled to continue the discussion further upon interest. Regards, Ali | |
hello. im completely new to Java. i have done quite a bit of C# in the past, so that should be an advantage really. my question is, which area or section of Java should i start studying (i dont need to go through console applications..) to have a quick start … | |
I am just plain stuck. I can not figue out why when I type a word to test a palindrome sometimes it comes back as true and other times as false. Thank you for any help. import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static … | |
Hi! I have been making a chat program. In PHP I control user inputs with htmlentities so they can't write html. But this also ruins the precious æøåöüÿëäñ etc.. characters! Would it be safe to only remove the < and >s? Or is there another way to avoid this? | |
what php code should i add if i need the custno[id no] to be included when i submit the log-in button? this code runs, but i really need the code for the custno to be included. start.php [CODE]<?php session_start(); session_destroy(); ?> <html > <head> <title>Login Form </title> <meta http-equiv="Content-Type" content="text/html; … |
The End.