199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 05026652

Hi guys, I have recently tried to integrate the following script into my website to use with contact form (found here - [url]http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/[/url]) My Script looks like this: [CODE] <?php //new function $to = "hicky2k@hotmail.com"; $nameto = "rhys"; $from = $_REQUEST['client_email']; $namefrom = $_REQUEST['client_name']; $subject = "Hello World Again!"; $message …

Member Avatar for letoii
0
409
Member Avatar for cchap

I am using flat file db, not mysql so I can't use $limit I need to limit the number of records to 1, if more than 1 then echos something else: [CODE] $result = $db->getall(month); foreach($result as $item) show_record($item); } [/CODE] I tried to use 'break' but it comes back …

Member Avatar for cchap
0
140
Member Avatar for cchap

I am using a FFDB database (Flat File Database). This script works but it only shows first record (#1), if I delete the 1st record I get a blank page. I want to call all records and find 1 (one) that matches the criteria(s) independent of its record (key) number. …

Member Avatar for cchap
0
111
Member Avatar for elvis1

Hi guys. I have this ComboBox which I made : [url]http://i.imgur.com/kkB8T.png[/url] I want to reference each item from the combo to a win form . So far Ive this : string comboSelectedValue = comboBox1.SelectedItem.ToString(); MessageBox.Show(comboSelectedValue); It does display of course the value Ive chosen but thats not what I want …

Member Avatar for elvis1
0
162
Member Avatar for oamsath

Hello Daniweb Community.. I'm currently pursuing Bachelor Degree in Computer Science, and currently brainstorming some ideas for my Graduation Project. My interests include Compiler Theory and Game programming. I've been using XNA for years and some OpenGL. I've came up with an idea that I'm hammering right now for flaws …

Member Avatar for MoNaLiZaOman
0
191
Member Avatar for lunac

I'm trying to send an html/plain text email for an invoice program I am writing. I really want the html message because it offers better layout options for invoicing and some features to help my customers with their payments. However, some email clients don't work with html email -- especially …

Member Avatar for pircoThe0ne4nd0
0
2K
Member Avatar for web3

Variables vvi and hhi should be with for loop turned into vv1...vv30 and hh1, hh2...hh30. Now I can't get variables tv, lv, bv and rv to return the variable(vv1 or hh1...) value instead if I put vv into quotes it turns the variable into a string (with value: vv1 or …

Member Avatar for Troy III
0
186
Member Avatar for blackcorner

Hi folks: How can I get information regarding the drives in the system?, using Python, off course ;) The information must include (at least in part) the following: [LIST] [*]Size [*]Used space [*]Free space (although you can calculate this value from the former two, some systems are tricky and don't …

Member Avatar for asdsdadfgdgsafd
0
4K
Member Avatar for ShadyTyrant

I need a little help connecting to an oracle database. I keep getting this error: Data provider internal error(-3000) [System.String]. [CODE=C#] using System; using System.Collections.Generic; using System.Linq; using System.Text; using Oracle.DataAccess.Client; using Oracle.DataAccess.Types; namespace OrcaleTest { class Program { static void Main(string[] args) { string connectionString = "user id=travus;password=password;data source=127.0.0.1"; …

Member Avatar for stbuchok
0
611
Member Avatar for cjohnweb

Hello all, I've a seemingly simple question, but it's kind of got me thinkin there might be a "proper" way to accomplish my goal. My goal is a simple MySQL database schema install. In PHPMyAdmin I export a database, any database. I then save the file to the root directory …

Member Avatar for cjohnweb
0
292
Member Avatar for Tenaciousmug

This code will not insert OR update. But on the other ones it will.. but for this one, I'm doing an extra step to say that they can claim the item or not. From adding that extra step, it won't insert or update. [code]$rand = rand(1,3); if ($rand == 1) …

Member Avatar for ddymacek
0
201
Member Avatar for gyno

For quiet some time now i have been trying to get the java API library downloaded on my system but no success yet, i have tried all means possible that i know, for instance i have been to java.com, sun.java.com even to oracle.com lately but no success yet. I am …

Member Avatar for jackmaverick1
0
202
Member Avatar for rhuffman8

This is a continuation of problems with the program posted here: [URL="http://www.daniweb.com/software-development/python/threads/372311"]http://www.daniweb.com/software-development/python/threads/372311[/URL] I started thinking there was something wrong with my statement to open the csv file, using the reader. [CODE]reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb')) [/CODE] I put a test statement above the open statement …

Member Avatar for rhuffman8
0
353
Member Avatar for sabika abbas

hello ; i am making changes in design time but changes are not visible on run time can any body tell me why is this so?????????

Member Avatar for sabika abbas
0
98
Member Avatar for mtatadotcom

hello, i need help with this sub program, everything ele works fine except the subprogram that should compute the smallest and largest number in the array [CODE] #include<conio.h> #include<stdio.h> #define MAX 10 int input(void); int range(int i,int *s1,int *s2,int *s3,int *l1,int *l2,int *l3,int f[MAX],int hf[MAX],int lf[MAX]); void output(int v,int s1,int …

Member Avatar for mtatadotcom
0
167
Member Avatar for vin24

Hi guys! I would like to ask you a question about on how to save data on a text file using visual basic. I have a hard time getting the right code for this function. Does anybody of you know a simple code that you can share to me. I …

Member Avatar for faroukmuhammad
0
191
Member Avatar for k.d.m

Hi, I have developed a software program using c#.net and with sql server express. When I put this into production environment this should be able only for people who has a get the software by me. Eg: If I have issues a license, it should be valid only to a …

Member Avatar for skatamatic
0
111
Member Avatar for kapojian

my program doesnt seem following my if statement condition, i have || and && in my statement... is there a better way to do this??thanks this just an example of my code... [CODE]else if (age>19&&bmires2>=18.50||bmires2<=25.00) {messagebox.show("normal weight"); } else if (age<19&&bmires2<18.50||bmires2>13.25) { messagebox.show("underweight"); }[/CODE]

Member Avatar for kapojian
0
328
Member Avatar for lsvife

how to get the string in a choicegroup.popup... here is my sample code... [code=Java]Form frm=new Form("Sample"); ChoiceGroup cg=new ChoiceGroup("Sample",Choice.POPUP); frm.append(cg); cg.append("1"); cg.append("2"); cg.append("3"); int index=cg.getSelectedIndex(); String str=cg.getString(index);[/code] but i got null pointer exception.. anybody knows about it????

Member Avatar for peter_budo
0
120
Member Avatar for lsvife

hi all.. i've been practicing mobile programming for a months and i wonder why IMPLICIT is not included in CHOICEGROUP??? I got error when i try to use it...

Member Avatar for peter_budo
0
103
Member Avatar for westerncj

Hello, I'm new to php and I'm trying to code my first contact form. The only problem I have is that I receive no email when I test it on my server. I have an index.php file and a handle_form.php file. Here is my code... Am I doing something wrong? …

Member Avatar for westerncj
0
160
Member Avatar for raf.fredi
Member Avatar for pritaeas
0
100
Member Avatar for bluehangook629

I dont know if im posting on the right forum but I was wondering if you guys can help me pick out training material for VB.NET. After struggling with an application, I think I need to expand my knowledge on VB.NET and SQL. Whats a good tutorial or textbook for …

Member Avatar for bluehangook629
0
108
Member Avatar for Coyx

Hi everyone, My second time back to Daniweb looking for assistance with PHP. :) Okay, here's my PHP, and I'll explain what it does. [CODE]dbConnect(); if ($userclient == '2438') { dbOpenDatabase($GLOBALS['res_2438_contacts']); } else { dbOpenDatabase($GLOBALS['db_contacts']); } /************************************************ * THE IMPORTANT BITS - CHANGE BELOW * ************************************************/ //Product ID for Safety …

Member Avatar for Coyx
0
236
Member Avatar for androidz

hello everyone i want to know if there is any way or possible to make msflexgrid to be clickable?like if i want to copy a certain data inside the row of the grid and paste it into notepad or excel..im pulling my hair with this one..need your help..thanks

Member Avatar for androidz
0
186
Member Avatar for tatarao25

Hi all, [INDENT] i am facing a serious problem working with MySQL and Nhibernate 2.1.2.4.0 named queries. I have written a stored procedure and i am calling it in C# using a flat class to map the database fields. My problem is it seems to work fine with Mysql 5.1 …

Member Avatar for tatarao25
0
144
Member Avatar for PM312
Member Avatar for PM312
0
97
Member Avatar for Peter1

I need a fresh start and some fresh ideas. I get some text from a MySQL database and present like below. Each row is divided into five columns with radio buttons. ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- and so …

Member Avatar for Peter1
0
213
Member Avatar for paresh_thummar

[CODE] string sid = Session["id"].ToString(); string q1, q2; q1 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand cmd1 = new SqlCommand(q1, cn); int v1; v1 = (int)cmd1.ExecuteScalar(); q2 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand …

Member Avatar for kvprajapati
0
94
Member Avatar for vaishnu

Hi all I have created a custom buttom round in shape .Now i want the color of the button to be changed at the mouse click of the button . Designer.cs [code] using System.Windows.Forms; using System.Drawing; using System; using MyNamespace; public class MyForm : Form { public MyForm() { RoundButton …

Member Avatar for vaishnu
0
166
Member Avatar for PinoyDev

Good day! How to detect if ctrl + c or copy keyboard action in a combo box and put the text in that combo box to clipboard..and then ctrl + v to second combo box then paste the text from clipboard that waste copied. Thank you!

Member Avatar for PinoyDev
0
863
Member Avatar for pankajagar2002

Hi, In my application i want to get the explain plan of all the query executed and want to log that explain plan in log file. I am planning to use the hibernate or Ibatis. Could any body help me to tell that which one support to get the explain …

Member Avatar for dayoj
0
257
Member Avatar for Naveed_786

How can i display currently login user in crystal reports i.e when i run crystal report through my report form the username should be displayed in crystal report i am able to view the currently login user on my forms but didn't know how to schive this in crystal reports …

Member Avatar for anuj6928
0
93
Member Avatar for marietta_kan

I am pretty new in jquery and done some research on the internet but i couldn't much of a help...I want to create to drawers that will slide down on mouseover..i don't think the content is rellevant...any ideas???

Member Avatar for marietta_kan
0
85
Member Avatar for TIP.Synergy

i tried to delete or to clear the textbox but i got an error "Conversion from string "" to type 'Double' is not valid" here's my code textbox1.Text = Format(Val(textbox1.Text), "###,###.00") anybody can help me please? thanks...

Member Avatar for anuj6928
0
148
Member Avatar for jgat2011

Hi people, I am working on a project and I would like to create a report whose data are retrieved from my sqlserver database. Can anyone explain to me how to do it or any link that can help me?

Member Avatar for saj_amo
0
65
Member Avatar for hermann87

Good God, I've been stuck for like 2 hours, I suppose I can't think clearly anymore, but I just don't see why the statement below won't work, please help me out : [CODE]<?php session_start(); $username = $_GET['username']; $db = new PDO('mysql:host=localhost;dbname=subscribers', 'root', ''); $sql = "INSERTO INTO users (username) VALUES …

Member Avatar for hermann87
0
143
Member Avatar for chaychie

Hi all, I am facing a problem here which would like to seek helps from the experts. I have a table which is able to display all the data in text field format from the database in a table. The users are able to edit the displayed data. I would …

Member Avatar for Hummdis
0
148
Member Avatar for sarc007

How to Convert Copied Clipboard Image Data From Excel To Byte Array. Basically I am trying to save Excel CopyPicture image to the database. For which first I need to convert clipboard image to byte array and update in OLEDB Field of access database. I tried this code below [CODE] …

Member Avatar for himanshi arora
0
2K
Member Avatar for jack1234

I am using visual C++ 2005(native C++) I got the error error C2065: 'CString' : undeclared identifier for the following code, [CODE]#include <cstring> using namespace std; int main(){ CString ab; ab="a"; }[/CODE] what is the problem?

Member Avatar for Yellaiah
0
10K
Member Avatar for dzen

I have follwed the tutorial on [I]JSP database connectivity according to Model View Controller (MVC) Model 2[/I] for login servlet. I use ServletConfig servlet and init- parameters from web.xml according to the tutorial. I am using Netbeans IDE. Bu I receive this exception whan I try to use login form. …

Member Avatar for peter_budo
0
561
Member Avatar for senthilamp4

Dear Experts, Here i am written code for convert the text to CSV file conversion. i am facing a problem in while compare the two array to print the values row wise. below i have mentioned my code,input and output format. input : "OC192-11,OC192:CVS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:ESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SEFSS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:CVL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:ESL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" …

Member Avatar for poorrich
0
195
Member Avatar for hughesadam_87

Hey guys, I am writing a GUI program, and one of the routines requires that I choose a file to be my data file. If the data file is chosen correctly, then my program will send it to a subroutine which will perform a bunch of methods and ultimately construct …

Member Avatar for hughesadam_87
0
138
Member Avatar for silvercats

CREATE TABLE `employee`(`employee_no` CHAR(4) NOT NULL,`emp_name` TEXT,`employee_sal` INT NOT NULL,primary key (employee_no); << I typed this and it says there is an error (see below).I can't see what is it.000webhost.com Mysql server [CODE]Error SQL query: CREATE TABLE `employee` ( `employee_no` CHAR( 4 ) NOT NULL , `emp_name` TEXT, `employee_sal` INT …

Member Avatar for silvercats
0
84
Member Avatar for DarkPyros

i wrote a program to take text from a file of my choice named "data" and print it out on the screen, how can i tweak this so taht when the text comes out , it would be all in upper case using toupper?? this is the code [CODE]#include <stdio.h> …

Member Avatar for DarkPyros
0
184
Member Avatar for rocket1356

I am trying to open another page from an image. I can open the page on a different window by doing this: onclick="Response.Redirect(cci_info\cci\features\create_CCI\WebForm1.aspx);" But I don't want to open another window, rather I need the image button to open a page in the same window. Thanks for the help. [code=ASP]<asp:image …

Member Avatar for ziketo
0
2K
Member Avatar for momonq1990

my calculator work perfect in IE but not in mozilla? what i need to do.. i think its all about to my function i need help to onClick event. pls. here's code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../css/calculatorCss.css" rel="stylesheet" type="text/css" /> <title>tile calculator</title> <script type="text/javascript"> <!--variable …

Member Avatar for momonq1990
0
267
Member Avatar for marcux

Hi all! I have been hacking some Qt before, but now I want to try to code in Gtk and std C++. I have been searching the web but I can not realy find what I am looking for. As I can see Gtk is written in C. Is it …

Member Avatar for GreenDay2001
0
226
Member Avatar for syria718

please help me fix these problem,,,, when i'm running the program it exits emediately [CODE]main()/*Start of the function main???*/ { do{/*do while loop initialization*/ print(); scanf("%c",&choice1); switch(choice1){ case 'A': case 'a': addContact(); break; case 'F': case 'f': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case 'E': edit(contacts); …

Member Avatar for syria718
0
160
Member Avatar for u8sand

I programmed this vector class to support different types and different amount of dimensions. (class T,int D) D is the dimension. I don't use templates much and I'm running into an error, my constructors aren't working. Here is my class [CODE]#include <stdio.h> #include <stdarg.h> template <class T,int D> class Vector …

Member Avatar for mike_2000_17
0
249

The End.