199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for theimben

Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …

Member Avatar for theimben
0
113
Member Avatar for rEhSi_123

Hello Everybody, Wondering if any of the experts could help me out. I am trying to create a forum system for my university website. I have created the tables by using WAMP-phpMyAdmin, where the data from the forum would be inserted. Now, I would like to implement this using PHP. …

Member Avatar for Will Gresham
0
90
Member Avatar for newsteve

Hi, On a rollover I am looking to change an image AND have a sound play. I was hoping to do this with javascript. The image is done but the sound - I have been looking into it (sound with javascript) and it seems like this is a thing of …

Member Avatar for hoogi
0
115
Member Avatar for PhiberOptik

Hi Guys, I am trying to get a program I made to auto-start on my computer, but I don't wanna use the "startup" folder. How do these other programs automatically start? I went to my "msconfig" and then to the startup tab and found references to "HKLM\SOFTWARE\Microsoft\Windows\CurrentVer..." and I looked …

Member Avatar for stultuske
0
74
Member Avatar for arunasingh
Member Avatar for Ramy Mahrous
0
69
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; #include <iomanip> #include <cstdlib> enum RequestType { ZERO_BALANCE = 1 , CREDIT_BALANCE, DEBIT_BALANCE,END} int getRequest(); bool shouldDisplay ( int, double); void outputLine ( int, const char*const, double); int main () { ifstream inClientFile( "clients.txt", ios::in); if ( !inClientFile) { cerr << " File could not …

Member Avatar for Se7Olutionyg
0
141
Member Avatar for Ene Uran

I am looking for a good example of the tarfile module, writing to and reading from an archive. Particularly the highly compressed filename.tar.bz2 format.

Member Avatar for BearofNH
0
154
Member Avatar for rdhiravani

Hi, I have web app deployed on weblogic 9.2. There are several reports, each having a input jsp, a output jsp, a java support bean and a export page to export output generated to excel file. The user feeds input through input jsp. The output jsp reads ip parameters & …

Member Avatar for rdhiravani
0
118
Member Avatar for tones1986

hi all. in a recent project i created a linked list to store a students course data...such as course ID, year taken, semester taken, and final grade. This program worked without any problems. now, my next project is to create a stack to store the data, instead of a linked …

Member Avatar for Murtan
0
160
Member Avatar for Syntax Error

[code] hello..i have OrderForms.cs..it has 2 datagridviews...when i click a product in orderDataGridView then click Add to Cart, it will display the product_id, description, quantity, unitprice, and total on the cartDataGridView..when i change the quantity, the total will change (quantity * unitprice).....then it should show the total bills on the …

Member Avatar for JerryShaw
0
123
Member Avatar for JackDurden

is there a way to pass in numbers(int) like this? somename([0,0],[2,4],3); thanks for any help

Member Avatar for JerryShaw
0
109
Member Avatar for Stefano Mtangoo

Hi All, Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand: ---- If I divide …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for pdwivedi

hi can anybody please expalin me that can i access the array(arr) which is declared as a private member of the class(array) by using public function (display). The code is given here... [CODE=c++]#include<iostream.h> const int size= 8; class array { int arr[size]; int i; public: array(); void display(int arr[size]); }; …

Member Avatar for Salem
0
115
Member Avatar for samcaleb05

Hi Friend's.. M new to c#.net can anyone say How to Count number of liens and Characters in a Tiff image .... T ks in Adv... G.Sam...

Member Avatar for sknake
0
101
Member Avatar for Narayan15

Hi, How to add image to Jwindow. Here is my code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.*; class Project4 extends JWindow { Container container; JTextField jt; JButton jb; public Project4(String st, final Image image) { container = getContentPane(); container.setLayout(new BorderLayout()); //JTextArea jtp = new JTextArea(st,10,10); //container.add(sp); …

Member Avatar for Ezzaral
0
487
Member Avatar for ddanbe

Hi everyone, I have the following : [CODE=csharp]using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double d = Convert.ToDouble("23.4"); } } }[/CODE] When I run this with Visual C# 2008 Express in the debugger I get the value 234 for d instead of the expected …

Member Avatar for ddanbe
0
105
Member Avatar for netsperience

I created a prototype.js/window.js "Window" pseudo window div with another page from the same directory loaded in its iframe I could not put a button/link on the iframe doc that would close it by calling functions in the parent window I used "window.parent" "parent" alone "top" but the only thing …

Member Avatar for scrager
0
511
Member Avatar for Besherek

Hi folks, I've used a while loop to call about 5 category names from a database to make a navigation. I didn't want to hard code the categories because I want to be able to change them using Content Management and have the nav update from the database. [CODE]<a href="category.php?cat=<?php …

