199,114 Archived Topics

Remove Filter
Member Avatar for
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 rahini
Member Avatar for ashwin149

Hi.I am working on a project(patient management system).I want a code for this. Once I enter the name of the patient whose details want to know, I want the next form to be loaded and those specific details of that particular patient(already stored in a database) to be displayed in …

Member Avatar for AndreRet
0
83
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 ranjani jai

I am working for online examination project. my work is to generate random number without repetition. i tried and i am getting numbers to be repeated sometime.... I need to know how to check the repetition in the generated number. random r=new random(); for(i=0;i<10;i++) { int j=r.nextint(10); System.out.println(j); }

Member Avatar for ranjani jai
0
653
Member Avatar for bbinais

if my php website is ideal for 30 minutes it shuld be redirected to login page please help me.... this is my checkuser.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword = mysql_real_escape_string($password); $sql = …

Member Avatar for Shanti C
0
137
Member Avatar for fawadkhalil

Hi all I populated gridview using custom paging and wraped it in update panel. Issue is when i go to a page, select an item and press browser back button it take me back to first page not to page that i last visited.

Member Avatar for ciint
0
171
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 raghujosh

I have about 500 items in a database (MS SQL server 2008). These individual items have some other properties stored as tables. I am trying to display these items as html links on either a JSP/HTML page. I have a page with alphabets A....Z which are html links in themselves. …

Member Avatar for raghujosh
0
142
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 MackeyJenkins

Hello I'm trying to name a uploaded image to my website with a random number / letter combination and if the number it generates is taken it makes a new one untill it finds a free one, then i need to insert the url of the image into a table …

Member Avatar for MackeyJenkins
0
102
Member Avatar for java1

how do i go about making a java music player? i have very basic knowledge in java and i learn best when i jump into a project..which in this case is a music player i would like it to play mp3 files with a nice looking GUI unfortunately...i have no …

Member Avatar for mrnutty
0
125
Member Avatar for mikeandike22

ok i want to make a program to show a teacher at my school so i can get into computer Ap which teaches you java(but they say u have to know stuff to get in it makes no sense i am in highschool). here is some seudocode and the code …

Member Avatar for Nmanpure Pkr
0
237
Member Avatar for hussainiat

