199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vinnitro

I don't know how to add songs in the database along with their link, content_type, duration, size, etc. I don't know which query & what datatype will be required to add the songs inside a database table. Since music file is a .mp3 or .wav data I cannot possibly add …

Member Avatar for pixelsoul
0
701
Member Avatar for James singizi

im trying to submit data from my form into a database. After validating everything the code to insert the data is: $qry = "insert into users(id, name, surname,email, password,date) values (id,'$name','$surname','$email','$password','$date')"; On testing the code i get an error that says:"error: unkown column 'geek' in field list". geek corresponds to …

Member Avatar for broj1
0
198
Member Avatar for Papa_Don

While creating a module within my program, I created a second Dataset (and it's called DesignDataSet2). I would like to delete it from the database altogether. I have already removed the one datatable that was within this dataset. I now want to eliminate this completely. How do I go about …

Member Avatar for Reverend Jim
0
114
Member Avatar for mattsheets

This is what I am tring to do... I have a table with 4 items: id (primary key) group_name employees surveys What I need to do is display all the data on a html table in input boxes, and allow a end user to update each field. I have tried …

Member Avatar for TonyG_cyprus
0
298
Member Avatar for Gubbei

I have a project due for my programming class on Friday and im hopelessly stuck on this problem if anyone could help me please, it would be great >The question is: Write a function that takes 4 arguments (integer, integer, picture, string). This function should be able to be used …

Member Avatar for bumsfeld
0
230
Member Avatar for Yorkiebar14

Hello, I am trying to make a program which will login to a website with many different accounts one after another. The problem I have though is, the documentCompleted event either doesn't run at all or it runs more than once before the page is fully loaded. This causes the …

Member Avatar for Yorkiebar14
0
1K
Member Avatar for nstrazimiri

hello guys. i want to add a button in php wich loads a document and includes it into the text area. sample we have a file called document.txt and if we load this file by pressing the button load, the textarea then is filled with the text that was in …

Member Avatar for GliderPilot
0
319
Member Avatar for cmps

Hello all. Currently I develop PHP website, and I do simple java programs. Since I will continue learning more and more java, I decided to learn JSP/Spring MVC (Don't really know how Spring MVC Framework uses JSP, check next paragraph) combination of my web knowledge and the Java programming language. …

Member Avatar for cmps
0
256
Member Avatar for Jake.20

Greetings guys how can i delete the selected items on the datagrid. I'm trying to search for some code but i can't find anything. And i need to finish this before thursday. i really need your help guys thanks!

Member Avatar for Jake.20
0
252
Member Avatar for Singlem

Hi I have been trying to wrap my head around a small issue I have. I'm trying to show a messagebox if a value a met. [CODE]if (CurrentProcess == "Test") //Show message then do something else else //Do Something else [/CODE] JScript confirm will work with onclientClick but that is …

Member Avatar for geniusvishal
0
126
Member Avatar for dendenny01

I want to designe a code at display a perticular data Example a time table of the week For instance if someone view a page on monday so it show display result of the table or data which is set to display on monday or if some one view same …

Member Avatar for dendenny01
0
294
Member Avatar for imti321

I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) …

Member Avatar for pixelsoul
0
166
Member Avatar for Decode098

This code wont doest display the answer why???/ #include <stdio.h> #include <conio.h> void main() { int opcode; int num[2]; int result; clrscr(); printf("Program for Addition, Subtraction, Multiplication and Division\n"); printf("Enter First Number:"); scanf("%d", &num[1]); printf("Enter Your Choice: 1 - Add, 2 - Sub, 3 - Mul, 4 - Div: "); …

Member Avatar for Decode098
0
135
Member Avatar for tomz6

What is the most efficient (fastest) way to load data from a file on HDD to RAM? (which would allow to only load a limited section of that file - eg. load only half of the file etc.)

Member Avatar for mike_2000_17
0
305
Member Avatar for rwe0

Using Ubuntu 12.10 have been using python 2.7 and python 3.2 successfully. 2.7 is my default interpreter. Now, after installing python 3.3 it looks like the python3.3 version of "/usr/include/python3.3" was not installed (as it is for "usr/include/python3.2" . I have already done "sudo apt-get install python-dev" . I discovered …

Member Avatar for rwe0
0
775
Member Avatar for jethro28

#include<stdio.h> #include<conio.h> #include<ctype.h> char c,ch; //choosing long int dec,quotient; // long int *pdec; // int bin[100],i=1,j; //Binary int *pbin,*pi,*pj; // long int octal,*poctal; //Octal long int hexa,*phexa; //Hexadecimal main() { clrscr(); gotoxy(5,7); printf("A. Binary"); gotoxy(5,8); printf("B. Octal"); gotoxy(5,9); printf("C. Hexadecimal"); gotoxy(5,5); printf("Convert decimal to: "); scanf("%c",&c); c=toupper(c); { if(c=='A') { …

Member Avatar for jethro28
0
184
Member Avatar for saurabh.mehta.33234

This might be a very basic question but still I am not able to figure out why is the foll code giving stackoverflow exception in main?? public class HelloWorld{ public static void main(String []args) { System.out.println("Hello World"); Animal c = new Animal(); } } class Animal { Animal e = …

Member Avatar for saurabh.mehta.33234
0
140
Member Avatar for adamwilden

Hi, Been having real problems listing members of an AD group. The examples I've found online either don't work either or are a bit beyond my humble skills! I can get members of simple groups easily enough, but teh code I'm using returns nothing at all if a group contains …

Member Avatar for adamwilden
0
1K
Member Avatar for tensity

I was wondering how one might go about the following: I am reading in data from a file using `getline(inputFile, tempString)`. Some of this information has to stay in string format, and other information must be converted to floats, ints, etc. I anticipate there being a problem if there is …

Member Avatar for deceptikon
0
158
Member Avatar for GlenRogers

Hi, I have a problem I just cant solve. First I will explain what I am trying to do. I have a page with a menu consisting of categories of products, some of these categories have subcategories and some don't. Categories and subcategories are kept in mysql tables. The tables …

Member Avatar for GlenRogers
0
1K
Member Avatar for Yarra

So what is going on is. For some reason if I just invoker "render();" the function does not run. But when I put it under the main(); function, and then invoke the main function under a "setInterval()" method then everythig works. Why is this? // Draw everything var render = …

Member Avatar for Airshow
0
133
Member Avatar for Buppy

So, i enabled mod expires to my web page. Here's the code i used: <IfModule mod_expires.c> ExpiresDefault "access plus 2 months" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 …

Member Avatar for cereal
0
180
Member Avatar for GTTravis

i have a database with several paths looking like the one below C:\S&M Site Project\NEWSMAA\SitePhotos\2\GUY093\GUY093-Tulips.jpg what i aim to do is load the images into a gallery control (if one exist) the users viewing the images should be able to do either of the following: 1.Double click on an image …

Member Avatar for geniusvishal
0
100
Member Avatar for solomon_13000

I wrote a code to represent the factory design pattern as below: package com.factory2; public interface CreditCheck { Double creditLimit(int id); } package com.factory2; public class CreditCheckFactory { public boolean isAgencyUp(){ return true; } public CreditCheck createCreditCheck(){ if(isAgencyUp()){ return new CreditCheckOnline(); }else{ return new CreditCheckOffline(); } } } package com.factory2; …

Member Avatar for JamesCherrill
0
286
Member Avatar for GTTravis

Hi guys, let me get to the point: I want have a button that when clicked allows the user to browse to any folder in any location whether it is a flash or the c-drive. Depending on the location and folder selected the user must see all image files in …

Member Avatar for geniusvishal
0
171
Member Avatar for anisha.silva

hi, i have a class handler and a class health monitor. i have 2 instanses of the handler class as primary and secondary. in the start of the appliacation the primary and th secondary handler is set. what i want to do is once the primary is set up every …

Member Avatar for horosharp
0
484
Member Avatar for teha.sani

please do help me with this programming problem as i found it difficult. develop a c++ program to accept the number of km to travel.calculate the hours need to travel the distance. assume to travel 70km takes 1 hour. if the required hour is higher than 2 hours then for …

Member Avatar for Lucaci Andrew
0
162
Member Avatar for JannuBl22t

Hey! I have a problem.. I need to remove items from array that are duplicated here's my code: [CODE] private void Form2_Load(object sender, EventArgs e) { openFileDialog1.Title = "Open Links List"; openFileDialog1.Filter = "Text File|*.txt"; openFileDialog1.FileName = ""; openFileDialog1.ShowDialog(); var file = openFileDialog1.FileName; if (file != "") { StreamReader read …

Member Avatar for saclines
0
1K
Member Avatar for Manasarala

hi, Below is the code that displays 2 similar images and pixel values BGR of both images. I wanted to know , how to calculate the distance(euclidean) between selected pixels in 2 images[like (100,100),(100,101) coordinate and so on.how to go about it?how to use the values of BGR and B1G1R1 …

0
146
Member Avatar for Matigo

Hello guys Anybody could help me please to make the Windows estimated usage in visual basic 2010 "To show how many MB/GB of internet i have used" I'm running windows 8 and this application will will be used on windows 8 Only Thanks in advance guys and i hope to …

Member Avatar for Matigo
0
211
Member Avatar for 2mhzbrain

Dim oWord As Word.Application Dim oDoc As Word.Document Dim oTable As Word.Table Dim x As Integer Set oWord = CreateObject("Word.Application") oWord.Visible = True Set oDoc = oWord.Documents.Add Set rs = New ADODB.Recordset With rs .Open "SELECT * FROM ClientTable", cn, 2, 3 Dim r As Integer, c As Integer Set …

Member Avatar for 2mhzbrain
0
233
Member Avatar for trishtren

Iv been developing a parser using java, however due to testing on multiple machines i have errors now on one machine i corrected as the machine was using jdk/jre v1.6, and on my newer machine jdk/jre 1.7 The question i have is, what are the implications of using the String …

Member Avatar for delta_frost
0
301
Member Avatar for Taras20

hi everyone :) what i'm trying to do is to check if word in a string has numbers in it for example: if i enter string of one word "he11o" i want to show error message that says "One or more characters are numeric! Please re-enter the word!" and if …

Member Avatar for nullptr
0
419
Member Avatar for chr.s

I'm making a full-screen slider with [maximage][1] & [cycle][2] that (so far) does the following: - Compares a given URL hash against each slide's ID and loads a match, if found, - Appends the first slide's ID to the address bar as a hash, if none is specified, - Replaces, …

Member Avatar for LastMitch
0
414
Member Avatar for clouds_n_things

So, I have a quick question about a small password cracking program that I wrote. The syntax seems to be fine, but when run at the command terminal (I'm on a mac), the program doesn't really DO anything. I'll click "run in terminal" or I'll already have the terminal window …

Member Avatar for clouds_n_things
0
250
Member Avatar for nstrazimiri

hi. i want to load and read a file in php. i wrotte this code but it doesn't work. i want when the user loads a txt file, then it will be shown in the page. i can use fopen but i dont know its directory for example. any help …

Member Avatar for NardCake
0
160
Member Avatar for eric.inclan.3

Hi all. I've been learning programming from the web for almost 2 years now and this'll be my first post ever on DaniWeb (or any forum ever). I have no experience with parallel programming but read about the simplicity of working with OpenMP, and that's what I need. Something that …

Member Avatar for eric.inclan.3
0
518
Member Avatar for Violet_82

Hi chaps, I am having a little problem. Given the following snippet: html <div id="carousel"> </div> css #carousel{ border:1px solid magenta; width:600px; height:258px; background: url('sprite.png') no-repeat 0 0; position:absolute; left:0; top:28%; } jquery $(document).ready(function(){ function scroll(){ $("#carousel").animate({ backgroundPosition:'-600px'}, 500); } setInterval(function(){scroll()},2000); }); I am trying to run scroll() forever to …

Member Avatar for GliderPilot
0
335
Member Avatar for nstrazimiri

Hi. I want to remove lines with same text. i wrote this code, but it doesnt work. where is the problem ? $total=$_GET['name']; $keyarr=explode("\n",$total); $int=sizeof($keyarr); for($a=0;$a<$keyarr;$a++){ for($b=$a+1;$b<5\$keyarr;$b++){ if($keyarr[$a]==$keyarr[$b]){ unset($keyarr[$b]); } } } echo $keyarr[$int-1]; foreach($keyarr as $new){ echo $new."<br>"; }

Member Avatar for nstrazimiri
0
182
Member Avatar for spluskhan

My code Search_restl.php <html> <body> <head> <font size="3"><strong> <?php // Connects to your Database mysql_connect("mysq.com", "bd", "pass") or die(mysql_error()); mysql_select_db("products") or die(mysql_error()); $q = mysql_real_escape_string($_GET['query']); $data = mysql_query("SELECT * FROM Products where name LIKE '%$q%'") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { echo "Product Name: $info[name]<br>"; echo "Grade A: …

Member Avatar for spluskhan
0
208
Member Avatar for hallianonline

hello everyone i am facing a little problem I have a 3 dependent selectboxes and i want to save the selected values in the session so user can remember what category i selected before also it prints the last visited link here is my code pelase tell me what code …

Member Avatar for broj1
0
199
Member Avatar for MRehanQadri
Member Avatar for jiji2663

I am currently using a datalist to update the database with a textbox control. The problem is that when I am pressing "Edit" and entering values in the textbox and when trying to update the database, the database is not getting updated with the entered value. Could someone please let …

Member Avatar for BMXDad
0
147
Member Avatar for JimOfRose

Hello all, First, if I may, a comment. This is my first post. I have been a member of another forum and found that users are treated with little respect... assumptions are made, stupid questions are not allowed patience, etc. I work for a large IT corporation (if I told …

Member Avatar for BMXDad
0
224
Member Avatar for thirumalareddy

ASP.Net master page and content page I have a login screen in the content page ,Aftre login the values should go to the Master page on the Label. please give some solution

Member Avatar for BMXDad
0
407
Member Avatar for sametkocak

I installed my application asp.net 4.0 with Server machine, but I get this error when loading the file. I gave all the IIS permissions, but not changing anything. I'd appreciate if you help. Error image [http://sametkocak.com/img/hata.png]

Member Avatar for BMXDad
0
143
Member Avatar for clausont

I have a row of buttons in a gridview that are created dynamically. When the button in a cell is clicked, the row disappears. Not sure why. Does anyone have a solution to this? Here is my code: Protected Sub GridView2_RowDataBound(sender As Object, e As GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow …

Member Avatar for BMXDad
0
812
Member Avatar for davy_yg

Hello I am using VS 2010 while following Video tutorial for VS 2005. I thought it would be just the same thing. I am using .NET 4 framework. I suppose to see on screen product page with complete data, except this time, I do not see the data. I do …

Member Avatar for BMXDad
0
164
Member Avatar for linezero

I'm currently working on a project on VB.NET and I'm getting this error below. > Error 2 Overload resolution failed because no accessible 'New' is most specific for these arguments: 'Public Sub New(name As String, dataSourceValue As System.Collections.IEnumerable)': Not most specific. 'Public Sub New(name As String, dataSourceValue As System.Data.DataTable)': Not …

Member Avatar for tinstaafl
0
259
Member Avatar for hookedtocsharp

I have this is my first page FirstPage.aspx protected void GridName_SelectedIndexChanged(object sender, GridViewSelectEventArgs e) { String Url = String.Empty; int index = e.NewSelectedIndex; String Name = String.Empty Name = GridName.DataKeys[index].Values["Name"].ToString() Url = "RetrieveAddress.aspx?Name= " + Name.ToString(); Response.Redirect(Url, false); Context.ApplicationInstance.CompleteRequest(); } Now, using the Name parameter from the FirstPage.aspx, How to …

Member Avatar for JorgeM
0
189

The End.