199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for webwiz

I have a strange problem with testing file_exists. When I hardcode the file name 007-PCSafety.zip file_exists works fine but when I post the filename 007-PCSafety.zip it doesn't recognise the file exists. here's the code. I'm swapping the $p variable to test. [CODE=php] if($_POST){ $url = $_POST['dl']; $filename = basename($url).PHP_EOL; $p=$filename; …

Member Avatar for webwiz
0
1K
Member Avatar for amrita111

This question was asked in my viva. Each Foreign key must exist as a primary key. Foreign keys values can change over time.. According to me the second statement is false.But he said that they can change values...Is it so???

Member Avatar for amrita111
0
138
Member Avatar for rayden150

first i tried with system.out.. then i tried this: [CODE]import javax.swing.*; import java.awt.*; public class Ejer1 { public static void main(String [] args){ JTextArea graphs = new JTextArea(); String [] graph1 = {"*********"}; String [] graph2 = {"%s\n%s\n%s\n%s\n%s\n", "* *","* *","* *", "* *", "* *","*", "* *","* *","* *","* …

Member Avatar for Xeno999
0
190
Member Avatar for pwnerboy

What we are to do is pretty much mentioned in the comments of the code. I have to make a class ARRAY, which searches a list etc... Right now I can't compile this and I'm so stuck. Please help :) Array.h [CODE] // Put comments about the class here. #ifndef …

Member Avatar for mike_2000_17
0
894
Member Avatar for anthonyjpv

Im trying to swap the values if taken already but its not working heres the code: [CODE]<?php ob_start(); require_once("../session.php"); require_once("../functions.php"); require_once("../../includes/connection.php"); include_once("../../includes/header.php"); confirm_logged_in(); if(isset($_GET['cat_id'])) { $category_id = $_GET['cat_id']; $result = get_specific_category($category_id); while($row = mysql_fetch_array($result)) { $category_name = $row['category_name']; $position = $row['position']; $visible = $row['visible']; } } if(isset($_POST['Submit'])) { $errors = …

Member Avatar for anthonyjpv
0
223
Member Avatar for jnewman3

So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print …

Member Avatar for jnewman3
0
1K
Member Avatar for bibiki

hey there, I need an idea on how to store some information in a database. Let us assume that I want to build an application that allows a user to record what bars he visited each day. The number of bars is variable, and a user typically visits more than …

Member Avatar for bibiki
0
142
Member Avatar for jtodd

Hey guys! I have created an Access 2010 database. On one of the tables, there are fields [Start Time], [End Time] and [Total Time]. The user will input the start and end times but and the total time will be the difference between the two. I cannot figure out how …

Member Avatar for jtodd
0
170
Member Avatar for TrickyT

hi, all ... very new to java, but plugging along somehow ... however, i have an assignment that wants me to find the value of all of the inventory of a product and i have the entire code, but the method that i created to calculate the value ... calculateTotInvent() …

Member Avatar for TrickyT
0
191
Member Avatar for bivashkumar41

i m working on a project and i want to implement a java code such that if user enters a number say 5 then after submitting on the next frame 5 textboxes should be displayed?? please help me!!

Member Avatar for bivashkumar41
0
119
Member Avatar for jackmaverick1

[CODE] #include <vector> #include "Rab.h" class Envo { vector<Rab> items; };[/CODE] the error is: [ICODE]error: 'vector' does not name a type[/ICODE] I can't find ANYTHING that's wrong. Is someone else able to find it? BTW, Rab.h contains the class 'Rab'. Jack

Member Avatar for jackmaverick1
0
86
Member Avatar for cogitoergosum12

I have seen a few other threads on this topic, but they do not seem to be asking what I wan to ask. Firstly, no this is no homework / class project. It is something that I am doing in my free time. I impart a training session which lasts …

Member Avatar for cogitoergosum12
0
294
Member Avatar for codedude

I have a Windows aplication where i want to click a link in a website automatically after an automatic login.Now i am done with automatic log in.but unable to click the link which is enclosed inside <a> tag eg: <a>to be clicked link</a> any help will be appriciated

Member Avatar for markjames2012
0
2K
Member Avatar for dennysimon

hello all how to put more than one JLabel in a vertical direction,and right align by computing the length of each of JLabel.Text so the appearance like below Name: Position: age: thank you denny

Member Avatar for zeroliken
0
71
Member Avatar for bluealein56

I know alot of you guys get the same posts over and over about intro JavaII Classes, but I have tried to refrain from asking something that has already been solved and try learning on my own, but Im stumped. Im having trouble with this program, specifically at my calculation …

Member Avatar for zeroliken
0
811
Member Avatar for showman13

I know I should know the answer to this, but I'm drawing a blank... I have a conditional statement that checks for the value of a variable, and if it isn't 'Y', then it does a redirect using the header statement. apparently something that I did a couple days ago …

Member Avatar for showman13
0
296
Member Avatar for knitex

I have recently started using VIM for writing java code so I'm still getting use to the things i can do with it. I'm having trouble compelling the file directly in vim. I would like to have it so i can use :compile to compile the programs and then it …

0
166
Member Avatar for HoneyBadger

Guys I have this string: [CODE]mystring = 'blue, pink, red, red, red, white, long, short, blonde, blonde'[/CODE] I want to: 1.) Split it into a list, 2.) Erase all duplicates 3.) Sort it out alphabetically so I did this: [CODE]mystring = list(set(mystring.split(', '))).sort()[/CODE] But why when I go to call …

