199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vestervang

I'm trying to make my first gallery with PHP and I'm having some problems i can't solve. My code looks like this: <?php include_once('config.php'); //Script der uploader og omdøber billeder if(isset($_FILES['billede'])){ $errors = array(); $allowed_ext = array('jpg','jpeg','gif','png', 'bmp'); $file_navn = $_FILES['billede']['name']; $file_ext = strtolower(end(explode('.', $file_navn))); $file_tmp = $_FILES['billede']['tmp_name']; $file_size = …

Member Avatar for vestervang
0
277
Member Avatar for svilla

I have this PHP program: <?php echo 'Start of Soap Request<br />'; $client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl"); print_r($client); echo '<br />Start of Var_Dump<br />'; var_dump($client); echo '<br />Result Print<br />'; $result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" ")); print_r($result); ?> That access a web service on my iSeries. I can get …

Member Avatar for maba001
0
1K
Member Avatar for babi.meloo

I need to design and implement an application that produces a multiplication table, showing the results of import java.util.*; import java.text.*; public class MultTab7 { //---------------------------------------------------------------------------------------------- // Creates a multiplication table. //---------------------------------------------------------------------------------------------- public static void main (String[] args) { int MAX = 12; for (int r=1; r<=MAX; r++) { for …

Member Avatar for babi.meloo
0
2K
Member Avatar for rayidi

I want to store my array into my database using jQuery. Here is my code i'm using serialize(); function. Its storing correctly but when i unserialize(); nothing happening. Please help here is my code. <script> $(document).ready(function(){ $("#save-skills").click(function(){ var skills = $('input[name="skills[]"]').serialize(); console.log(skills); $('#loading').css('display', 'block'); var queryString = "skills=" + skills …

Member Avatar for diafol
0
216
Member Avatar for Swith

I have been trying to write a program in Pascal (free pascal compiler, Lazarus IDE) that solves an uncompleted entered sudoku. I am moderately new to programming/pascal/lazarus, and so I have no idea how to use the debugging features. I have read through the code several times but I can't …

Member Avatar for pritaeas
0
1K
Member Avatar for chandbasha

Hi, PHP 5.2.17 (cli) (built: Sep 1 2011 17:22:41) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies [root@ip-10-130-243-182 mnt]# yum install php-pecl-memcached-2.1.0-1.el6.remi.x86_64.rpm Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the …

Member Avatar for maba001
0
571
Member Avatar for jakubee

Hello guys. I need to write a client-server app that provides a simple Lotto server and client to generate a user-defined sequence of random numbers in the range 1 - 42. The system operates as follows: 1) Client sends a string message to the server indicating the operation to be …

Member Avatar for Taywin
0
1K
Member Avatar for waf4hmad

i made this code to loop number for(int i=0;i<4;i++){ double temp[i]=Math.random() * i*10; system.out.println("Result" +i+ "=>" +temp); } output : Result 0 => 14.3 Result 1 => 11.4 Result 2 => 10.8 Result 3 => 12.4 now, i want to sort by ascending this output based on value with keep …

Member Avatar for waf4hmad
0
2K
Member Avatar for marvolo1300

Hi, I am new to javascript. Syntactically, this code seems correct, but for some strange reason, it refuses to execute. I know it's bad practice to include the script within the same document, but I just want this to work. Thank you in advance. <!DOCTYPE html> <html> <head> <title> Test …

Member Avatar for rayidi
0
133
Member Avatar for DaveyMoyes

Hi All, I have the following mobile re direct script working on one website, but not another, For some reason I am getting the error - Can not modify headers information - header already sent - etc etc On line 20 Any ideas why this would work for one website …

Member Avatar for hakeemtunde
0
321
Member Avatar for taylor.mitchell.353

I need to get specific objects deleted from a LinkList, but the deleted items come from a stack of sorted State objects, but the Statename is the only value. I am trying to compare the statenames when using deleteKey, but for some reason it is not working at all. I …

Member Avatar for taylor.mitchell.353
0
122
Member Avatar for keven.pirritano

