199,113 Archived Topics
Remove Filter ![]() | |
hello all. i have this code... [CODE]@mkdir("C:\wamp\www\uma\member media\member tracks'$memberid'") or die(mysql_error());[/CODE] ... it works but the folder it makes is in single quotes. i'd like to have the folder it makes have no quotes at all. its creating 'FOLDER' when i just want it to read FOLDER. i've tried... [CODE]@mkdir("C:\wamp\www\uma\member … | |
Hi, I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline. I already had … | |
Greetings, Hmm, Im not sure Is this the right place to ask this question, Well If im wrong please correct me. Im working in a company as Java programmer that also provide professional training for Java and two of my trainees have created "Stick Snake" and "Snake and ladders" game … | |
Hi, I began file I/O and I did exactly what it said in the book I was using and it doesn't seem to work for some reason. Am I doing something wrong? [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin("hello.txt"); if (fin.is_open()) cout << "It's good"; … | |
hi guys, pls help me out.. how can i insert the current date into mysql data base through php ?? n pls tell how to retrieve also.. its urgetnt..!! | |
Hello, I was hoping that someone can help me with this. I have this linking list working, but I have one problem, when I click on the link it shows up with the link like this winner.php?service=1&&year=2010 and honorable.php?service=1&&year=2010&award=1 this is for all years not just 2010, and what I … | |
Hi, im trying to upload a file(.pdf, .jpg, .bmp, etc.. ) but I'm getting this error message.. check the file I've attached, it contains the output on the page but with errors.. [CODE]<?php define("REPOSITORY", "/www/parctice/test/htdocs"); if(isset($_POST['submit'])){ if(is_uploaded_file($_FILES['fileupload']['tmp_name'])){ echo "temperory file name: " . $_FILES['fileupload']['tmp_name'] . "<br />"; echo "file name: … | |
hi....i'm stuck in populate data inside the drop down list. the problem is, when i already success in populating data from db in 1st drop down list, i cannot carry the value. second drop down list data will depends on this value in order to populate data from array into … | |
Can someone please help me with this code? I have already taken out some of the errors, and my instructor says to make sure my brackets are enclosed. When I do this though I get more errors???Help!!! #include <io> #include <string> #include <iomanip> using namespace std; //Global Declarations of Variables … | |
This is my assignment Get Monthly Income Get Monthly Home Rent/Mortgage Get Other Monthly Payments (alimony, child support, student loans) Display Allowable Monthly Car Payment Display Maximum Car Value (interest rate based on credit) A customer can not exceed a debt load of 36% of their gross monthly income including … | |
Hi I'm using the Thesis Theme with my Wordpress site. I was editing my custom_functions.php to create a custom footer, and after I saved got the following error: Parse error: syntax error, unexpected $end in /home/content/71/6936571/html/XXXXXXX/wp-content/themes/thesis_18/custom/custom_functions.php on line 39 Since then I have copied and pasted the original .php from … | |
Hi everyone, My javascript code is absolutely ok but its not working. I know it sounds funny but its happening with me. Please view below code and tell me is there any mistake in it. Javascript code: Which change image when i click on button. [code] var myImages = new … | |
Ok, I'm really really stuck with this. I've tried everything to my knowledge to fix it, but I just can't. So please, can anyone here help me with this error: [CODE]Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'host-ip' (4) in /home/ashley/public_html/pw/inc/config.php on line 7[/CODE] This is my PHP: … | |
Hi, I have created a bubble sort as a function in C. It sorts an array of numbers. I am not sure how to print them out though(SORTED). Thanks | |
Hi ~ As you can see from the code below I am in school for programming. I have come across this homework assignment a few times on the site already however the requirements for mine are different. I cannot use arrays. Three functions - I only have two coded. The … | |
I'm trying to write a program that outputs the cent symbol (¢) in Visual Studios 2010 and when I copy and paste the symbol into my text it outputs a completely different symbol. I've also tried using \u00A2 and I still get a different wacky symbol. What is the C++ … | |
I have a class which extends JDialog which by default has some text on it and a couple of buttons. Most of the instance of the buttons are "Ok" and "Cancel" so the two buttons have their bounds set. If I try to change the label on the Ok button … | |
How do I display the results of list<t>. I put rangeChecker objects in range and now I want to display the rangeChecker objects in range. How whould I do that? [CODE] static void display(RangeChecker[] rangeChecker, int SIZE) { //displays values for x, y, z, and how many times z was … | |
Hello, I'm working on a project that once ran (the main window) becomes maximised and then another window (Form2) pops up allowing the user to login OR register. I have created the main project and added a form (called form2) but when I try to display Form2 when Form1 loads … | |
A student has a student profile. A student profile can be searched and viewed by empolyers. The student profile contains: [LIST] [*]Skills [*]Qualifications [*]Empolyment History [/LIST] Is it possible to have StudentProfile as a superclass, and the skills, qualifications and empolyment history as sub classes? So that the enetitys can … | |
I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which … | |
am trying to create a new class for a binary search program in c# I keep getting this compilation error [COLOR="Red"]A namespace cannot directly contain members such as fields or methods [/COLOR] here is my code [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1{ // Create a new … | |
Hello, I am testing the concept of concurrent transaction using this table definition: ID, int Quota, int Remaining, int Locks, int To simulate multiple users, i'm using threads and having them sleep random amounts of time. So the system is this: 1. User is looking at the details for an … | |
Hey everybody, I have a bit of a complicated project, so here's the details and what I've done so far (sorry for the novel!): I've been asked to convert paper forms to electronic only for a school. My guess is there will be anywhere from 30-50 forms online when it's … | |
Hi everyone. Please I'd like to know if anybody has encountered this problem before. Here's the scenario. I've got a datagrid view Bthat is a child table from another table A. one of the fields is the productID which I have bounded to the Product Table to display the name … | |
At the database level I am trying to understand the difference between having a PK of one table be both a PK and FK in another table vs just being a FK. As an example, I have ORDER, ORDER_ITEM and ITEM entities. According to my Kroenke text, in the ORDER_ITEM … | |
Good evening! So I've been trying to get my head around these classes and it's not going well. From what I've understand I've been calling functions correctly, but for some reason the members I'm creating are not being accepted. [CODE]class TheData { public: void InputData(); void DisplayMembers(); TheData(); ~TheData(); protected: … | |
I have the following set of tables but I don't care for the design. It seems like there should be a better way of doing this. Let me explain what's going on: -A visitor comes to our website and has the option of inputting a promotional code when buying our … | |
Hello again everyone, I have just finshed a neat little c++ program, but now I just realized that I don't know how to save the file as an executable so that I can use the program on any computer whether or not it has a compiler. Please Help. PS: I … | |
A module leader supervises 1..5 modules. Many module tutors can teach many modules, this is a many to many multiplicity, so i have made a new entity called ModuleuTutorTeaches, in the middle of the 2 entities. What attributes would the 4 tabels have? Module Leader ([U]staff ID{FK}[/U][U]ModuleID[/U]) < this would … | |
Hello, I'm a biologist trying to do some bioinformatics, so new to Java and new to this forum. I've searched all over the forum for previous threads on this topic, but can't find an answer that has helped me. Apologies if I've missed something already posted that may help solve … | |
Hello again: I am having trouble declaring my variables. Can you please show me what I am doing wrong. The homework problem ask for me to use the "if" statement also, kinda having a few problems with that. Please see the question and my code below. Thank you for your … | |
I have this button in Form2 that when is clicked, a string value is passed back to Form1 and it is displayed in a textbox. [CODE] public partial class Form2 : Form { double a, b, ave; string stype; Form1 frm = new Form1(); public Form2(double x, double y) { … | |
Hey there. i have a listbox thats databound. Now i want to select in that massive list, lets say a sting "dog", i want it to hightligh that word in there. But i cant seem to get it to work with this databound listbox. Coz i know how to do … | |
I don't know why. At all. Just that it won't repaint! My code: [CODE]import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JPanel; @SuppressWarnings("serial") public class Frame extends JFrame implements KeyListener{ JPanel content; int W = 200; int H = 200; public Frame(){ setSize(700,250); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setResizable(false); content = new JPanel(); … | |
I have several buttons in my applet, however in certain case i use fillRect function to draw my whole applet go black, but i want to leave one Jbutton visible. The fillRect function hides my button, but the button comes visible if i move mouse cursor on top of it. … | |
Hello everybody I have a problem with my code. On two lines (14 & 17) I get this error: cannot return a value from method whose result type is void. But I don't have add void to my class. Thanks in advance. Greets MeandJava Here's my code: [CODE]package oop_po2; import … | |
Evening all, I have created a program that reads a Data Base contents, displays the information, prompts the user to press enter, then in theory they should enter an account number and that specific accounts details be deleted from the data base. Finally the contents of the data base should … | |
Hi every one, I need help urgently please I am creating a db with an interface from VB.Net 2008, what I need is to export to excel from a datagrideview by clicking on a button. I have found a code but its giving me errors, I posted the code maybe … | |
Hello friends, Please tell me how to reverse string in c like taht. My name is jacob jacob is name my | |
Good morning friends, I am having a weird little issue with python that I am certain stems from me failing to understand wtf is going on. I will give you the general disclaimer that I am a total programming beginner so I'll need some latitude :) The following snippet is … | |
Hi, I know you can edit the htaccess file I think to allow php scripts to run and be parsed in html files. I was wondering if that was possible with coldfusion code. What I have is a small bit of coldfusion code and ajax that just returns some data … | |
Hi, I am making a simple application where it reads and loads words from a text file into a ListCtrl(lc_report) in wxPython. There are only two column. i am loading it like this : [CODE]f=open('Test.txt','r') all_words = map(lambda l: l.split(" "), f.readlines())[/CODE] And in Test.txt file, there are some words … | |
hi, i'm having a bit of trouble with grid views. see i can show stuff in them but i want to manipulate and use a certain selected record or field in it ( e.g : delete it from table in the DB or copy it into a textbox.). i'll be … | |
Hello, I'm having trouble figuring this one out. I'm trying to output more field boxes when a certain value is selected from a populated drop down menu. [CODE] <select name="selected_category" id="selected_category"> <option value='0'>Select Category</option> <option value='1' id='text' >Text</option> <option value='2' id='text2' >text2</option> <option value='new_category' id='new_category' >Add New</option> </select> <div class="works" … | |
Basically I keep getting asked on different laptops and computers whether if they can play certian games and etc. I would like to be able to just install it and it can run tests on my computers I also would like to be able to type in / select different … | |
Hi guys/girls, I have an exe that has been written in C# using visual studio Is there a was I can de-compile it back into the C# code - It seems to be some what protected exe files I've created myself using Visual Studio and C# I can see the … | |
hai everybody.... i am kumar ,and i new to this site ...!! can any one help me that how can i add watermark while uploading the image to database...... :) | |
[CODE]Imports MySql.Data.MySqlClient Public Class Form8 Dim connection As MySqlConnection Dim con As MySqlConnection Dim da As MySqlDataAdapter Dim dt As DataTable Dim strQuery As String Private Sub Form8_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load strQuery = "server=localhost; user id=root; password=phoenix0931; database=accounts;" con = New MySqlConnection(strQuery) con.Open() Me.Text … | |
Hi, I'm novice by complete to webservices et al. I've created successfully a webservice and referenced it in a console application. By simplification let assume that the webservice contains a webmethod, the 'classic' CelsiusToFarenheit (string Celsius). Once referenced i can see my new namespace ServiceReference1 with the following classes inside: … |
The End.