Member Avatar for HoneyBadger
0
124
Member Avatar for Snow_Fox

I need to take in a sentence and break it up based on the individual words. I've been googling for probably 30+ minutes to 60 ish and I feel it's time I get some help on this one.. Ideally, there should be a way to break up a string possible …

Member Avatar for Snow_Fox
0
250
Member Avatar for chuyauchi

I have problem on my program. Can anyone help me to fix it and explain to me a little bit? [CODE] #include <iostream> #include <iomanip> using namespace std; void displayResult(); void welcomeMessage(); void game(); int main() { welcomeMessage(); displayResult(); displayResult(frequency, expected, intRepeats); } // end main void welcomemessage { cout …

Member Avatar for Ab000dy_85
0
122
Member Avatar for Contagious98

I cant seem to login into my crystal report viewer. It wants me to login with the user name and the password. I've already provided the UN and the PW during the crystal report database connection. I really do not know why it fails. I only have these codes. [CODE] …

Member Avatar for Contagious98
0
215
Member Avatar for infinitus

Hello guys ;) Im quite new to PHP and i run into a problem. I was given a PHP task to do and its got to be submited by 27th this month in my uni... unfortunately i was not attending any Web programming class as i was so into Java …

Member Avatar for infinitus
0
233
Member Avatar for cr7489

i have 2 methods to check if words appear within a piece of text, the method only checks for a word once but i want it to check more than once [CODE] while ($pos_words = mysql_fetch_assoc($pos)) { if (strpos($review_text, $pos_words['word']) !== FALSE) { $good++; } } //Get negative words and …

Member Avatar for diafol
0
234
Member Avatar for scarcella

Hi all, I have just coded this for my website, is there a way to improve this either by extending for a more general use or just improving my logic's. Thank you in advance. [CODE] function removeEmptyArray($array, $remove_null_number = true) { $new_array = array(); $null_exceptions = array(); foreach ($array as …

Member Avatar for scarcella
0
88
Member Avatar for kingsonprisonic

I am using WebBrowser Control... When form is loading i set webbrowser to navigate a website. Now this website running too much popup ads.. So each time webbrowser navigate a new popup window open out of my application.. Is their any way to stop that.. Thanks in advance...........

Member Avatar for kingsonprisonic
0
132
Member Avatar for _Nemesis_

