199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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. … | |
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 … | |
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 … | |
Sir , plz tell me how to display current date in report viewer in vb.net | |
[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 … | |
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. | |
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 & … | |
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 … | |
[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 … | |
is there a way to pass in numbers(int) like this? somename([0,0],[2,4],3); thanks for any help | |
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 … | |
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]); }; … | |
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... | |
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); … | |
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 … | |
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 … | |
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 … | |
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. | |
[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 << " … ![]() | |
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. | |
Hi, Could you tell me please how can I open a connection to an access database located on a shared folder? Thanks in advance, | |
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 … | |
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. … | |
// 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"; … | |
![]() | 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. … ![]() |
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 … | |
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: … | |
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 … | |
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 … | |
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! } … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
is it possible to load xml from local file system using ActiveXObject("Microsoft.XMLDOM") ? | |
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" … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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:" … | |
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 << … | |
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 = [] … |
The End.