199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Hawkeye Python

Hi! The following Tkinter buttons should call [I]opt_def[/I] with [I]opt[/I] as 1 or 2 depending on which button is pressed (see code). [CODE]from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() self.opt1 = Button(frame, text="Opt1", command=self.opt_def(1)) self.opt1.pack(side=TOP) self.opt2 = Button(frame, text="Opt2", command=self.opt_def(2)) self.opt2.pack(side=BOTTOM) def opt_def(self, opt): …

Member Avatar for Hawkeye Python
0
3K
Member Avatar for Duki

What happens if I have a method declaration of: [code=c++]int method( char * a, char * b, int * c );[/code] and then I pass in: [code=c++] char a; char b; int c; method(a, b, &c); [/code] This has me a little puzzled. What values will be passed by reference?

Member Avatar for Duki
0
216
Member Avatar for midimatt

Hi Everyone, Had a friend of my come up to me today to have a look at a very strange crash that he was experiencing with a Media player he's creating. The application was previously running fine, but this time after reopening the project after a few months it crashes …

Member Avatar for Ketsuekiame
0
107
Member Avatar for manugm_1987

Can anyone please help me out in creating an .exe file. I have a database included in my project as a backend. When i publish my application n run tat in my sys it works fine. When the same application is installed on other machine which doesnt contain sql server …

Member Avatar for kvprajapati
0
165
Member Avatar for Awah Mohamed

hey guys, i want to build a social network and i somehow know what i am supposed to be doing but my problem now is what color should i use for the layout ?? i am realy so stupid in colors and i never know what color exactly i can …

Member Avatar for mschroeder
0
62
Member Avatar for dougancil

I have two forms and I am running a sql query to provide a set of variables in my first form that I need to pass to my second form. Here is the code that I have: [code] Imports System.Data.SqlClient Public Class Main Dim instForm2 As New Exceptions Public payrollstartdate …

Member Avatar for dougancil
0
354
Member Avatar for MrCapuchino

Hello I created a setup project for an application. The output goes to the program files folder. I create a shorcut on desktop too. The thing is that the application works with some text files embeded. When I run the application and click new there is an error saying that …

Member Avatar for Ketsuekiame
0
152
Member Avatar for flipper828

Hello, I am fairly new to PHP and MySQL so I apologize if I am just being lazy and/or stupid on this. I searched previous threads and found this one [URL="http://www.daniweb.com/forums/thread178612.html"]Insert data into two tables using php and mysql[/URL] It helped me tremendously but only to a point. Below is …

Member Avatar for flipper828
0
179
Member Avatar for nemo

in one of my course my teacher and i do not agree on how 100100000 should be divided by 1101 using binary division , after solution the quotient i get is 010110 with remainder 010. my teacher gets another, can someone please confirm a correct solution for it. regards, nemo

Member Avatar for murphp
0
302
Member Avatar for awslc

Hello there. I am wondering whether you'd be able to check this ER diagram for me please for an online job service for university students? I have it constructed but I get anxious with these things and am looking for tips on whether my design is currently accurate. [url]http://www.daniweb.com/forums/attachment.php?attachmentid=18943&stc=1&d=1295818361[/url] Thanks …

Member Avatar for crfraser
0
1K
Member Avatar for Awah Mohamed

hey people i am designing a website in php/mysql . well it is a social network. simple one. but i didnt know how to allow people to add friends . so i found the easiest way for me is to create a separate mysql table for each member containing all …

Member Avatar for mschroeder
0
107
Member Avatar for jcb1269

I'm wanting to display more than one month at a time with the datetimepicker control, I'm not having any luck. First, is this even possible and if not any recomendations on how to achieve this? Thanks in advance! Jim

Member Avatar for jcb1269
0
85
Member Avatar for arunwrc