Hi guys, Brief Background: I'm currently working on a project in which I wish to create an autonomous game agent capable of traversing 3D environments. To do this I would like to implement a custom path finding algorithm that works with a navigation mesh. The Problem: I'm currently looking at …

Member Avatar for _Nemesis_
0
174
Member Avatar for mrbungle

I've been at this for a few days, not making any progress, so I'm asking for help. I have an application you log into based on an ID number (example 45) In the app, there is a label. By default is has "lblID" in it, when when you log in, …

Member Avatar for ChrisPadgham
0
182
Member Avatar for reds8

Can I create 2 users and they have different function?? Database base using is MS Access. For example I have "staff" and "admin". Staff can insert,edit and delete data only. Admin can check the total sales of the day. Can I do that in VB.Net and can somebody give me …

Member Avatar for ChrisPadgham
0
282
Member Avatar for rfrapp

I'm trying to finish this assignment for class, but I've got a problem.It seems as though my code will always make the new generation blank, and I'm not sure why. If you could read my code, then I'd greatly appreciate it. Thanks! [CODE] // Life.cpp : Defines the entry point …

Member Avatar for StuXYZ
0
262
Member Avatar for rithish

[CODE]#include<stdio.h> struct rec { int i; float PI; char A; }; int main() { struct rec *ptr_one; ptr_one =(struct rec *) malloc (sizeof(struct rec)); ptr_one->i = 10; ptr_one->PI = 3.14; ptr_one->A = 'a'; printf("First value: %d\n", ptr_one->i); printf("Second value: %f\n", ptr_one->PI); printf("Third value: %c\n", ptr_one->A); free(ptr_one); return 0; } [/CODE] …

Member Avatar for deceptikon
0
116
Member Avatar for SCass2010

Hi everyone :) At the minute I'm working on some stuff learning c++ and was wondering if ayone could offer some advice... Say I have a pile of objects that need to be created (for example say, a Log object, XML parsers object, and a command line parser object). In …

Member Avatar for Bench
0
198
Member Avatar for zooferic

Hi everybodies! How increase ProductId inside Product_Table when insert a new product according to following approach? Language_Table: Id Code --------- --------- 1 ka 2 en Product_Table: ProductId ------------- 1 2 Product_Translation_Table: TranslationId Title ProductId LanguageId -------------- ------------------- ------------- ------------ 1 Kompiuteruli 1 1 2 Computer 1 2 3 Radio 2 …

Member Avatar for scarcella
0
278
Member Avatar for eduard77

I am having a script that starts like this require_once "XML/RSS.php"; In the ini.php the path is set to "include_path = ".;d:\phpincludes" where I have an XML folder that contains the RSS.php file When I try to run it I keep on receiving the error Warning: require_once(XML/RSS.php) [function.require-once]: failed to …

Member Avatar for eduard77
0
139
Member Avatar for aanders5

How do I clear/renew/empty/refresh a 2D JButton Array? I've tried a lot of things, but all that is happening is the new 2D array, just adds onto the old one, which is not what I want. It won't even just overwrite the old array. So i am not sure what …

Member Avatar for aanders5
0
261
Member Avatar for MrEARTHSHAcKER

Hi, When writing a little code for showing ASCII characters in C++ and C, the only difference is when I do it in C++ I print until char ( or integer ) reaches value of 127, and in C I print until it reaches 255. Why it's like that? Thanks!

Member Avatar for MrEARTHSHAcKER
0
176
Member Avatar for HoneyBadger

Guys I'm looking for a clean way of splitting a string into a list: I have this: [CODE]myString = 'blue, red, pink, purple'[/CODE] and I want this: [CODE]myString = ['blue', 'red', 'pink', 'purple'][/CODE] How do I do that?

Member Avatar for HoneyBadger
0
158
Member Avatar for sj5536

how do i add multiple pane in frame dynamically that is in my frame there is one text box which take value from user when user click on ok button i have to add that much panel in jframe how do i do that ?

Member Avatar for Punit.Shah
0
5K
Member Avatar for layneb131

