199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
[B]hi i want to restrict my input field to number only. iwant to do this in jquery can some one help me[/B] | |
what are the other types of variables in tasm ex: bh,bl,cx what else is there that i can use? | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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'; … | |
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 … | |
[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 … | |
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']; … | |
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! | |
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 … | |
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 … | |
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 … | |
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. … | |
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(); } … | |
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> … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … |
The End.