199,113 Archived Topics
Remove Filter ![]() | |
hi guys, i already have a working upload.php, now the problem is that the file cannot accept pdf files? but other than that, it works very well, what do you think should i do with this? [code] echo"<form enctype='multipart/form-data' action='fileRecs.php' method='POST'>"; echo "<input type='hidden' name='MAX_FILE_SIZE' value =1000000/>"; echo "Choose a … | |
Hi Freinds, a Complicated situation for me. i Have a 2 tables in access with the same Field saying BANF_Nr which sees like " -BANF-0001" here this 0001 is an Autonumber like 0001,0002,0003,0004 and so on i have a textbox in Form txtbanf which should call automatically the next number … | |
I need a code that encrypts the password, please if anyone knows it please post. | |
hi, im not such a php expert and i want to parse a csv file located at [URL="http://www.totalbeauty.com/resource/lists"]http://www.totalbeauty.com/resource/lists[/URL]. does anyone know how i can do this, what to watch out for, the best way to do this and just general tips for parsing files. thanks.. | |
I find it hard to explain so I'm going to write down my code test.php [code=php]<?php if ($_GET['value']=="1") { $x='It is working fine'; exit(); } ?> <html lang="en"> <head> <script type="text/javascript" src="ajax.js"></script> </head> <body> <form method="post" action=""> <select name="s" onchange="makerequest('test.php?value='+ this.value)"> <option value="">Select One</option> <option value="1">One</option> </select><br/> <input type="text" id="res" … ![]() | |
I've been wanting to use ADO in a c++ project i'm working on. I was having some errors on it, and have since reverted to ODBC but i'm finding it rigid, and frenquently frustrating to work with. I'm going back and giving ADO a shot again, but simple pasting the … | |
I have to write a textual scenario for a gamming code . Should i write about the game or should i be writing about the code? | |
I have a large-ish project that I'm working on. It involves lots of modules with lots of classes inside them, and everything is coordinated by the main thread. Now, I have a variable in the main thread which I need to be accessible from pretty much everywhere (by which I … | |
write a program which takes student marks from user and it pass to student class object then that class decides whether the student getting first , second or third classes | |
I have the next piece of code: [CODE=C++] vector<ChatSession> ssid; void SessionCreator( void *ch ) { vector<string> users; ... ... ... ChatSession cs; // put chat session objects in vector array for (int i = 0; i < (int)users.size(); i++) { const char *t = users[i].data(); char t2[30]; memcpy(t2, t, … | |
Hey everybody. I have a question on how to break out of a java loop. Here is a break down of what I am doing. I have 3 arrays "chrs" and "value" and "NumTimes"; "chrs" is an array of characters that has been read in from an input file. Value … | |
Ok i have this code to retreive data from a Table "Calendar" and the feild within the table are Id,Day ,Month and Year. When i press the button to run this code and i get the error message "The parameterized query '(@Day varchar(8000),@Month varchar(8000),@Year varchar(8000))Sel' expects the parameter '@Day', which … | |
I have a form admission and a another form attendance. When i click on save button of the admission form the id which is contained in that form should be added to the combo box on the attendance form. eg. say if i am saving the details of ID 4..When … | |
Hi, I'm making a little program that will send email. I am fine with the sockets, but I keep getting a segmentation fault and I don't know why:$. I'm trying to make a loop that will let the user enter the data for the email, ending with a '.' on … | |
Hello, this is Metalcrunch. I've been learning C++ over the past days and I thought I'd make a calculator. So I looked over the existing code on the internet on how to make a calculator, understood it, then made my own from the very scratch. However, I'm having a few … | |
I'm coming from the PHP world, and it's nice to see the similarities between C & PHP. But I have so many questions! :) This is a simple fopen() script, easily found online. What I am wondering about is the buffer variable. I think I understand that it's only looking … | |
I want to write a script that makes sure users' home directories don't contain world writable directories, directories owned by other users, or other potential security problems. I'd like to echo any directory where one user's home directory can be modified some by another user. Can someone help me with … | |
Hi, here is my problem: I have created panel and put picBox in it. AutoScroll for panel is on, so the scrollbars are there. When scrollbars come to the limit, pictureBox is fitted with new image. Image is loaded correctly, but scrollbars rest in last position, i.e. they don't come … | |
Hi friends i have a datagridview on my form and i want to print this grid when user clicks on the button.i know that i have to use printdialog and printpage event.but i don't know how say that print just datagridview of this form? what's your suggestion. thanks | |
Hi, Does anyone know how to send commands to a shell that is already opened? I know how to open the shell to run a command, but how do I send another command to it? Here is what I can do Shell("C:\Backup\mysqlbackup.bat") This command runs the mysqldump command. But the … | |
Basically I have created a site where someone can view a table which contains information about various servers. They can also create a report from this table selecting the fields they want to see in their report. Each field can be selected through a checkbox and there are 16 different … | |
Hello, I'm a little bit new to Java and I use NetBeans 6.5.1. I just try to make a window 'by code, manual' (not drag and drop, not visually). This is my code (first I only want and empty window): [code] package javaapplication5; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import … | |
I am starting some threads using AfxBeginThread and they work by monitoring a flag (sent via lParam) and once they find the flag is set, they return. However, once they do return, they aren't deleted and I get a memory leak. Shouldn't this method work fine and not cause any … | |
Hello, I am trying to format a string in C# but am having trouble trying to set the width. Is there a way to use a variable int as the width instead of having to declare a static width? here is my code now... [code=c#] for (int i = 0; … | |
Hi, I have used AJAX lots before and I wondered if it was possible to set variables from an AJAX file E.G. an ajax file could set var set1 = 10; var set2 = 55; with both variables coming from an external file called by AJAX Could you tell me … | |
[code=python]from random import randrange import math def main(): print "This program will simulate the probability of rolling " print " a 5 of a knid in one throw." pos = randrange(1,7) dice = [0] *5 value = dice [ : ] for pos in [0,1,2,3,4]: dice[pos] = randrange(1,7) roll = … | |
I have a project that I made with VS 2008, and I need it to use the 2.0 Framework and not the 3.5 Framework because they company hasn't moved to a newer Framework yet. I already have a setup project with it, I just need to know how to roll … | |
hai dani, how to add an array item into a collection in xaml.cs im trying with the following code var video = e.result; listbox1.ItemSource=video[0]; here video is the collection. | |
SORRY I THINK I ADDED THIS TO SOMEONE ESLE THREAD B4 Ok so i have a file which i read in ... then i read the data line by line and create lists basically i needed to organsise(sort the data, in numerical order which i can do no problem and … | |
I have a drupal user table: [CODE]+------------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------------+------------------+------+-----+---------+----------------+ | uid | int(10) unsigned | NO | PRI | NULL | auto_increment | | name | varchar(60) | NO | UNI | | | | pass | varchar(32) … | |
Why did Microsoft Visual C++ developers choose "Form1.h" for us to put all of our source code in, instead of a Form1.cpp? I find the Form1.h file to grow without bound; thousands of lines... in an "h" file! Walt | |
Hi there, basically i'm trying to write a php script that allows me to retrieve the tour dates for my band from a MySQL table. I want the gigs.php page to show every upcoming gig that there is. On gigs.php i want a link to gigarchive.php which features all passed … ![]() | |
Hi I Have created a software program in VB6 that a customer can use to create job cards for jobs within the printing industry. it links to a database so all the information is saved and can be amended or updated or searched. I plan to market this to potential … | |
Hi, How to set background image of CTreeCtrl? And also how can i set different colours to different items of CtreeCtrl? | |
Hi all.. I would like to convert a hex to CString format.. I had try like below I shown, but failed to convert into CString format that I wish to.. Here is the example I tried.. CString sz; unsigned short test = 0xB0FF0000; sz.Format("%X", test); then I got sz = … | |
hi there snake.. i've implemented AIM & SIM...in authorize.net... but i'm facing a new problem... which is automated recurring billing.... i've used the codes from authorize.net... but things don't work out.... i've used the soap code...which has a web reference.. and i'm working in the test account so if you … | |
I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and the child form is displayed within the TabPage. I … | |
whenever i compile in code-blocks for wxwidgets following error is generated but when i priview the wxform it shows the form . i really don't know what is this. ||=== banking, Debug ===| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\platform.h|196|wx/setup.h: No such file or directory| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|103|#error "wxUSE_DYNLIB_CLASS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|111|#error "wxUSE_EXCEPTIONS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|119|#error … | |
These are my examples: [code] /*int WriteFile(const char* file_name) { fstream file; try { file.open(file_name,ios.out); file << "67"; //file << "I miss you very much."; file.close(); } catch(exception& e) { cout << e.what(); return 1; } return 0; }*/ /*int ReadFile(const char* file_name) { fstream file; file.open(file_name,ios.in); if(file.is_open()) { string … | |
Hi I am 'trying' to get my head around multi-threaded programs. I have a working program (single thread) that uses a socket to listen on a particular port and exchange info with a client(s). The basic program structure is this (most declarations and error-checking removed for clarity): [code=c++] ... /* … | |
Why does'nt the following code work? [code="cplusplus"] #include <iostream> class X { public: X() : m(0) { } virtual ~X() { } protected: int m; }; class Y : public X { private: class Z { void do_something() { std::cout << m << std::endl; } }; }; [/CODE] I get … | |
Hello! I have a liitle problem with my programm. I need to create programm that is making a AutoCAD drawing from a windows form. I Alrady got the everything done, but have one small problem: I can send command to autocad only once per my programm is running, if i … | |
hello all, I would like to create a menu named "Category" for word, which has other sub menu's. The user can install this addIn in his word and use it. I know that Visual studio provides AddIn support for word 2003, 2007. But don't know how to code this. How … | |
Hi, I am using this query for count [ICODE]SELECT Count(ID) from Table[/ICODE] But its showing the count of all the fields which are empty and zeros. I want the count of fields which are empty and zero. please guide me. Thanks. Take care. | |
Hi guyZz.. I have a POS project..... how can I stop/pause the spooling of the receipt in the printer??? b'coZz it's too many space in the paper... I need this... urgent......... Any reply/some source are really appreciated... thanks | |
i want to access the information of my uploaded file in php, let's say that i have Document1.doc, i want to edit its information, let's say the time it was uploaded, its filename and like that, not necessarily the file itself. thanks in advance... ![]() | |
Hi everybody, I tried to login [URL="http://muare.vn/Dangnhap.aspx?returnUrl=/forum/default.aspx?group=2"]this site [/URL] by cURL. But i keep getting this error: [QUOTE]Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed … ![]() | |
hey, i have my streamreader code, but im running it in a filesystem watcher program, once a certain file is seen, then read other files in the folder so i basically have the filesystem watcher set up to wait for this certain file. then i know the reader tries to … | |
Hi All, Im trying to find a method to allow files to be: 1. Uploaded and stored in a mysql database 2. List them, with "change" and "delete" options 3. Allow them to be downloaded, or even just viewed I have tried using blobs, but to no avail. I have … ![]() | |
i want to see all the installed font name using for each loop.i have written a code but it say object required.and it break at bold line. kindly let me know any idiea? [code=vb] Private Sub Form_Load() Dim f As Font B]For Each f In Fonts[/B] MsgBox f.Name Next [/code] |
The End.