<?php $to="sreedevs.arun@gmail.com"; $subject="bad boy"; $message="message"; $attachment="image.jpg"; $attachment_MIME_type="image/jpeg"; $handle=fopen ($attachment,"rb"); $data=fread ($handle, filesize($attachment)); fclose ($handle); $boundary="---Multipart_Boundary----"; $headers="\nMIME-Version: 1.0\n". "Content-Type: multipart/mixed;\n". " boundary=\"".$boundary."\""; $data=chunk_split(base64_encode($data)); $text="--".$boundary."\n"; "Content-Type:text/plain\nContent-Transfer-Encoding: 7bit\n\n". $message."\n\n--".$boundary."\n". "Content-Type:".$attachment_MIME_type.";\n name=\"". $attachment."\"\nContent-Transfer-Encoding:base64\n\n". $data."\n\n--".$boundary."--\n"; $result=@mail($to,$subject,$text,$headers); if($result) { echo "the mail was sent"; } else { echo "the mail was not sent"; } ?> output …

Member Avatar for serverack
0
151
Member Avatar for Eneswar

Hey all, my first post in this brilliant website, got a lot of ideas from here. So I'm a student and currently we are learning a bit of php and right now I'm stuck. I have a database with URL adresses, there is 3 fields, id, name and adress. I …

Member Avatar for Eneswar
0
162
Member Avatar for TheDestroyer

Hello programmers :), I'm creating a program that requires too many command line parameters to run. I noticed that many system programs in Ubuntu (my operating system) have the feature of auto-completion of the command line parameters. So, for example, if you type the following in Ubuntu: sudo apt-get i<tab> …

Member Avatar for TheDestroyer
0
2K
Member Avatar for vanzhyme

ahmm.. guys could u please help me about tab control . I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2. please help me ..

Member Avatar for vanzhyme
0
152
Member Avatar for hanslim77

I'm trying to run audio in a different thread but I have no idea why but when I call wait(), my entire program seems to wait or hang.. not sure if it's deadlock since all it does is wait(), though if I set a time period, after that period it'll …

Member Avatar for hanslim77
0
214
Member Avatar for SpS

I HAVE LOADED ORACLE 8i ON WINDOWS XP. IT HAD LOADED SUCCESSFULLY AND I HAD WORKED ON IT. BUT ON NEXT REBOOT WINDOWS IS NOT ABLE TO START THE SERVICE CALLED OracleServiceORCL. WHEN I TRY TO START IT AGAIN IT ENDS WITH AN [quote] ERROR:- Could not start the OracleServiceORCL …

Member Avatar for Vadim_Invar
0
2K
Member Avatar for fabzster

Hi I am trying to get this function to work but having issues [CODE] // check that policy number not entered on the DB if no policy is entered skip Mysql query function validatePolicyNumber($PolicyNumber){ //Return Session Value so user does not have to retype entry return $_SESSION['PolicyNumberAdd'] = $PolicyNumber; $Connection …

Member Avatar for fabzster
0
113
Member Avatar for Sunshineserene

Hi all. I'm having a problem to represent or use a variable as an int. [CODE]Color c = new Color(255, 0, 0); int y = c.getRGB(); for (int v = 0; v < h; v++) { for (int u = 0; u < w; u++) { int x = image.get(u, …

Member Avatar for masijade
0
142
Member Avatar for TetuGal

Hello, I am a software engineering student going into my final year in September and would like suggestions on topics for my final year project. I would like to do a project related to the web and databases. Possibly using PHP and MySQL Any suggestions will be appreciated

Member Avatar for mikegte
0
211
Member Avatar for chabo

hello i need a countdown timer that count from 10 to 0 and then give me a msg "win"....??

Member Avatar for manimaran.m
0
111
Member Avatar for Annettest

Hello all: I would be grateful for some basic advice about C++ error handling. From my reading, I understand that the "try, throw, catch" method is preferable to dealing with return values, which can be cryptic. But I'm not sure if I understand exactly how this works. I made a …

Member Avatar for Moschops
0
174
Member Avatar for Shanti C

Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti

Member Avatar for Shanti C
0
239
Member Avatar for EMT