Member Avatar for Besherek
0
193
Member Avatar for arvin2006

hi everyone, i just want to ask if it is possible for the SQL INSERT INTO to LOOP? for example, insert new records in TABLE ten times with the same values (colum1,column2,column3,etc..) is there an alternative way instead of typing (INSERT INTO.. 10x) statement repeatedly. thanks.

Member Avatar for debasisdas
0
97
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; #include <string> class Engine { int power; public: Engine() {power=0;}; Engine (int pIn) { power = pIn;}; void show (); float getPower () {return power;}; }; void Engine::show() { cout << " This is an engine have a power of " << power << " …

Member Avatar for iamthwee
0
140
Member Avatar for rudasi

Hello I want to write a program in c++ to convert certain rows which i can choose from a table in excel to .csv. Anyone done anything similar? I am not sure how to do this, still thinking, any suggestions.

Member Avatar for marco93
0
207
Member Avatar for miskeen

Hi, Could you tell me please how can I open a connection to an access database located on a shared folder? Thanks in advance,

Member Avatar for tsci
0
2K
Member Avatar for pecussionist

Hi, I've written a php code where I need to save the data entered in a form to the mysql database. For that I'm using the following [icode]$strSaveTD = "<input type = button id=btnSave value=Save onclick='checkform(" .$iMode. "," .$iLevel. ",1)'>";[/icode] When the user clicks on "Save" in IE it works …

Member Avatar for cwarn23
0
150
Member Avatar for ssreevidya.m

