199,114 Archived Topics
Remove Filter ![]() | |
Hi, I cant sent email using smtp and php. I am using one form with email,subject message, etc i want to sent an email to that email (in form) while submit button click. I am givin the code bellow(only php) [CODE] if(isset($_POST['Submit'])) { require ("req_mail.php"); $from = "support@somecompany.com"; $to = … | |
I am writing a program for school, its a problem from Deitel and Deitel Java: How to program. I have to write a turtle drawing program. It works great, what I have now is a method named enterCommands() that works that takes no arguments that can be used to cycle … | |
hi all i have search engine like that: sql = "SELECT * FROM ads WHERE ad_country='7' and approve='1' and ad_name LIKE '%iphone%' or ad_country='7' and approve='1' and ad_content LIKE '%iphone%' ORDER BY ad_date DESC LIMIT 0,30"; and it's work great but it is too long. are there any sample way … | |
Hi guys My first post , finding c# interesting but stuck somehow The problem is simple and straightforward I am trying to just change value of trackbar on mousehover but am not able to I am able to add user defined functions to trackbar1.mousehover but not able to call the … | |
Hi ,,, I need your help plz... i have programed a calculator and i have an On\Of button . when the user click On\Off button i want to disable all buttons i have except On\Of button, But also I need to enable all buttons when the user click it again. … | |
Hi everyone, I have wirte a programme to display the Palindromic prime, i.e 2,3,5,7,11,101,131,151.......... but I don't know what's wrong with my code, it can only display the number up to 11 and then no response. Could yuou help me to check out what's wrong? thank you so much. Here … | |
After successfully creating a Registration/Signin/user profile... now I am assigning a profile picture for a user ... I have a question... Everytime I hit upload it doesnt upload I added an "echo' to say if no file is chosen "Please Select a file", it shows this even when I select … | |
Hi I cannot figure out the results when the code reaches at line 41 (while loop) . ! it throws an error. displaying records of two different tables, want the solution but with the JOIN statement. Thanks, and kindly look into the Attachment file as it contains jpg file. | |
I came across a code snippit from my textbook with a : symbol. [CODE] for (String arg : arg){ System.out.println(arg); } [/CODE] I'd like to know what that : is, and what function it serves. Thanks, | |
I'm trying to turn my PyQt4 into a .exe in order to give it my end users. I'm so-so familiar with cx-freeze and I know how to use Innosetup. My problem is that when run from the command line my Qt application uses the icon correctly. After I freeze the … | |
I have no idea at all, nothing, on how to make a full, running and working snake game. I tried starting off using character symbols in ASCII to draw its head and body, but from there on I have no clue on how to make it move with out having … | |
Hi guys, I need your help. I was trying to update a certain data in my database using jsp and servlet. However i can't figure out why it wouldn't update the data. :( I'd greatly appreciate it if you could check my codes below. THANKS MUCH! Here's my jsp [CODE] … | |
Hello Guys, My problem is When i'm trying to run this program Sql QUERY doesn't work properly , but the month and day are okay but it comes to year it doesn't work... :( anybody can help me please? thanks [CODE] Dim strSql As String = "SELECT * FROM tblAudit … | |
Hi guys, In C# when i use the using statement. in case of try catch do i have to close the connection in case of any error. [CODE] try { using (connect=connecttodabase()) { SqlParameter demo_ID = new SqlParameter(); SqlCommand command = new SqlCommand("Demo", connect); command.Parameters.Add(demo_ID); int rowsAffected = command.ExecuteNonQuery(); return … | |
Please how do i create a report at runtime in vb.net? I have no idea at all because i've never worked with crystal reports and most tutorials I've come across actually don't treat the topic. | |
I want to replace a part of a string but ignore some other parts of it. I have pattern but don't know how to use it. [CODE] $message = '<div class="sacred">http://www.daniweb.com/ is inside the div tag so I do not want it replaced.</div>http://www.google.com/ is outside the div tag so I … | |
hi all.... i want to create a menu like the one in the image attached...... can you guys please tell me what is the name of that particular style of file open diaog.... i'm sure the code for this is available easily.... but i'm just not able to do a … | |
i'd like some help cause i'm new to assembly language i have this program in c and i have to convert it to assembly language int R[100]; char S[100,100]; int process(int rows) { int i; for (i=0;i<rows;i++) { tmp=strlen(&S[i])): R[i]=tmp; if (tmp==0) return i; } return i; } this function … | |
hi, plz help me how can i get the return value of mysql stored function from ASP.net with c#. Currently i m using the following code for this purpose [code] string strConnect = "Data Source=" + host + ";Database=" + database + ";User ID=" + user + ";Password=" + password … | |
Hi im new to php and i have been following along on a video on how to create a registration form, but im getting an error "Notice: Undefined index: button in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 3" Please help im new to php and don't know much Here is the code: [CODE]<?php … | |
Is anybody having idea about bar chart in php. I need to import the datas from excel sheet into php. I have created static bar chart. but i have to create dynamic bar chart . The datas should be retrieved from mysql or from excel sheet. If anybody knows kindly … | |
hi can you help me l trying to run a certain php job recruitment system but l am getting the following error: [COLOR="Red"]Fatal error: Using $this when not in object context in D:\xampp\htdocs\jobs\pb_events.php on line 5[/COLOR] and below is the referred pb_events.php script. [CODE]<?php function DoEvents($this) { global $_CONF, $_PAGE, … | |
hes the code [code]import java.io.*; import java.awt.*; import java.awt.event.*; import java.lang.*; public class CreateEventFile extends Frame implements ActionListener, WindowListener { private Label companyName = new Label("Event Handlers Incorporated"); Font bigFont = new Font ("Helvetica", Font.ITALIC, 24); private Label prompt = new Label("Enter this month's events"); private TextField host = new … | |
Hi Every Body I am just trying to insert a record in Access 2003 table by code of C#2008 Here is the code - [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.Data.Sql; using System.Globalization; using System.IO; using Microsoft.VisualBasic; … | |
I have a base class kaysonsSPdetails. which is internal and DemoDVD which is public and inherits SPdatabase. [CODE] internal class kaysonsSPdetails { /// <summary> /// This method is used to connect to databse is returns an open connection /// </summary> private System.Data.DataSet connecttodabase() { throw new System.NotImplementedException(); } } public … | |
Hi again! is there any way a program can read a .txt file without typing the .txt extension name? I need this for my ATM program for accessing an account number, it wouldn't look right if i have type 1234667.txt. I'm using Borland C++. Hope you can help me! Thanks! … | |
Hello geeks, this is my first post. ive gone through all the help in this forum but cant get this working. i will upload my project for you to help me. it contains a main form which calls a thread running on another class which runs a tcplistener. i want … | |
Hi.... I have just written a c# code which connects to a web server.... Pulls out xml, extracts data and inserts the data onto a database..... however i have a small problem scrubbing certain data of junk values..... few examples of the data i want to scrub are posted below... … | |
Hi, I want to get installed Xen kernels & initrds in my computer using a python code. When I do a ls /boot I get the following results. config-2.6.26-2-686 config-2.6.26-2-xen-686 grub initrd.img-2.6.26-2-686 initrd.img-2.6.26-2-686.bak initrd.img-2.6.26-2-xen-686 initrd.img-2.6.26-2-xen-686.bak System.map-2.6.26-2-686 System.map-2.6.26-2-xen-686 vmlinuz-2.6.26-2-686 vmlinuz-2.6.26-2-xen-686 xen-3.2-1-i386.gz and what I want is "vmlinuz-2.6.26-2-xen-686" & "initrd.img-2.6.26-2-xen-686". We can … | |
I am completely new to C++. I have a function that deals cards for a blackjack game. To do this, I need to call this function 10 times (two cards each for 4 players and a dealer). But it just deals the same card to everyone. I think it might … | |
if i want to inline a member function do i need to have it in both places below(decleration and implementation section)? or can i just place it in implementation section only or decleration section only and get the same result? class Ray { public: inline allocate( const int Lize ); … | |
![]() | I have to write this applet for my CIT 130 class. I understand that you can not give solutions nor do I want you to do my homework for me I just need some pointers. The questions ask to "Write an applet that draws a house with it's door and … ![]() |
heyy.. i am getting error on line 51 "Stack<Character> stack = new Stack<Character>();"..how can i fix it? please help. [CODE]import java.io.IOException; import java.util.Scanner; public class SymbolChecker { private String enter; public SymbolChecker(String in) { enter = in; } Scanner input = new Scanner(System.in); public void check() { int stackSize = … | |
Hello all i have created a java application which is writing to log files to specific path.logs are created successfully.When i use cat command to show the contents it is showing the correct data but when i use vi to open the file it is showing the contents like binary … | |
i'm having a problem with my code for evaluating postfix expressions. any comments on what's wrong on my code? [code] import java.io.*; import java.util.*; import java.util.Stack; public class Eval { private Stack<String> operatorStack; private Stack<Integer> operandStack; public int evaluate(String output) { StringTokenizer s = new StringTokenizer(output);//divides into tokens int value; … | |
I want to be able to create JLabels, all different names, with a for loop ex: [CODE] static JLabel[] totalAYearLabelYr = new JLabel[termYears]; [/CODE] So I got 30 JLabels named totalAYearLabelYr, which I'm not sure you can have 30 JLabels named the same thing. I wanna name them all totalAYearLabelYr1 … | |
I have searched and cannot find out why my code will not update the database. The program stops at the mDA.Update(mDS, "temp_data") line with the following error: System.Data.OleDb.OleDbException was unhandled ErrorCode=-2147217904 Message=No value given for one or more required parameters. Source=Microsoft Office Access Database Engine StackTrace: at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] … | |
I'm trying to bubble sort an array then display it in a list box. When I click the button the program crashes. Here is my code: [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Not TextBox1.Text = "" Then ListBox1.Items.Add(TextBox1.Text) ReDim Preserve numbers(numNumbers) numbers(numNumbers) … | |
This is a file named InBoundData.txt [TEX] 1 B777 850 Paris KL 9395 11.40 am 6 2100 2 B747 900 Lon KL 10000 12.30 pm 7 2100 3 A380 900 LA KL 16800 10.30 am 15 2750 4 A340 850 CapeTOWN kL 9580 12.10 pm 6 3000 5 A330 800 … | |
So here is cliff notes of my assignment: -Use Inheritence -Person(lname, fname, address) inherited by employee(rate, hours) What I would like to do: -Find how long my arrays have to be(depends on file length) -open file -go to function retrieve lastname from file -go to another function retrieve firstname ...etc … | |
My question is, if I want to upload 4 files at a time do I néed to store at my database all 4 filesize type and path or can I get away with only storing the file name and upload them. Thanks | |
ok here are the files [B]globals.h[/B] [CODE] #ifndef _globals #define _globals #define DATA( L ) ( ( L ) -> datapointer ) #define NEXT( L ) ( ( L ) -> next ) typedef enum { OK, ERROR } status ; typedef enum { FALSE = 0 , TRUE=1 } … | |
-List of names in a database -names have double assigned to them, x -each name has random 10 digit double generated from 0 to x -the name with the highest number double is assigned to a variable -if two names generate the same double then the name with in the … | |
I started writing a python script to rename files. I wanted it to be able to rename multiple files in a given directory. I started off trying to use rename but then found other options Can't quite get it to happen. Hope my code is understandable, can anyone assist in … | |
I use following code to Upload images to Web Server. But it shows successfully uploaded and even it shows image exists when i try to reload the same. But i cant see those in my Document root. I use Godaddy Windows hosting. Please Help me. Thanks. [CODE]if ((($_FILES["file"]["type"] == "image/gif") … | |
I basically need to make the repeat button work. I've tried several approaches but i've hit a brick wall and there doesn't seem to be a function I can find to get the values of the selected item and repeat them. self.listctrl.GetItemString() will only get the string from item in … | |
So, I'm writing an implementation of List in C++ as a programming exercise, so far I have this: [CODE]#include <iostream> #include <algorithm> using namespace std; template <class T> class Link; template <class T> class List_iterator; template <class T> class List { public: typedef List_iterator<T> iterator; List(); List(const List<T> & l); … | |
After a few months of learning and practicing C++ with the book C++ Primer Plus through Chapter 7, I decided to do myself a little simple program. I started with the decision to try splitting my program into multiple files, and I decided to collect all shared declarations/definitions (*) into … | |
Can somebody help me get my lingo and terms correct? I have a website hosted on Godaddy.com (please no criticisms, I know it's not the best. It's temporary). It the most basic hosting option. I need to run a nightly script at a specific time. I know and use php, … | |
[ICODE]I need to solve a 3x3 matrix, x,y,z of a funtion (I only have a 2x2 matrix determinant solved) I have figured out how to solve the determinant with this code and I have created another attached program that displays any size matrix I thought it might help.[/ICODE] [CODE] public … |
The End.