I can't get this jQuery to work in Fire Fox. I have been told it works in Oprea and IE9. I also know it works in Chrome & Safari. // JavaScript Document $ (function () { $('#filterBox1').change(function() { // when value of filterBox1 changes var selection = $(this).val(); // get …

Member Avatar for keven.pirritano
0
156
Member Avatar for Priti Talware

Option Explicit Dim mem As Double, ans As Double, desi As Boolean, n As Double Dim no1 As Double, no2 As Double, fact As Integer, i As Integer Dim operation As Boolean, op As String, res As Double, index As Integer Private Sub cmd1divide_Click() n = Val(Label1.Caption) If n = …

Member Avatar for BitBlt
0
154
Member Avatar for jockfaire

Hi all, I need help in writing a method that calculates & returns a person's age (in years)given instance variables day, month & year all of type integer(int).

Member Avatar for jockfaire
0
112
Member Avatar for Hemanth.Satkuri

Hi, I have a desktop app in Swing. Now i want a javascript function like mailto when I click a JButton. Please help or provide any suggestion on my approach. Thanks in Advance. :)

Member Avatar for Hemanth.Satkuri
0
103
Member Avatar for Jasminemali

hi,i want design a feature which allows the forms to be changed to any theme color during runtime based on user specification can help me..

Member Avatar for Doogledude123
0
86
Member Avatar for Brick Wall

Hi I’m fairly new to c# programing so please bear with me. I’m currently working on a “simple” little program which allows the user to enter 5 values into the same text box and once this has been done I want to be able to display the maximum and minimum …

Member Avatar for Brick Wall
0
6K
Member Avatar for DyO1