Im trying to write a program that inputs a single letter and prints out the corresponding digit on the telephone. Im having trouble finding out a way in which you can group the variables that have the same digit, but im not sure how. You guys have any suggestions? P.S. …

Member Avatar for woooee
0
490
Member Avatar for Snow_Fox

So, I'm doing a program that is suppose to convert a sentence into pig latin. I figured I would make a function which would handle the individual words, then I'd work on breaking up the sentence into individual words. I keep getting the error that my String Subscript is out …

Member Avatar for Snow_Fox
0
1K
Member Avatar for ohblahitsme

So I have a function called start() and it has multiple if statements and I want all of them to run. [code=python] def start(): print """You have just woken up from a very long nap. You find yourself in a dimly lit cave. There is a patch of light in …

Member Avatar for woooee
0
288
Member Avatar for nickecarlo

I can't figure out why I get the NullPointerException on Line 223. Would appreciate any help whatsoever. Sorry about the spacing below. Some of the code appears messy. Toggle Plain Text and it should look better. [CODE]/* Section 1: Import Statements. Imports the Scanner class and the IO Package. */ …

Member Avatar for nickecarlo
0
219
Member Avatar for jazzermonty

Hi folks So I'm developing a small game for a homework question. I have 3 classes. Apart from the main class, my drawing class draws on screen the objects for my game, like so.. [CODE] public void bat(Graphics g) { //draw the bat g.setColor(Color.ORANGE); g.fillRect(batX, batY, breadth, batLength); g.getClipBounds(); } …

Member Avatar for jazzermonty
0
99
Member Avatar for nine9hours

I made the following program, but now i am getting an error. I searched for error almost 3 hours but worthless. I want to discuss the problem with you people. I am getting the error: [B] expected class-name before '{' token[/B] #ifndef ASKDIALOG_H #define ASKDIALOG_H #include <QDialog> #include "umerwindow.h" namespace …

Member Avatar for ravenous
0
256
Member Avatar for faraz ahmad

Hello All, i have written a program to read data of Persons from a file and fill the data into a dynamically created array of Persons. i am geting error in line 28 plz help the 1.txt file can be assumed as:(first line is the no of persons, then names …

Member Avatar for ravenous
0
324
Member Avatar for piotrekw

Does anyone know what is wrong, that this script in this case, a bad number of days in the difference in dates? The difference should be 2 days - the script shows 1 day. If the difference is in the same month is OK. [CODE]<script type="text/javascript"> var date_from = new …

Member Avatar for piotrekw
0
137
Member Avatar for dineshswamy

[CODE] a = input("enter the string") print "%s dinesh" %l m=re.match(r'(.*)(\.*)',l,re.I) print m.group() print m.group(2) [/CODE] i m getting the following error ,when i give input [CODE] Traceback (most recent call last): File "regularexp.py", line 1, in <module> a = input("enter the string") File "<string>", line 1, in <module> NameError: …

Member Avatar for dineshswamy
0
135
Member Avatar for Waldema

Hi! I've been thinking about how to get this idea work: I have a table in my page. Four columns and several rows. Columns are (1) a product name, (2) how many needs to be purchaced, (3) how many already have been purchased and (4) a submit button which should …

Member Avatar for Waldema
0
89
Member Avatar for adil_bashir

can anyone tell me how to get out of the error Connection refused: connect thanks in advance

Member Avatar for adil_bashir
0
58
Member Avatar for blabspot

Well this is my register form, it all worked fine before but for some reason it isn't inserting anything into the table, all of my other scripts that insert items into a table. A quick reply would be nice :) thank you. Here is the Register Script: [CODE]<?php $title = …

Member Avatar for iamthwee
0
306
Member Avatar for TIM_M_91

Hi Guys well what I am trying to do is set a background image for my program where my labels, buttons , and text areas sit in front of the background. Everything I try I try I cannot get it to work. My jframe layout is below so any help …

Member Avatar for TIM_M_91
0
197

The End.