199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Que336

I've had a nightmare over the past couple of weeks wondering why my code wasn't working in ie. I've finally realised that it was because I was using textcontent which works fine in firefox. I tried using innertext and it worked fine in ie but stopped working with firefox. Chrome …

Member Avatar for Troy III
0
1K
Member Avatar for Cornwell

I've searched Google and although there are several hits in this general area, none matches my issue. The problem is on [URL="http://stmarytheboltons.org.uk/hall/index.html"]this page of a church web site[/URL] where they are hiring out the hall. It's supposed to cycle through four pictures and that works in Firefox and Chrome and …

Member Avatar for Cornwell
0
1K
Member Avatar for niyasc

Following is the one of code written by me for shared memory. Problem is that program donot come outside from marked loop and read numbers infinitely. "common.h" [CODE] struct common { int a[10],b[10],c[10],flag; }; [/CODE] p1.c [CODE] #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<sys/shm.h> #include"common.h" int main() { int running=1; void *shm=(void *)0; …

Member Avatar for niyasc
0
211
Member Avatar for dellat

I have a question on a very basic operation of modulo operator. [B]Why does 1 % 9 produce 1?[/B] If 10 % 9 then remainder is 1. I am very poor in math but have had to use modulo operator many times before but always become confused and couldn't understand …

Member Avatar for dellat
0
120
Member Avatar for trektrak

I need help on javascript.... ok this is what I got from w3 school... [CODE]<html> <body> <script type="text/javascript"> var d = new Date(); var time = d.getHours(); if (time < ) { document.write("<b>Good morning</b>"); } </script> <p>This example demonstrates the If statement.</p> <p>If the time on your browser is less …

Member Avatar for Troy III
0
212
Member Avatar for showman13

Good Sunday Afternoon... Is there anybody here that knows of a piece of code that would be available to just plug into a script that would allow the selection of a date range for a reporting feature? Just something that would say From this date To this date... And possibly …

Member Avatar for showman13
0
289
Member Avatar for deviantghost

Okay im doing a project for my FIRST robotics team where we are getting a scouting database going on where we scout out other teams I have gotten the basics down but i am having multiple problems with my php code all i need to do is make my submit …

Member Avatar for deviantghost
0
236
Member Avatar for infinitus