I am not getting the difference between the [B][COLOR="Red"]action and onsubmit[/COLOR][/B] tags of the form in html. [CODE] <form method=GET action="xyz.php" onsubmit="return xyz()"> [/CODE] my problem is [B][COLOR="Red"]"which will be called when"[/COLOR][/B] and [B]limitations of each tag[/B].Kindly Help....:(

Member Avatar for pritaeas
0
385
Member Avatar for tjm6f4

Hi, I'm pretty new to C# but I'm very familiar with C++ and first off I wanted to know if anyone has a good website with some tutorials for C#. Other than that, I have a few basic questions regarding GUI programming. I suppose one question at a time is …

Member Avatar for Ketsuekiame
0
159
Member Avatar for alex9292

hi im trying to make a simple guess a number game for an assignment and i dont get why im getting a does not exist in the current context error here is my code i put the part that gets an error in red any help appreciated thx [CODE]using System; …

Member Avatar for alex9292
0
159
Member Avatar for ofir0803

example: [CODE]<img src="img.jpg" alt="" /> <a href="#" alt="" />[/CODE] i want to do someting if the string="alt" exist in the img tag and someting else if the alt exist in the href tag

Member Avatar for ofir0803
0
155
Member Avatar for altarek

I used this code to upload file but it remove The first word of the name of the file When the file name in Arabic [CODE]$notefile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo ""; } else{ echo ""; } [/CODE] …

Member Avatar for Shanti C
0
71
Member Avatar for ammarahmad001

I want a programme in c# in which , Delete phone numbers from csv file,if these phone no. exist in database Please helo me regarding this

Member Avatar for ddanbe
0
70
Member Avatar for Neversleepin

Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you …

Member Avatar for Neversleepin
0
167
Member Avatar for Climber Ty

I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int …

Member Avatar for Climber Ty
0
8K
Member Avatar for ash07

Dear all I am developing an application in VB & Access .I am trying to secure application by adding user control,trace modules,database password. (just today i saw how to make a folder inaccesible+ not to allow delete.) 1)I would like to know how do i secure my application.. am i …

Member Avatar for AndreRet
0
157
Member Avatar for lochnessmonster

want user to input an integer value...the integer value is then converted to an ascii string....the ascii string is then passed into isValidNum(num); and it should return 1 if the number is valid and 0 if number is invalid. for some reason it keeps returning 1 no matter what value …

Member Avatar for WaltP
0
383
Member Avatar for vijaysachin

