64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DoctorGiraffe

Hello, so i'm having problem with Regex. I'm trying to use to put names in a checkboxlist. But the page where i want the names from have to be accesed by login in on the website. But the regex doesnt read from the VB WebBrowser it reads from... the internet(?) …

Member Avatar for DoctorGiraffe
0
632
Member Avatar for asterix15

i know that the prototype of putchar() is: int putchar(int ch); eventhough its return type is int why does it print ch in character format instead of printing it as its ascii equivalent?

Member Avatar for anirudh33
0
135
Member Avatar for AdriftUniform

Hi, I am trying to create a group of html links that are dependant on two arrays. The data of the arrays is populated from a mysql database, here is my code: [code=php] <?php include_once 'title.php'; include_once 'checkuser.php'; if (isset($_GET['view'])) $view = sanitizeString($_GET['view']); else $view = $user; $sql = "SELECT …

Member Avatar for AdriftUniform
0
251
Member Avatar for noel9

pl help i m getting insert into error [CODE] Private Sub Addbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Addbtn.Click Dim mycmd1 As OleDbCommand Dim sqlq1 As String Try If Addbtn.Text = "Add" Then Idtxt.Text = Me.max + 1 clear() Addbtn.Text = "Save" Else sqlq1 = "Insert into Member …

Member Avatar for noel9
0
121
Member Avatar for waldchr

Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would …

Member Avatar for Cosmin871
0
638
Member Avatar for james6754