Hello there i would like someone to have a peek at this code and does it solve the question correctly ?? Are there any mistakes or any improvements i could add ?? Also i struggle in this questions as i do not get it fully(in fact i dont get what …

0
178
Member Avatar for drelix01

I am having problem on this code of mine, I made a short javascript pop-up notice everytime a user logs a incorrect password or a correct pass, and when I typed the correct username and password, it is still invalid but when i delete these codes: [CODE]session_register('myusername'); session_register('mypassword'); $_SESSION['myusername']==$myusername;[/CODE] it …

Member Avatar for rajeevphp2011
0
150
Member Avatar for zukazen

Greetings, I'm making a program that draws a certain mathematics function. Here's the problem,my x and y axis aren't defined as the picturebox's. What I mean is that my axis are not located in the top left corner of the picturebox. So normally, the function would start from the top …

Member Avatar for zukazen
0
168
Member Avatar for dmotah

hi i am a university student from Mauritius and i am going for my final year project for my course Bsc in Information Technology. I am good at php,mysql, but now i want to make use of java, android for my final project. So i am already on the track …

Member Avatar for peter_budo
0
455
Member Avatar for greatman05

So, I'm a bit confused with how inheritance works in relation to variables. Let's say that I had the following class: class Test { private: int var1; float var2; public: void getInfo(int,float); void setStuff(int,float); }; Now, let's suppose that I wanted to derive a class from that base class; I …

Member Avatar for Ancient Dragon
0
208
Member Avatar for florin1

hello guys. I have a html page with jquery drag and drop serialize. Every time i move an item the script auto-updates position in a database. But i don`t want it do update automaticaly, i want to press a button for submision. Can you help me add a button to …

Member Avatar for stbuchok
0
129
Member Avatar for maxxx2000

[B]hi i want to restrict my input field to number only. iwant to do this in jquery can some one help me[/B]

Member Avatar for rajeevphp2011
0
96
Member Avatar for kris222

what are the other types of variables in tasm ex: bh,bl,cx what else is there that i can use?

Member Avatar for kris222
0
99
Member Avatar for mtho

Hi Guys Im a newbie and a somewhat beginner in PHP Here is my problem I want to insert this date format - DATE_FORMAT(news.updated, '%%M %%e, %%Y') AS formatted FROM news into this already existing sql statement - $sql = "SELECT * FROM authors aut, news new WHERE aut.aurthor_id=new.arthor_id AND …

Member Avatar for rajeevphp2011
0
194
Member Avatar for gunnerone

Hi I am working on Linux and I am trying to create a GUI app to go with my executable I have made. For some reason it unexpectedly ends. There is no error message, it just says in the Qt console window it unexpectedly ended with exit code 0. Can …

Member Avatar for gerard4143
0
199
Member Avatar for choosechrist

In my project all, my forms are accessed through my MDI form, [CODE]Private Sub DocumentCollectionToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocumentCollectionToolStripMenuItem.Click Dim capture1 As Boolean = False capture1 = noduplicatemdi("DOCUMENT_COLLECTION") If capture1 = False Then Dim mdiForm As New DOCUMENT_COLLECTION mdiForm.MdiParent = Me mdiForm.Show() End If End …

Member Avatar for choosechrist
0
175
Member Avatar for bernardz26

Good day!. I want to save my textbox to my sql database. this is my code: Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\dbEvaluation.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" con.Open() cmd.Connection = con cmd.CommandText = "INSERT INTO Comment([Comment]) VALUES ('" & TextBox1.Text & "')" cmd.ExecuteNonQuery() …

Member Avatar for M.Waqas Aslam
0
89
Member Avatar for DaveyMoyes

Hi Everyone, Hoping someone here can help me fix this problem I have of setting a cookie variable from a databse $id = $row["id"]; variable. This seems to work fine when using session data, but I am trying to use cookies and I am a bit stuck. . . here …

Member Avatar for Biiim
0
443
Member Avatar for mpathma

Hi, I need to change size parameter of OvalShape, I have about 100 of them, named like OvalShape1, OvalShape1...... OvalShape100 Search the froum I noted this [url]http://www.daniweb.com/software-development/csharp/threads/367949[/url] This example works for Label, but throws error for OvalShape, following is my modified code that giving error; [CODE] For Count As Integer …

Member Avatar for Reverend Jim
0
355
Member Avatar for BeeKeeper18

Right guys, I'm really new to this but I'm getting along ok, but I've hit a block. I need to be able to know how to search a text file in VB for a particular line and then display it. the files I'm trying to use are set up as: …

Member Avatar for kaozci
0
361
Member Avatar for sjparida

Hi there, friends I have ajmatrix dna(multi level marketing) script written in php and MySQL, I can't able to install it on wampserver or xammp in windows system, can someone please help me for setting the correct configuration to run the script on localhost.and also can it be possible to …

Member Avatar for pritaeas
0
81
Member Avatar for newbie26

how can i disable printing a webpage using PHP or Javascript?? any code?? my system will go like this: the user can print the webpage (html) only once and then when he/she will attempt to print again that page, there will be an alert or message that he/she can't print …

Member Avatar for Biiim
0
2K
Member Avatar for jayadan

hey guys i did a program for converting number into words and i almost got through but my folks want it even possible for decimal numbers too buti couldnt make that possible and can anyone help me in this and i also attach the codes i did and if something …

Member Avatar for jayadan
0
161
Member Avatar for maxinville

I'm a having a serious problem creating variable. I am creating an application that gets its datas from a database, and before you can access the application you must login first. My problem now is my Login class can do all the validations but I don't know how to set …

Member Avatar for maxinville
0
205
Member Avatar for asif49

Is there any possible way of echoing PHP from within XML. The reason is because I want to provide an XML feed, and this feed will be dynamic so I will of course need to use PHP to echo out the statements from within the tags. But XML doesn't seem …

Member Avatar for almostbob
0
377
Member Avatar for DEAD TERMINATOR

I'm working on a music player and I want to make it so that if I'm playing a song and I click on another song in the list the first song stops before I hit play on the second one, without having to manually stop the first. So just the …

Member Avatar for DEAD TERMINATOR
0
2K
Member Avatar for user543820

Hello! I am trying to implement search algorithms in a 2D grid. The problem I am facing is that let's say that I make a 2D grid in c++ through some array and also block some cells. Now how will I convert this grid into a binary tree to run …

Member Avatar for L7Sqr
0
124
Member Avatar for xanashadow

While going through the internet, I found a bot that was controlling characters in a video game. I'm not as interested in the bots uses as i am where such a bot came from. What sort of programing gave a bot this power over other bots who simply scour the …

Member Avatar for jbennet
0
52
Member Avatar for a.muqeet khan

hello guys ! i have created a program just to understand how to return a value from using a recursive program what it does it thati have have two variable i.e first and last the value of first is zero and last is 10 not i want the function to …

Member Avatar for a.muqeet khan
0
168
Member Avatar for Ana D.

Hi, I'm new using AJAX and I'm developing a page where I need to populate a CheckBoxList based on what the user types (it's like an AutoSuggest). I don't know how to bind the checkboxlist from the database using AJAX. My code in VB.NET is something like this: [CODE]Dim DatabaseConnection …

Member Avatar for chinnudhilip
0
540
Member Avatar for <mono>

void ADD_QUOTE(){ do{ printf("\nPlease enter Length:\n"); scanf(" %d ", &length); }while(scanf(" %d ", &length)<200 || scanf(" %d ",&length)>4000); { while ((length[count] = getchar()) != '\n') putchar(length[count]); } return; do { printf("\nPlease enter Size:\n"); scanf(" %d ", &size); }while (size[count]<200 || size[count]>4000); do { printf("\nEnter which Board type you want: 'A'-4mm …

Member Avatar for zeroliken
0
226
Member Avatar for life4menu

I have a text file that has two columns one with time in milliseconds and the other with (x,y) coordinates. I created a JFrame in a class that extends JPanel. It shows a model of constructed ladder that we use in our experiments. Now I want to print some small …

Member Avatar for dennysimon
0
215
Member Avatar for HasNor

Hi all.. how can i hide the status bar url (the secret id) in IE 9... i've use this code but it still show the id on the status bar in IE 9, it's ok if i use IE 8..please help me.. [CODE] <a href="list_upload.php?reqid=<?php echo $row['reqid']; ?>" title="View" onMouseOver="window.status='list_upload.php'; …

Member Avatar for HasNor
0
2K
Member Avatar for jrwin_19

Hello guys, does anybody know how to create a timer in PHP that runs even when the user goes offline. I am working on a project, actually a text based game, that needs a timer that runs continuously even after the user goes offline. The game is something like mafia …

Member Avatar for crammo
0
1K
Member Avatar for Yarra

[B]I have a bank class below. What is the best way to add amounts to any instance variable in any of the constructors to make it o when i add different amounts from 2 or more different classes it will update in a way that when i call the method …

Member Avatar for stultuske
0
99
Member Avatar for gopi17

okay....i can't delete the row... the screen is juz blank...been trying to figure this out.... [CODE] $invoice_no=$_SESSION['invoice_no']; $dbh1=mysql_connect("$host", "$username", "$password")or die("cannot connect"); $dbh2=mysql_connect("$host", "$username", "$password",true)or die("cannot connect"); mysql_select_db("$db_name",$dbh1)or die(mysql_error()); mysql_select_db("$db_name1",$dbh2)or die(mysql_error()); $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoice_no'"; //the sql query $result = mysql_query($sql,$dbh1); $row = mysql_fetch_array($result); $container_no=$row['container_no']; $document_no=$row['document_no']; …

Member Avatar for gopi17
0
98
Member Avatar for Tygawr

Hello everyone, I've attempted to use ifstream to open and read a 20GB file but failed to do so (it takes a very very very long period of time...). So, I need find a fast way to open and read a 20GB .txt file in C++. Thank you!

Member Avatar for Tygawr
0
255
Member Avatar for lanario

I'm lost based on the code provided, how to reduce a fraction down. I've looked on the internet and yes most are using global variables; I however, can not for my class. It must be within the function. And there needs to be two calls outside of each of the …

Member Avatar for LUDACHRl5
0
603
Member Avatar for singularity~

I'm trying to get a form to work with php. When I click submit a submit button nothing happens. [CODE] <?php if(isset($_POST['imageSelectButton'])) { echo "Test: "; } ?> <form id="setImages" action="index.php" method="POST" enctype="multipart/form-data"> <?php $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('../Home')); $images = new RegexIterator($files, '/\.(?:jpg|png|gif)$/i'); foreach($images as $file) { echo "<div …

Member Avatar for veedeoo
0
877
Member Avatar for exinrex

Hey guys, I need your suggestions of free game script. I really dont know about php programming and Im not programmer. Can you pls review my game site game01.info. I used avarcade but im still looking for free game script. If You know one just let me know.thank's Hope this …

Member Avatar for bionutd
0
138
Member Avatar for paulaandrea

Hi, I am new in programing, I want to save images from google-images, I can use filter for only use the free ones. I use a google API, I have the URL and I want to pass to php, but I dont know how to pass from java-script to php. …

Member Avatar for paulaandrea
0
400
Member Avatar for Tygawr

Hello everyone, I am having a hard time reading and writing a UTF-8 file in visual c++ 2010. [CODE] void ReadUTF8File() { ifstream UTF8File("C:\\DaniWeb\\Desktop\\UTF8File.txt"); /* UTF8File.txt: ☺☻♥♦♣♠•◘○ */ string UTF8FileStr; if(UTF8File.is_open()) { while(!UTF8File.eof()) { UTF8File >> UTF8FileStr; cout << UTF8FileStr << endl; /* cout: ∩╗┐Γÿ║Γÿ╗ΓÖÑΓÖªΓÖúΓÖáΓÇóΓùÿΓùï */ } } UTF8File.close(); } …

Member Avatar for thines01
0
7K
Member Avatar for swissknife007

I am making a program to store all the powers of 2(1,2,4,8...) till 2 ^50000. Although I am getting the answer,I am not getting my answer in the required time limit. Any suggestions? How should I store the numbers? Here is my stupid code as of now [CODE] #include<stdio.h> #include<math.h> …

Member Avatar for histrungalot
0
206
Member Avatar for infinitus

Hello fellas :) I have a task to do, there are 10 questions and i obviously need 10 answers :) I have done (attempted) some of them /not every yet/ but i wonder if there are any errors or any correction or improvements that could be made :) Thank you …

Member Avatar for urtrivedi
0
324
Member Avatar for userct

I need to Compute 2x4 +7x3 -15x2 +3x+2 Using Horners Method. When I run this in QTSpim it doesn't give me any errors but I'm just wondering if everything is running completely right. For instance did I call "x" correctly? I'm trying to load the value for x from memory …

0
148
Member Avatar for FraidaL

I'm receiving this error when I'm trying to run my program: Program received signal: “EXC_BAD_ACCESS”. Does anyone know what this means?

Member Avatar for thines01
0
250
Member Avatar for shean1488

Hi everybody. I'm trying to split a string such that every array element would have characters between open and close prentesis. mmm let me just show: myString = "(2*((3-2)+(5-3)))" So my array should have values like that: myArray[0] = 2*((3-2)+(5-3)); myArray[1] = (3-2)+(5-3); myArray[2] = (3-2); myArray[3] = (5-3); I …

Member Avatar for J_A_L
0
20K
Member Avatar for zingwing

I need help figuring out how to count sentences from a .txt file. The following guild lines are what is considered to be a sentence: 1. A TERMINATOR followed by two spaces 2. A TERMINATOR followed by one space and end-of-line 3. A TERMINATOR followed by end-of-line 4. A TERMINATOR …

Member Avatar for zingwing
0
283

The End.