Hi All, I have one strange issue, JSP cannot Identify the JS, CSS file path when URL pattern is /*. Let me explain in detail. Irrespective of relative path my application should have to call Home.jsp. So for that I have specified URL pattern as /*. This logic is working …

Member Avatar for code learner
0
351
Member Avatar for slugdoug

I am trying to learn vbscript and am having trouble with one of me first scripts, can someone look and see what I am doing wrong? I get the following error: Line 13, Path not Found. 'if folder B does not exist it is created option explicit const OverWriteFiles = …

Member Avatar for AndreRet
0
104
Member Avatar for zlloyd1

I am trying to write a PHP script to connect to a database I have created in WAMP Server 2.0 but no matter what I do I keep getting the same error message: Parse error: parse error in C:\wamp\www\database.php on line 5 I have looked at this for over an …

Member Avatar for HG&C
0
155
Member Avatar for Crutoy

Hello, i'm reviewing the exercise from the book and trying to understand the point. Basically it creates a static array and declares uninitialized char pointer. Then it allocated memory dynamically to the same char pointer. What i don't understand why is the program using strcpy() to copy string into newly …

Member Avatar for lisaroy1
0
306
Member Avatar for TIP.Synergy

I want to UPDATE query instead INSERT INTO using this code help me thanks. [CODE] Dim cmd As New OleDbCommand("INSERT INTO tblPurchase_Order ([Order_Id],[Supplier_Id],[Address],[Project_Id],[dtpDate],[Material_Id],[Material_Name],[Unit],[Quantity],[Unit_Price],[Amount]) VALUES (@Order_Id,@Supplier_Id,@Address,@Project_Id,@dtpDate,@Material_Id,@Material_Name,@Unit,@Quantity,@Unit_Price,@Amount)", conn) cmd.Connection = conn cmd.CommandType = CommandType.Text cmd.Parameters.AddWithValue("@Order_Id", lstItems.Items(i).SubItems(0).Text) cmd.Parameters.AddWithValue("@Supplier_Id", lstItems.Items(i).SubItems(1).Text) cmd.Parameters.AddWithValue("@Address", lstItems.Items(i).SubItems(2).Text) cmd.Parameters.AddWithValue("@Project_Id", lstItems.Items(i).SubItems(3).Text) cmd.Parameters.AddWithValue("@dtpDate", lstItems.Items(i).SubItems(4).Text) cmd.Parameters.AddWithValue("@Material_Id", lstItems.Items(i).SubItems(5).Text) cmd.Parameters.AddWithValue("@Material_Name", lstItems.Items(i).SubItems(6).Text) cmd.Parameters.AddWithValue("@Unit", lstItems.Items(i).SubItems(7).Text) cmd.Parameters.AddWithValue("@Quantity", lstItems.Items(i).SubItems(8).Text) …

Member Avatar for TIP.Synergy
0
222
Member Avatar for Sonny101

Hi all, I am currently attempting my first project for programming using Java. One of the classes I have made contains 3 constructors, now I remember learning a little about the [I]this[/I] keyword and thought it may be appropriate here, however, I am not completely sure on how to use …

Member Avatar for lisaroy1
0
127
Member Avatar for Avasulthiris

Hi, I'm trying to expand an existing php-based project. I need to be able to allow users to create basic flow diagrams inside their web browser. Drag and drop environments with movement and resize abilities on a js canvas. Start blocks, information blocks (possible hyperlinks too), Decision Blocks, End Blocks, …

Member Avatar for Avasulthiris
0
189
Member Avatar for ram619

In this code compiler says "type mismatch" in function. There are two diff data type in function one int and one Float. Is it possible to use two diff values or i need to take both of same type. plz rply Thanks [code=c] #include<stdio.h> #include<conio.h> void main() { int a; …

Member Avatar for lisaroy1
0
388
Member Avatar for Latvija13

I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it …

Member Avatar for JamesCherrill
0
123
Member Avatar for tinker

Please help me solve a problem on passing the value form javascript function to the 'hidden' form and the form will be submitted to the php code for processing the data. Here are my codes below: First i have a link which will trigger the function 'passValue()' that holds 3 …

Member Avatar for McLaren
0
137
Member Avatar for owilliam

Chances are this is a dumb question, but hey, I don't have anywhere else to go. I wrote a basic hangingman game on my pc desktop using a paint event to draw the hangman. Unfortunately, this code doesn't seem to run the same on my new apple computer. It comes …

Member Avatar for richieking
0
107
Member Avatar for fishcer

i'm new in php, especially php array and i wanna learn more about array, i found this forum sound interesting to solve my problem. i have some array like this : [CODE] Array ( [0] => Array ( [0] => Printer_B //printer [1] => IDDHARMAHE //user ) [1] => Array …

Member Avatar for fishcer
0
7K
Member Avatar for wafieali

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\eUTM\login\logincheck.php on line 13 here is the code: <?php //login check require_once("dbconn.php"); $con=connectdb(); $idpengguna=$_POST['idpengguna']; $katalaluan=$_POST['katalaluan']; //login PELAJAR from table pelajar $pekerja_query="SELECT * FROM pengguna where idpengguna = '$idpengguna' AND katalaluan = '$katalaluan'"; $pekerja_result=mysql_query($pekerja_query,$con); $pekerja_row=mysql_fetch_array($pekerja_result); if(!$nama_id && !$katalaluan) { $err=1; …

Member Avatar for wafieali
0
446
Member Avatar for JD69

I have a textbox on form1, how can i get that textbox to display the same information on form2 automatically? form2.textbox1.box = form1.textbox1.box please help thanks

Member Avatar for Luc001
0
93
Member Avatar for GuruMS

How To Insert Image To A JSP File I have Tried Using The Flowing Code In This any Error Is There Please Give The Answer This Is My Code I Used <img src="SOCIALWEBSITE/Image/login.jpg" width="250" height="250" alt="img">

Member Avatar for peter_budo
0
6K
Member Avatar for tape enterprise

I need to know how to sort my authors into their respective categories I have a mysql table with the authors details and another with the categories this is my code to get the info from the tables (i realize I spelled category wrong in my database) [CODE]$sql = 'select …

Member Avatar for jrivera
0
126

The End.