199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
| |
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 … | |
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 … | |
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'] == … | |
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); } | |
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 = … | |
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. | |
Anyone know how to make the return key used in a text box trigger an event? | |
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 … | |
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, … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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. | |
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 … | |
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 … | |
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 … | |
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 ======================================================= | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
can somebody explain me about parameters in initgraph in c++ graphics??? | |
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. … | |
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() … | |
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 ) . … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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, .... … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.