64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 68thorby68

I'm experiencing alot of issues trying to create the $to field as a variable, PHP is reporting Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/shhdcouk/public_html/PHP/class_vcard.php on line 172 and I'm not sure why.... my code is. $send = $_POST['email1']; $to = $send; $subject = "Registered for xxxx"; $body="Thank …

Member Avatar for 68thorby68
0
92
Member Avatar for bobbysox

Hi, I'm new to python, but I want to start learning :) I just wondered if anyone could tell me how to use a variable from a function outside the function?

Member Avatar for sravan953
0
86
Member Avatar for aashishn86

hi all i have been using ASP... I basically wanna learn PHP and Drupal now.... I tried installing WAMPSERVER ..... I have got it installed , but i can't make it run... i already have IIS installed on my computer.. i changed this in the httpd.conf file [COLOR="Red"]Listen 8080 ServerName …

Member Avatar for aashishn86
0
248
Member Avatar for mvchandoo

I had problem with mouse out in div. i tried for one long day in vain. can any one do it. it was an urgent issue.Thank you in advance. the code is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>The test</title> </head> <script type="text/javascript"> function changeStyle(div) …

Member Avatar for Troy III
0
152
Member Avatar for NinjaLink

Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - …

Member Avatar for NinjaLink
0
273
Member Avatar for Lethys