Hi..... [CODE] private void button1_Click(object sender, EventArgs e) { Decimal[] mydecimal = new Decimal[10]; for (int i = 0; i < mydecimal.Length; i++) { mydecimal[i] += i; } foreach (Decimal mydec in mydecimal) { int count = 0; MessageBox.Show("I am button "+ Convert.ToInt32(count)+" in mydecimal"); count += count + 1; …

Member Avatar for james6754
0
128
Member Avatar for michael1999

hi when i check apache status there is too many line like 198-92 - 0/0/4 . 0.00 78719 0 0.0 0.00 0.00 127.0.0.1 noc1.server.com OPTIONS * HTTP/1.0 i think this is related mysql or not is there anyway to close this pid in 5min or 10min? [CODE]0-112 1881 0/16/24053 _ …

Member Avatar for michael1999
0
94
Member Avatar for umesh314

I would like to know the working of this code in brief.. any help will be appreciated... function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; }

Member Avatar for Airshow
0
140
Member Avatar for kardklub

Im struggling with updating the sql database for all fields . For example i have 2 select boxes in my order and if i wanted to amend both of them i change there details and press submit. The problem is i dont know how to loop it to go to …

Member Avatar for kardklub
0
89
Member Avatar for Hakoo

Hello All, I have confusion in command Class. Its constructor has 3 parameters. First 2 parameters I can understand. but [CODE]Command.Screen[/CODE] and priority parameter I could not understand. I tried to Google also, and refer different kind of ebooks, but still i cant understand. So please help me.

Member Avatar for Hakoo
0
206
Member Avatar for soft_coder

Hi! I have successfully implemented a modal dialog using jquery with the help of Daniweb forum but I am facing one more problem. Well, I have to intregrate it with a sharepoint page. 1. It is running fine in a normal web application. 2. It is running in a webpart. …

Member Avatar for soft_coder
0
662
Member Avatar for Sorcher

Hello peeps! I really need a pagination for this code: [CODE]<body> <div class="myFiles-content"> <div id="myFiles-upload"> <table> <tr> <td class="login-form"> <form action="index.php?page=user_upload2" method="post" enctype="multipart/form-data"> <input class="button1" type="file" name="uploaded_file"><br> <input class="button1" type="text" name="description" maxlength="60" value="Description" onClick="this.value='';"> <input class="button1" type="submit" value="Upload"> </form> </td> </tr> </table> </div> </div><br> <table cellpadding="0" cellspacing="0" border="0"> <tr class="myFiles-thtable"> …

Member Avatar for pritaeas
0
228
Member Avatar for damsean102

I've built a blog where the user can attach a PDF to a post. This all works fine apart from one small minor detail. I call the details from the MYSQL database on the home page and use a while loop to go through the results. In the DB there …

Member Avatar for damsean102
0
1K
Member Avatar for airick10

I need help with my page. I am taking two variables from another page as Posts. The two variables are numbers that I will later need to change to names they are assigned to in my table. I then start to build an html table and form. My SQL table …

Member Avatar for pritaeas
0
134
Member Avatar for moroccanplaya

i want to know how to check if the file already exists before creating the file? [CODE] puts("please enter a file name to create:\n"); scanf("%s", &file_name); create_pointer = fopen( file_name, "ab"); if( create_pointer == NULL) //create file// else { //file already exist// how would you check if the file already …

Member Avatar for WaltP
0
269
Member Avatar for juniper2009

Dear All First of all I wish you a very happy new year. I have been trying to understand the depreciation matters. As you can see in the codes below, There are 3 handleEvent methods used as pressbutton action , radio button selection action and dropdown list selection action. Now …

Member Avatar for masijade
0
160
Member Avatar for anita_86

Hi! I am having trouble in checking userlevel at the time of login. The pages set for admin level are not displayed if the user is not admin, but admin cant access the pages either!!:D Please solve my problem! My code is: [CODE]<?php if(!isset($_SESSION['userlevel']) || empty($_SESSION['userlevel'])) { if ($_SESSION['userlevel'] == …

Member Avatar for anita_86
0
111
Member Avatar for deconstruction
Member Avatar for deconstruction
0
154
Member Avatar for cirno

Hi, I have this question about how to retrieve a column with DateTime from MySQL as String and put the data in a textbox. :| So I've been using something like this... [CODE]Private Function check_ResitDate_ResitNumber() Dim SQLquery As String Dim rrnRD As OdbcDataReader Dim DiTi As DateTime SQLquery = "SELECT …

Member Avatar for cirno
0
3K
Member Avatar for NoviceChrilill

HI, I have now for more than 24 hours tried to figure out how I return the index number of the second smallest integer in an unsorted array. Some how, I do not get the index number returned, can any one see what I´m missing? As the program runs now, …

Member Avatar for unique72
0
591
Member Avatar for JJHT7439

I was just playing around in python trying to get a basic sort of linked list working. I was able to make a simple linked list using an article I read online that looks like this: [CODE] class node: def __init__(self, value = None, next = None): self.value = value …

Member Avatar for JJHT7439
0
149
Member Avatar for MasterGberry

I have heard there is a C++ split function, but I have not yet found anything to help me work with what I have. I have the following: [CODE]001E3897 1024 HV regread set [rootPos: 0001CBE7, offset 1862832 ][/CODE] I need to be able to take this and split it into …

Member Avatar for MasterGberry
0
2K
Member Avatar for integer*09

Any idea how to check if a text file is still being opened by another program?? I wanted to write to the file after the other program had finished its task and closed the text file. As i know two programs cant open the same file at the same time.

Member Avatar for enriquezrene_ap
0
154
Member Avatar for Wattsits

im new to sql but long story short. just installed mysql server 5.5 and started the configuration and it failed to apply the security settings with error message 2003, cant connect to server on local host. so i cant finnish the installation and canot run mysql.exe. it just beeps at …

Member Avatar for Wattsits
0
87
Member Avatar for DoctorGiraffe

So i have several tabs, and i close them all using a button with:[CODE]TabControl1.Controls.Remove(TabControl1.SelectedTab)[/CODE] But I have been trying to figure out how to make sure the main tab doesnt close. What can i do to make sure the main tab can't shut down, when closing tabs with the above …

Member Avatar for DoctorGiraffe
0
118
Member Avatar for MasterGberry

SO i have a function that returns a call to another function which returns a class, and I am getting a compiler error... AoE2Wide.cpp(179): error C3073: 'AoE2Wide::Patch' : ref class does not have a user-defined copy constructor [CODE]return FindPatchForExe(fileSize, exeMd5, exeFilename);[/CODE] Here is the definition i made for the class …

Member Avatar for MasterGberry
0
1K
Member Avatar for Kligham

Hi, I have a html file Top.htm: [CODE]<form action="" method="post"> <fieldset> <input id="searchbox" type="text" name="zoekfunctie" value="Zoek..." /> <input type="submit" name="zoekbutton" value="Zoek" /> </fieldset> </form>[/CODE] I then include this page in my index page (and in many more pages to come): [CODE]<div id="top"> <?php include("Top.htm"); ?> </div>[/CODE] Now the problem is …

Member Avatar for Kligham
0
187
Member Avatar for Mr.BunyRabit

Hey there i have a bit of a problem. You know when on the internet theres Ten million topics about the thing you struggle with but not oNE of them works? Well.. thats exactly whats happening now. i have a datagridview i set up, and i can delete/edit it all …

Member Avatar for Mr.BunyRabit
0
167
Member Avatar for turt2live

Hello, I have run into a problem where I need to update multiple rows in an SQL table at once. I have found and tried to use the tutorials on setting an ID and then looping through the data that way ([url]http://www.daniweb.com/forums/thread35096.html[/url]) but my setup is a little different: The …

Member Avatar for diafol
0
141
Member Avatar for Arbus

can somebody explain me about parameters in initgraph in c++ graphics???

Member Avatar for mrnutty
0
64
Member Avatar for Joey_Brown

Hello Is it possible to somehow place another string inside a string ? Example: char array1[4]= "!!!" char array2[5]="joey" //Replace e with array1 Output : jo!!!ey Thank you for any kind of input

Member Avatar for Joey_Brown
0
90
Member Avatar for Frederick2

Is there a way to pre-specify a specific string buffer size for the underlying buffer to which repeated concatenations are going to be made in a loop with the purpose of eliminating time wasting re-allocations and block movements of characters from one buffer to another? I have tried the string::reserve() …

Member Avatar for Frederick2
0
356
Member Avatar for romy_fb

hi all i want to add all students grades in one form and then save each grade to the correct student i make 2 differents php page first one display all student id that is already registered in my website in this page instructor can add grade for each student …

Member Avatar for romy_fb
0
1K
Member Avatar for Akill10

Hi, I've been thinking about this for a while. What is the best way to design a program? What I don't understand is how people think of which classes etc. they will use and what they are called. For example, in a program which simulates the card game BlackJack. How/why …

Member Avatar for Akill10
0
121
Member Avatar for WyrdOne

I have an ASP.Net site that includes a folder named "files" as a subdirectory of the site. I have a help page set up with links that are set to "~/files/help1.doc", "~/files/help2.doc", etc... These all work great. I have another section of the site where the user clicks a button …

Member Avatar for WyrdOne
0
174
Member Avatar for java666

Hi, I need help with an assignment for a class I'm taking. The assignment requirements are as follows: 1.Carefully study the class structure in Products.java. Here is Products.java: [CODE]abstract class Product { protected float price; // return the price of a particular product abstract float price(); } class ComputerPart extends …

Member Avatar for java666
0
805
Member Avatar for showman13

Good Afternoon, I'm hoping someone can tell me how to resolve an issue that will apparently be pretty wide spread within our membership. I have an ad Directory that was created for our members to do member to member advertising with a component for public advertising, and everything came together …

Member Avatar for showman13
0
367
Member Avatar for hanvyj

I am trying to refer to the class a nested class is 'in'... The 'this' keyword refers to the nested class, so I need something like super.this (except not at all like that) :/ I think the code below describes what I am trying to do: [CODE]public class Nest { …

Member Avatar for hanvyj
0
102
Member Avatar for Nivass
Member Avatar for buyoh
0
123
Member Avatar for Janu Sam

Hi I am new to Java. I am trying to develop a tool in which I am trying to download a file from a link. When I go to that link using my java program, IE is opened and its default File Download window is showing. But I need to …

Member Avatar for Janu Sam
0
270
Member Avatar for lyrico

Hi to all. Can anyone help me with this? I have PHP script the save record. But I want to have time limit in saving the record. When the local time is 4:00 PM, the user can no longer save their record. Please help. Here's my code; if($_POST['submit']=="Save") { $name …

Member Avatar for lyrico
0
189
Member Avatar for atom6402

I have recently encountered dis error while doing <b>page validation</b> for my site. I have been trying a lot ,but still could not find the solution. Being a newbie to PHP, I would be obliged if u guys could help me out. The URL of d site is, [url]http://www.dmcewriteups.co.cc/register.php[/url] I …

Member Avatar for atom6402
0
158
Member Avatar for Nivass

HI, I have loaded the image in the picture box. I have clicked with mouse at a point on the image and get the pixel value for that point (using e.x and e.y). now i zoom the image. How to get the pixel of the same point in zoomed position …

Member Avatar for Nivass
0
2K
Member Avatar for Nivass

Hi, 1.. loaded the jpg to picture box (in Size mode as Zoomed). 2. I drawn a rectangle on the picture box and taken the coordinate. 3. opens the jpg in paint and observed the coordinate (where i drawn rectangle on the picture box). when i compare the rectangle coordinate(x …

Member Avatar for Nivass
0
108
Member Avatar for zetologos

What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist? [CODE] ArrayList<String> list = new ArrayList<String>(); List<String> myList = new ArrayList<String>(); [/CODE]

Member Avatar for masijade
0
104
Member Avatar for alonewolf23

[CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int odd(int nValue) { nValue= nValue -1; return nValue; } int main() { int nValue; cout << "Enter a Positive Number: "; cin >> nValue; while ((nValue>2) && (nValue % 2 == 0)) { nValue = nValue -2; cout << …

Member Avatar for Red Goose
0
139
Member Avatar for matt_platts

Im trying to use a regular expression backreference to reference a hash key. Here's an example of the non working code so you can see what I'm trying to achieve (I hope!): [CODE] $str="String of text containing item1 and item2"; $x['item1']="Item 1"; $x['item2']="Item 2"; $str=preg_replace("/item1/","$x[\${1}1]",$str); print $str; [/CODE] I want …

Member Avatar for matt_platts
0
139
Member Avatar for Geowil

Here is my code at the moment: [code] import java.util.Scanner; class menuOperations { String[] fNames = new String[50]; String[] lNames = new String[50]; String fName = " "; String lName = " "; String sFName = " "; String sLName = " "; int dAmount,dTimes,i; Scanner in = new Scanner(System.in); …

Member Avatar for Geowil
0
101
Member Avatar for Don_k

Hi, I would like to using POSIX API system calls in C, and via command line arguments know how to go about extracting from an archive file.(in Linux). I have done the archiving process it archives the files I enter into the command line , and the last but one …

0
123
Member Avatar for ezbaiby

Hey I have a program that has a webBrowser navigate through a few pages, and when it gets to the last page I set it to navigate to, checks if there is a certain string on that page. I just switched my code around to use multithreading and now the …

Member Avatar for ezbaiby
0
827

The End.