Hello, I need a code for saving BackgroundImage from PictureBox1 with SaveFileDialog1. Please help me (I can't find the code) .

Member Avatar for Doogledude123
0
104
Member Avatar for rae08

I am able to read an external file but how do i retreive the data from the txt file per line? ex. text file has the following in it: dog cat rat how do i just display dog and then cat and then rat one by one? thanks.

Member Avatar for stercor
0
196
Member Avatar for Doogledude123

Button1.DoDragDrop(BackgroundImage, DragDropEffects.None) Throws an error ' Object reference not set to an instance of an object. ' First time I've used DoDragDrop, and first time with 2012 :)

0
174
Member Avatar for branding4you

Ok so now I am stuck, I looked at the http://www.daniweb.com/web-development/php/threads/326436/php-read-text-file-and-save-into-databse page and understand some of it, Yet it is not what i require, substring does not count like I thought it would, like the left, right mid commands in excel. I want to count to the data I want …

Member Avatar for branding4you
0
785
Member Avatar for rae08

Does anyone know COBOL and how to retrieve data from a txt file? I have a list of words (1 word per line) and i want to retrieve them one by one randomly using cobol. thanks.

Member Avatar for stercor
0
1K
Member Avatar for adil.mahmud.choudhury

I am very new to python. I have developed a program using the GUI of python. My development is almost done but i am stuck with a point. I have designed my gui using Listbox to read data from a file and show it. All i need to add a …

Member Avatar for woooee
0
180
Member Avatar for Batcher

New to Python and programming. I want to start with a txt file with different names per line Output a program that will create a directory for each entry in txt file I'm having problems getting txt file values into Python list, and using that as input for directory name, …

Member Avatar for TrustyTony
0
185
Member Avatar for Kyle Willett

Hi I have a CS class assinment that invloves solving a word search puzzle with a brute force string matching algorithm. I have made a lot of head way in getting the four search methods to work, however when I search for words that end along the edges of the …

Member Avatar for Kyle Willett
0
4K
Member Avatar for Vaspar

Hi I am facing problem using float in loop its value stuck at 8388608.00 int count=0; long X=10; cout.precision(flt::digits10); cout<<"Iterration #"<<setw(15)<<"Add"<<setw(21)<<"Mult"<<endl; float Start=0.0; float Multiplication = Addition * N; long i = 1; for (i; i <= N; i++){ float temp = Start + Addition; Start=temp; count++; if(count%X==0 && count!=0) …

Member Avatar for Vaspar
0
165
Member Avatar for 1bung100

I am trying to write a Java program to download youtube videos. When I search in internet I found that most of the codes use to get the index of "url_encoded_fmt_stream_map=" from the YouTube page source. I think this is to extract the exact video format link. But I am …

Member Avatar for JamesCherrill
0
2K
Member Avatar for paidah

## Sub-Heading Here ## hello guys, am new here and am looking forwad to getting a lot of help and helping others as well. I have an assignment that requires a program that outputs the numbers 1,2,4,8,16,32,64,128 using a loop.

Member Avatar for JamesCherrill
0
144
Member Avatar for 0773247886
Member Avatar for vijayan121
0
173
Member Avatar for mikelopez77

I have a email script that sends out information from the mysql database with the following code, but it only sends out one name and ID, but in the email it should send all 20 names and IDs. My question how can I get this fix and working right. Thanks …

Member Avatar for mikelopez77
0
216
Member Avatar for mickael.reinman

I have been pondering this task for awhile now and I just can't get it to work. I am trying to get the function readParameters to read the text from a .txt file and transfer them to the specified variables. I have managed to eliminate almost all the warnings but …

Member Avatar for mickael.reinman
0
4K
Member Avatar for mageamida

anyone please explain to me what is the diffrence of this two query select * from tbl_Booking where [Date of Pres] between 'October 11,2012' and 'September 17,2012' (this query can display the information) select * from tbl_booking where [Date of Pres] between 'September 17,2012' and 'October 11,2012' (while this query …

Member Avatar for G_Waddell
0
84
Member Avatar for davecoteproductions

Hi, Cote here, and I'm very pleased to announce that I've ported ALL my sl4a apps to eclipse apk, it embeds with the python interpreter, no need to install anything but the app off google play! I have completed: A) Android Eye (Computer Vision), that takes a picture and tells …

Member Avatar for BigPaw
0
334
Member Avatar for Mike Askew

Afternoon all, I currently am loading an XSD file from a physical file into memory to validate an XML file. However on loading the file it is containing such escape characters as `\r\n` to keep the formatting the document was originally in. This then causes an exception when loading the …

Member Avatar for Mike Askew
0
139
Member Avatar for dhatsah

Quick question. I am in the process of creating an application that uses alot of images, its becoming quite unbearable having to look through them ect. I was wondering is it at all possible to programatically select an area of an image to display? That way I could group images …

Member Avatar for dhatsah
0
183
Member Avatar for Learningvinit

#include <stdio.h> #include <stdlib.h> #include <string.h> main() { char *p1="Name"; const char *p2="Name"; char const *p3="Name"; char *const p4="Name"; const char *const p5="Name"; ++p1; ++*p1; ++p2; ++*p2; ++p3; ++*p3; ++p4; ++*p4; ++p5; ++*p5; } While Compiling above code certain Compilation error came. The errors are: const.c: In function âmainâ: const.c:17: …

Member Avatar for nitin1
0
547
Member Avatar for Nomi55

#include <stdio.h> main() { char a[4][4]; int row,col; for (row=0;row<4;row=row+2) { for (col=0;col<4;col++) { if ((row==col)||(row!=col)) { a[row][col]='x'; } } } for (row=0;row<4;row=row+2) { for (col=0;col<4;col++) { printf ("%c",a[row][col); } } }

Member Avatar for Gonbe
0
178
Member Avatar for tanvir.firuz

i want to know the code in C language when i will compile the program the character will delay printing in the display. Please help. thanks.

Member Avatar for Gonbe
0
131
Member Avatar for reemasmartin

hai everyone..i have run this file in my server.the following error is display Notice: Undefined index: name in F:\wamp\www\examples1\register.php on line 8 Notice: Undefined index: username in F:\wamp\www\examples1\register.php on line 9 Notice: Undefined index: emailid in F:\wamp\www\examples1\register.php on line 10 Notice: Undefined index: password in F:\wamp\www\examples1\register.php on line 11 Notice: …

Member Avatar for reemasmartin
0
243
Member Avatar for happygeek

I first started writing about the 'coming soon' Xbox 720 way back in 2008 if my memory serves me well. Every now and then another rumour emerges, supposedly from 'a reliable source within Microsoft' and confirming that the release date has been fixed or announcing the final hardware specification for …

Member Avatar for rhowell
0
467
Member Avatar for sandy.phan.37

Hi everyone, I'm currently working on a school assignment and came up with this error saying 'list_t has no member named head' but when I actually look at list.h and list.c (my code accessing list is in a separate file), head is in list.c. What did I do wrong? list.c …

Member Avatar for deceptikon
0
8K
Member Avatar for arjun.kancharla23

**Hi can anyone help me with the C code for calculating time difference between two keyboard key hits????**

Member Avatar for Gonbe
0
539
Member Avatar for Icekilla

Well, I need to code a pyramid that prints the following pyramid WITHOUT the stars *********1 ********232 *******34543 ******4567654 *****567898765 ****67890109876 ***7890123210987 **890123454321098 *90123456765432109 0123456789876543210 In the center, there are prime numbers, from 1 to 9, and after that, they cycle. (1,3,5,7,9,1,3,5,7,9 and so on). I made the code for …

Member Avatar for deceptikon
0
272
Member Avatar for Dendei

Hi, im wondering how i get this to work? <?php $client = new SoapClient("http://localhost:8731/phpwcf/?wsdl"); var_dump($client->KundLandKodAlternativ()); $response = $client->KundLandKodAlternativ(); $array1 = $response->KundLandKodAlternativResult->WCFString1; $array2 = $response->KundLandKodAlternativResult->WCFReturnString; echo count($array1); echo count($array2); ?> the line `var_dump($client->KundLandKodAlternativ());` gives object(stdClass)[2] public 'KundLandKodAlternativResult' => object(stdClass)[3] public 'WCFReturnString' => object(stdClass)[4] public 'string' => array (size=4) ... public 'WCFString1' …

Member Avatar for Dendei
0
263
Member Avatar for israruval007

I need help designing an automata that accepts the following words "hello" and "hello world" The alphabet includes the english alphabet and numbers. I just need to know how to start designing this automata.

Member Avatar for Taywin
0
155
Member Avatar for dancks

Without getting into too much detail, I am using the school server for a website project, which doesn't have the php image libraries installed. So I need something else to use THAT I DO NOT HAVE TO INSTALL. I don't have sudo/admin privileges. I do have gcc/g++ so there's that. …

Member Avatar for Taywin
0
195
Member Avatar for skorm909

The program I'm writing is supposed to take a number of *tosses* entered by the user, this part works. Then take that and check to see if it is within a circle that is inside of a square. Then take the number that are inside the circle, and divide it …

Member Avatar for noelthefish
0
138
Member Avatar for Hazuan Nazri

hello, i need some help here, i already bind my database coloumn 'NAMA' to my combobox 'cbNAMA', and now i want to show data from my database on textbox by selecting the row using cbNAMA but i got this error "System.InvalidCastExeception: Conversion from type 'DBNULL' to type 'String' is not …

Member Avatar for G_Waddell
0
1K
Member Avatar for aabbccbryanmark

i get this 'else' without 'if' error on this case: case 2: for(int i=0;i<currentRegisterdItems;i++){ System.out.println("#"+i+" - "+itemArray[i] + "\t\t\t" + priceArray[i]); System.out.println("Select products and add to cart - Simple Shop Software"); System.out.println("Enter the product id: "); int searchIdProduct = Integer.parseInt(a.readLine()); if(itemArray[searchIdProduct] != null){ System.out.println("Add "+itemArray[searchIdProduct]+" to your cart?"); System.out.println("Confirm: Y …

Member Avatar for JamesCherrill
0
128
Member Avatar for andyy121

$construct .="keywords LIKE '%$search_each%'"; $run = mysql_query($construct); $foundnum = mysql_num_rows($run); i wont to know what display $construct?? i wont to know what is the function of mysql_query and what mean this ($construct); i wont to know what is the function of mysql_num_rows what can it do

Member Avatar for cigoL..:)
0
118

The End.