Hi, I have a need to insert images to the database. I tried it using the following code: [code]if ((file1.PostedFile != null) && (file1.PostedFile.ContentLength > 0)) { // Get the filename. byte[] fileData = null; string fn = System.IO.Path.GetFileName(file1.PostedFile.FileName); try { // Access the file stream and begin the upload. …

Member Avatar for ssreevidya.m
0
139
Member Avatar for C++.java

// days in a given month.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char month,january,feburary,march,april,may,june,july,august,september,october,novemb er,december; cout<< "\nEnter january,feburary,march,april,may,june,july,august,september,october,november,dec ember : "; cin>>month; switch(month) { case january: cout<< "31\n"; break; case feburary: cout<< "28\n"; …

Member Avatar for ArkM
0
112
Member Avatar for starsinthesky

hello. i have a problem running my very first applet (im just converting my previous application to applet). i tried to follow the instructions i found in the manuals, both the one given by my prof and the ones i found in the web, but unfortunately my program wont work. …

Member Avatar for starsinthesky
0
127
Member Avatar for npandu_24
Member Avatar for cwarn23
0
103
Member Avatar for MarMcD

Hello, I need to write a program that holds a multiple product inventory. Using an array to store the items. The output should display the product info, one at a time. In addition, I have to include the Total Value of the entire inventory. My only problem is, the total …

Member Avatar for MarMcD
0
67
Member Avatar for sid78669

hey, I want to write a small snipet which will first prompt the user to input a javascript command, and then execute that command on the current page. Is there any way to do it?? say the prompt is like: [CODE=javascript]javascript: prompt();[/CODE] (its working) and the command is : [CODE=javascript]javascript: …

Member Avatar for scrager
0
455
Member Avatar for theimben

This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description …

Member Avatar for theimben
0
96
Member Avatar for PinoyDev

Good day to everyone.! I just want to ask a help if is it possible to fit any size of image in just a 32 x 32 image placeholder. i have already loaded the image from the database by just looking its path.but it it will display on the page …

Member Avatar for PinoyDev
0
94
Member Avatar for dvsConcept

i have this program generating 3 numbers and i don't know how to take those 3 numbers (i.e. 777) and applying that to a switch/case like... [code=c++] switch(landing) { case 'a'://777 //calculation will go here break; case 'b'://666 //calculation will go here break; ///and so on and so on! } …

0
70
Member Avatar for FlashCreations

Hey Everyone! I have come across a very interesting problem that seems to be impossible to solve. Basically a web application that I am working on relies on a JavaScript function called go to change the input named view to the page name and submit the form. This form's type …

Member Avatar for mschroeder
0
372
Member Avatar for petike

Hi all, I would have a question. I know that I should (or must) respect the encapsulation rule (as one of the main three Java features) but what about if I have some "Data Structure"? I mean something like "struct" in C/C++. So if my class contains only data (not …

Member Avatar for Rashakil Fol
0
100
Member Avatar for mushbucket

Heya, I'm trying to slim down some code by using a for loop, but the only way I can do it is by building a variable string to put in the format bit. [CODE=C++]for (n=0; n<13; n++) { strTmp.Format("%ld", pFrame->m_pAppWnd->state.Variable); strBuf.Replace(saveloadtypes[n], strTmp); }[/CODE] pFrame->m_pAppWnd->state.Variable fetches strings from another .cpp file. …

Member Avatar for mushbucket
0
202
Member Avatar for rouse

I think I have a PHP configuration problem on my development machine where I am setting up a development environment which interrogates a local MySQL database from Eclipse on a Windows XP platform using an Apache server. I can execute the PHPINFO program so I have a minimal PHP system …

Member Avatar for rouse
0
1K
Member Avatar for crowleykg

Hi, [B] I am trying to write a simple java application that detects motion. The application gets its images from a webcam with the address:[/B] [url]http://studiocam1.disp.duke.edu/jpg/image.jpg[/url] (you can watch the live video feed at: [url]http://studiocam1.disp.duke.edu/view/index.shtml[/url]) [B]My current plan is: (I have little experience, so it may be wrong)[/B] 1. I …

Member Avatar for peter_budo
0
846
Member Avatar for c#dummie

Hi I want to get data from Access instead of notepad. Here are the codes to get data from notepad by entering IC number (equivalent to ID number). The records are stored in 'Folder'. public void btnGo_Click_1(object sender, System.EventArgs e)// -->User can select the file by entering the IC Nunber …

Member Avatar for kamisori
0
151
Member Avatar for obsy

Hi! I made a visual c++ application. My problem is how do I run the program in the console. And the program should read the data from sample.txt file

Member Avatar for obsy
0
102
Member Avatar for Linking_90

Hi, I was hoping that someone could give me some direction with how to solve this probem. The only info in this problem is word has N digits[only digits] and each digit in the word is in increasing order example 1469 or 362 I have to verify if the number …

Member Avatar for Linking_90
0
145
Member Avatar for serkan sendur

is it possible to load xml from local file system using ActiveXObject("Microsoft.XMLDOM") ?

Member Avatar for serkan sendur
0
78
Member Avatar for spivey

I have tried getting my Perl 5.8.9 installation configured for Mysql. I have used cpan and PPM to get mysqlPP, DBD::mysql-simple modules. I am trying this on Windows XP with Mysql 5. Here is my latest error: C:\>perl c:\perl\test.pl DBD::mysql initialisation failed: Can't locate object method "driver" via package "DBD::mysql" …

Member Avatar for KevinADC
0
259
Member Avatar for mtramnes

I started a thread last week with a problem that i have since figure out. Now my problem is this. I need to take a file called "gettysburg.txt" and make it so each word is printed on its own line in a new text file called ex1out. When I run …

Member Avatar for Comatose
0
80
Member Avatar for picichinica

Hello, I have a question (might be pretty easy, but please help!!): on my application's main form I have two buttons: open that opens Form1 and another one that opens Form2. Now, from Form1 I need to open Form2, and from Form2 I need to open back Form1, and go …

Member Avatar for pennyani
0
313
Member Avatar for nitu_thakkar

hello everone i'm new to c++ language Is This possible to make prg in cpp to overload () Opratore if yes, then can u pls give any logical flow for develope the prg i.e. which kind of opeartion can be performed through () opratore thanx in advance

Member Avatar for Narue
0
83
Member Avatar for trueinam

Dear Members I am having a problem in Java and I am pasting the code and the error message please tell me where is the problem and aslo tell me any directory that can guide me about frequent error messages and their solutions. here is the code. import javax.swing.*; import …

Member Avatar for stephen84s
0
111
Member Avatar for rapture

Hey all, I have been tasked with figuring out a way to automate a form letter process that currently is done mostly by hand with a lot of copy/paste. We have letters that need to get sent out based on our internal system. Someone now looks up the items in …

Member Avatar for rapture
0
102
Member Avatar for jmroach

So this should be a really easy one, but i've spent a few hours searching and can't find anything that explicitly states how to do this. All i want to do is see the column names for a particular table. I created the tables like: [CODE=python] con = sqlite3.connect( ":memory:" …

Member Avatar for weisburd
0
24K
Member Avatar for Emerald214

I get the size of the integer array by using sizeof operator but the problem is: + Outside class: It outputs 3 (correct) + Inside class: It outputs 1 (incorrect) So how to fix it? Thanks [CODE]class A { public: A(const int a[]); }; A::A(const int a[]) { cout << …

Member Avatar for Emerald214
0
147
Member Avatar for eyewirejets

Python 2.6.1: How would I write a user input validation statement scores < 0 or scores > 100 print error message and ask for input again? Where would I place it, in the below code? [CODE] num_test = raw_input("How many test would you like to average? ") scores = [] …

Member Avatar for sneekula
0
138

The End.