function tempdbentry() { var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ var myname = document.ItemEntryForm.iname.value; var mycat = document.ItemEntryForm.selectcat.value; var mypic = document.ItemEntryForm.ipic.value; "<?php $phpmyname = '?><script language=javascript>document.write(myname);</script><?php'; $phpmyname = str_replace('?>', '', $phpmyname); ?>" "<?php $phpmycat = '?><script language=javascript>document.write(mycat);</script><?php'; $phpmycat = str_replace('?>', '', $phpmycat); ?>" "<?php $phpmypic = '?><script language=javascript>document.write(mypic);</script><?php'; $phpmypic = str_replace('?>', '', $phpmypic); …

Member Avatar for Airshow
0
1K
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 noamo48

I know this is a total newb question but I'm a beginner programmer trying to learn how to work with sockets and network programming in general with C# and .Net. I'm working on a tcp echo client and server, two separate apps which I have programmed and run side by …

Member Avatar for noamo48
0
392
Member Avatar for emation

I want to code assembly,Code assembly is convert number to character for ASCII code. example. ======================================================= Input ASCII CODE (in hexadecimal) press Esc to end the program : 41 Out put character is : A =======================================================

Member Avatar for skaa
0
225
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 skaliam

Hi, im quite new to python and I am trying to extract some data from a csv file and put it into a new file, this is the first line of the data: 1,3,0,1,2,2,1,13,19,30,13,10,20,+1 I have managed to get it to print a new line per column, but i need …

Member Avatar for TrustyTony
0
203
Member Avatar for JavaStudentCode

Dear All, I'm taking a course online for school on how to code with Java. My current assignment is to have the computer read in a text file and make it split it into 5 different arrays. I am really bad with Psuedocode so if you answer like that it …

Member Avatar for Katana24
0
897
Member Avatar for bmj1474

I am trying to set up a Contact form on my website that will: [LIST=1] [*]Gather the user's info [*]Validate that none of the required fields are empty, if they are, then redirect the user back to the contact form page to fill in the empty field [*]Send it to …

Member Avatar for diafol
0
153
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 Duki

I'm not positive this is the right place to post this. We're starting analysis for converting to UTF-8 on our application. During testing, all of our test data is displayed incorrectly in visual studio - our two-bye UTF-8 characters are being displayed as two one-byte ASCII characters. Is there a …

Member Avatar for Ancient Dragon
0
106
Member Avatar for Hakoo

Hello all, After very longtime I am sending thread on this. Before I used to send threads in JSP. But now I am working on J2ME. I have installed " JAVA ME SDK PLATFORM" when I run any MIDlet getting JIT error. This error is related to each PC, I …

Member Avatar for peter_budo
0
53
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 folwea

Hi, i am new to this forum and i am just learning c++. Can somebody help me with sorting numbers. I have: I have 3 ints(int1,int2,int3), each spanning from 5 to 17, now i want to compare int1 and int2 and type out all numbers from lowest to highest(5,6,7,8...), than …

Member Avatar for mrnutty
0
130
Member Avatar for whiteyoh

Hi all, Im a bit stuck. I think im staring the answer right in the face but cant see it. Im after a query that references 1 table. Its output will be each unique source code along with a total of grouped data from a single column. SOURCECODE Count of …

Member Avatar for tiggsy
0
84
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 gspeedtech

Hello, I am working with a Windows Application that was developed in VS2008 on a SQL2000 database. I am trying to determine the Datasource of a row in an existing DataSet. I have narrowed it down to 2 possible tables that each have a row with the same identical name. …

Member Avatar for gspeedtech
0
115
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 Awah Mohamed

hey people . i am not a very good programmer . i am biginner in web designing . not a very biginner . i can design a full website in php/mysql and a can create a powerful php apps but my main problem is seo (search engine optimization ) . …

Member Avatar for Awah Mohamed
0
116
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 chandaboy

Hi, all I want to get the data from the div tag, from this website [url]http://www.weather.com/outlook/travel/businesstraveler/hourbyhour/PKXX0008?begHour=7&begDay=4[/url] when you click on the firebug in firefox you can see there is a and under this div there are more divs there, I want to get the data (i,e,. only the 3pm, 25,25 …

Member Avatar for chandaboy
0
154
Member Avatar for pikkas

hi, i m trying to make something like a login page with C# using VS 2010 and SQL server database. I am using the following code to get the password from the appropriate username but i get an error of Object reference not set to an instance of an object. …

Member Avatar for pikkas
0
113
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 Dekea

I need to sort it with [B]bubble sort[/B] from text file! I made with sorting letters in words but don't know how to sort strings in alphabetical order, like that: [QUOTE]post new thread[/QUOTE] = [QUOTE]new post thread[/QUOTE] mine code [CODE=c]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace …

Member Avatar for Dekea
0
204
Member Avatar for abrmhk

Hi I am reading x lines from a text file into an array per line: [CODE=ksh] integer SCRIPT_LINES=0 while read VAR1 VAR2 VAR3 VAR4 VAR5 do .... SCRIPT_LINES=$SCRIPT_LINES+1 set -A SCRIPT_${SCRIPT_LINES} ${VAR1} ${VAR2} ${VAR3} ${VAR4} ${VAR5} ... done [/CODE=ksh] This creates a number (SCRIPT_LINES) of arrays: SCRIPT_1, SCRIPT_2, SCRIPT_3, .... …

Member Avatar for scoude
0
177
Member Avatar for JeeJ

Hi all am a beginner in C# iam making a Drawing application the user will choose the x-y position , width ,hight , the shape and the color he want and then press the Draw button i coded the button and it work properly and draw the shape in the …

Member Avatar for taylby
0
146
Member Avatar for JohnPhillips

Good morning, I have a batch file with the following code which works fine: MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0160020} /q I would like to execute it from within the .net environment, however I can't seem to execute that command using the shell syntax. I tried Shell (cmd "MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150070}",vbHide), and various …

Member Avatar for JohnPhillips
0
183
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

The End.