Hi [CODE] void Connect() { try { ST = new WebClient().DownloadString(first_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { try { ST = new WebClient().DownloadString(second_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { if (ST == "") { DateTime dt = DateTime.Now; string c = string.Format("{0:d/M/yyyy HH:mm:ss}", dt); label5.Text = …

Member Avatar for serkan sendur
0
109
Member Avatar for rayarman

Hi, I have the following dates, either: - 07-09-09 (which is 7th September 2009) or - 07/09/2009 (which is again 7th September 2009) I need to reformat whichever one of these formats comes up so it is correctly inserted into myql db via php. Have tried strpos to find - …

Member Avatar for almostbob
0
106
Member Avatar for catcit

Hello! I need to create a progress bar and up to this our this class [URL="http://code.activestate.com/recipes/492230/#clast"]http://code.activestate.com/recipes/492230/#clast[/URL] is the best class that fits my needs. I posted my problem at comments. Thanks, Danci Emanuel

Member Avatar for vegaseat
0
566
Member Avatar for Schoorsteen

I had a rather short question, doesn't OOP Programming make you increase the amount of executed queries? [code=PHP] class Guild{ private $members[]; private $sName; private $iLevel; function __construct($guildId) { // get all information from db using the guildid // also get all memberid's from the db and pass these trough …

Member Avatar for Schoorsteen
0
129
Member Avatar for atch

Looking through boost random library I've come across literal something like 331u. Does anyone can explain to me what this u is about? [code=c++] void seed(uint32_t value = 331u); [/code] Thank you

Member Avatar for Dave Sinkula
0
160
Member Avatar for rayarman

Hi, I've got the following type of date string parsed from an OFX file: 20090902000000[-5:EST] How can I get this into my mysql db via php - formatted as d-m-Y I've tried : [code]$ofxdate = strtotime("20090902000000[-5:EST]"); $stmtdate = date("d-m-Y",$ofxdate); [/code] Obviously wrong! ... Any assistance appreciated! How would I do …

Member Avatar for melissagirl
0
128
Member Avatar for Bladtman242

Hi, this code is merely for testing a coulpe of functions for use in a bigger program, therefore this code alone may seam silly, but there is a point to it:) When i run this and press "1" the program just terminates, pressing "2" or "whatever here" works fine however? …

Member Avatar for Bladtman242
0
534
Member Avatar for Covinus

whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it

Member Avatar for Tom Gunn
1
1K
Member Avatar for mike89

The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. Before there are six characters entered in the CAPTCHA code field, the 'Send' button is …

Member Avatar for mike89
0
199
Member Avatar for hemgoyal_1990

Hi All, I have a PHP code for Sending http post from cURL. it work fine but i have a trouble that when i am send any data from loop it display me only first string the remaining string it not print. I am Use this Code. [ICODE]<html> <head> <meta …

Member Avatar for hemgoyal_1990
0
695
Member Avatar for arbrophy

<< split from [url]http://www.daniweb.com/forums/post865360.html#post865360[/url] >> I'm using Visual Studio 2008 and I don't see the 'Advanced' option in the properties menu. Is it hidden somewhere else?

Member Avatar for arbrophy
0
124
Member Avatar for W0T4N

Hi, I have problem with tray icon, when my processor is 100 % working, sys tray icon loading fails. I do not know how to fix this. I made easy testing program for that, i have thread with critical priority and it make processor 100 % working. During that sys …

Member Avatar for W0T4N
0
191
Member Avatar for Menster

Hi there, I'm busy trying to build an interface where users can create a sort of collage with images that they upload. I know it is possible to get the position of a DHTML element relative to the screen, the problem is I need the coordinates relative to a main …

Member Avatar for Menster
0
142
Member Avatar for VibhorG

Hiii i am making a window application in C#, in which i want to compare the entered string word by word with the form heading(text property). I mean when user enter the string, then on button click system should match each word of the string to the heading of the …

Member Avatar for VibhorG
0
288
Member Avatar for Alexpap

Hello all, I want to create a stored procedure using [B][I]SMO Objects[/I][/B]. I have set up all the properties of my Smo.StoredProcedure object, but when i try to create it, it throws me this Exception Message: [ICODE]Microsoft.SqlServer.Management.Common.ExecutionFailureException: An exception occurred while executing a Transact-SQL statement or batch[/ICODE] Here's a little …

Member Avatar for Ramesh S
0
303
Member Avatar for AutoPython

Okay, so, my main problem here, is that I can't get my parameters from my function name to work with the other variables from the function. Here's the code: [CODE] def next_block(x): p1 = 2 p2 = 2.3 p3 = "c" p4 = "String" p5 = "3.4444" return p1, p2, …

Member Avatar for Gribouillis
0
135
Member Avatar for andrewnim

Hi all getting this error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" [code] if($_POST['paypalsubmit']) { $upsql = "UPDATE orders SET status =2, payment_type =1 WHERE id =" . …

Member Avatar for andrewnim
0
126
Member Avatar for sudharani

Hi friends, I have created a form with a dropdown list and a text box and i have a table named customer with fields cid and name in database. I successfully binded the cid column to dropdown list.now my problem is i want to bind the name into the text …

Member Avatar for sudharani
0
178
Member Avatar for Whilliam

Hello. I'm trying to make a calculator with JFrame. I'm only gonna make the appearance of the calculator (not functioning). The numbers and operators are supposed to be arranged this way: 7 8 9 + 4 5 6 - 1 2 3 x # 0 * / however, I only …

Member Avatar for Whilliam
0
2K
Member Avatar for lonestar23

Hello, I am retrieving results from a RSS feed, but not all results have a title. I would like to run something like the below code which, lets me know how many times a title is empty. If three "titles" are empty, then X code would dynamically echo "3" etc.... …

Member Avatar for darkagn
0
161
Member Avatar for phoenix911

hey hey... just want to know, if theres some kind of way to prohibit the user from entering data into a combobox... i dont want to use a list box... to must space taken, and no point in disabling it... as then i cant select an item... please help thanx …

Member Avatar for pilipino93
0
143
Member Avatar for yonghc

The program was successfully compiled using Borland 5.02. The program controls the input type by user using ASCII codes. The input mode is similar to QuickBasic's INKEY. The program is working and tested okay. Much effort had been put in, but the problem is that the subroutines for handling string …

Member Avatar for Frederick2
0
606
Member Avatar for sardonic

I am using Microsoft visual c# express 2008 ide. I want to cycle thru my open files - I know there are a couple ways to do this but I want to be able to click on the name of the open file on the tab that is above the …

Member Avatar for sardonic
0
100
Member Avatar for AssaultM16

Hi!. I am having some problems with functions scopes again. I need to use one array initialized in one function, in a different function. I have searched on how to pass the array by reference or value ( and I truly don't know if that's what I need) but I …

Member Avatar for AssaultM16
0
105
Member Avatar for lotrsimp12345

show_int_vector method RETURNS MEMORY LOCATION FOR EVERTHING EXCEPT FOR LAST VALUE. main [code] #include "my_int_vector.h" #include <iostream> using namespace std; int main() { my_int_vector b(0); b.push_back(10); //b.show_int_vector(b); b.push_back(122); b.show_int_vector(b); //b.push_back(20000); return 0; } [/code] Interface [code] class my_int_vector { public: //constructor to create an array my_int_vector(int intial); //prints out the …

Member Avatar for lotrsimp12345
0
121
Member Avatar for jbisono

Hello all, I created a crystal report which works perfect local but in production work partial, it means that there are 3 specific values that the report does no retrieve, is there any particular reason why this happen?. thanks.

Member Avatar for jbisono
0
152
Member Avatar for 42Wired

I am trying to write an API (called logEvent) for an outdated os-level logging function. I would like to call it in the following manner. [CODE=cpp]logEvent << "string"; // or logEvent << "string" << 123 << 0.456 << ... ;[/CODE] I'm trying to accomplish this by overloading the stream operator, …

Member Avatar for 42Wired
0
131
Member Avatar for msr

Hello, In order to introduce myself to C# and, in particular, Visual C# I decided to make a small program with 'windows forms'. At the moment I have some questions: 1) Im using a grid (dataGridView). I'd like a menuStrip (I dont know if is exacly that component) to appear …

Member Avatar for msr
0
141
Member Avatar for mimsc

[url]http://www.palmer-realty.net/content/listdetail.html/89633726[/url] -If you click on the green "Virtual Tour" button in the middle of the page...it gives a error -This is working fine in Firefox there's s function if you view source : [code] function win_up(winurl, winname,w,h) { if (winname == null) winname = "calcs_win"; if (w == null) w …

Member Avatar for mimsc
0
85
Member Avatar for fayola

I have a helper script that will grab weblogs for a particular domain, if called by itself from the MS-DOS command line it works as intended, but I'd like to call another script to call this script multiple times for the multiple domains, but it's only running the first call …

Member Avatar for fayola
-1
134
Member Avatar for kaizen_duck

Produce a complete C++ game that resembles the “Hang Man Game”, where the player is required to guess a given number/character/word. The player will be given a limited number of guesses. Each time the wrong answer is given, display an appropriate figure that changes accordingly. You may refer to the …

Member Avatar for kaizen_duck
0
223
Member Avatar for Slippy-D

I am creating an automation tool, to stop users messing with files, the thing is, my tool needs to work with an ini file which doesnt yet exist... heres how i create the ini file... String iniPath = @"C:\test.ini"; File.Create(iniPath); that sets me up with my ini file... the thing …

Member Avatar for Slippy-D
0
101
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Member Avatar for Salem
0
88
Member Avatar for serkan sendur

i get an exception when i am trying to save an xml document. the interesting thing about this problem is i dont get it when i deploy the pocket pc application using visual studio. when i create my smart cab project and run this in pocket pc, the same application …

Member Avatar for serkan sendur
0
424
Member Avatar for kz07

Is there any way to go to a specific line of a text file and print it to screen? I used getline to do this, but what if i need to enter a number and the program will go to that line number and print it to the screen. is …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for stoymigo

Hi, we are running a windows server 2003 os on our network. The application i develop needs to be able to move files to folder that the user running the app can't access. The application already stores the user details of the administrator , how can i use those details(username,password …

Member Avatar for stoymigo
-1
529
Member Avatar for Vai

How do I make the timestamp string be displayed as something that is actually readable / understandable? Yes, I have looked on google, here and a couple other places, but I am not seeing anything too specific or I am just not understand. Thank you for your understanding, helping me …

Member Avatar for Rkeast
0
152
Member Avatar for serkan sendur

when i build the smart cab project i need to right click on dependencies and click refresh. then i need to build the project again to see those dlls in the output folder. is this a known bug i dont know, but because of this i need to add all …

Member Avatar for serkan sendur
0
102
Member Avatar for hmortensen

Hi all, I’m doing some automation for a nightly deployment of some software. My program should: Open a program Send shortcut key press to the program Push a button And close the program again. So far I can open the program, bring it to front, send shortcut keys, but I …

Member Avatar for hmortensen
0
434
Member Avatar for Piya27

Hi All, My update query refuses to update the data in the Excel sheet via OLEDB connection. I am able to insert and retireve the records but could not update. Though my syntax is correct and when I execute the query using ExecuteNonQuery, it shows no error no exceptions but …

Member Avatar for samir_ibrahim
0
253
Member Avatar for redreed

hi guys i am doing a project and i need so help plzzz [URL="http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png"]http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png[/URL] at this link u can find a pic this a small part of my project the problem is that i want everything that i type or want to display like welcome to the back blah blah …

Member Avatar for redreed
0
286
Member Avatar for tryongliph

hello everyone. i'm a newbie to ms sql but i understand the basics of adding tables and linking them. i have two tables tables that i have linked; Department and Employee. The Department table is the main table with a foreign key in the Employee table. now from by basic …

Member Avatar for tryongliph
0
103
Member Avatar for ddanbe

I'm using VS 2008 C# Express edition here. Try to use a CheckedListBox, which I think is just a fancy ListBox. In designmode I can set the property SelectionMode : None (? rather strange for what I think is a list of checkboxes) One MultiSimple MultiExtended When I select one …

Member Avatar for chundachovis
0
413
Member Avatar for matMalo

Hi guys, I've a problem calling a 'parent' PyQt4 method from inside an object that inerits it. Here is the code: [ICODE] import sys from PyQt4 import QtCore, QtGui class ItiaQPushButton(QtGui.QPushButton): def __init__(self, txt): super(ItiaQPushButton, self).__init__("Hello") print super(ItiaQPushButton, self).__doc__ #QtGui.QPushButton.setText("BO") def setText2(self, txt): self.setText(txt) #super(ItiaQPushButton, self).setText("PROVA") class Window(QtGui.QWidget): def __init__(self, …

Member Avatar for Gribouillis
0
151
Member Avatar for Behi Jon

Hi ... Is there a way to write a program in c++ that get a decimal number and convert it to its equivalent in hexadecimal without using arrays ? A bit guidance please .... Thanks ...

Member Avatar for Nick Evan
0
158

The End.