199,114 Archived Topics
Remove Filter ![]() | |
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): … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
<?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 … | |
![]() | 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 … ![]() |
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> … | |
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 .. | |
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 … | |
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 … | |
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 … | |
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, … | |
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 | |
hello i need a countdown timer that count from 10 to 0 and then give me a msg "win"....?? | |
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 … | |
Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti | |
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....:( | |
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 … | |
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; … | |
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 | |
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] … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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) … | |
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 … | |
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, … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 | |
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"> | |
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 … |
The End.