199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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! | |
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 … | |
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 … | |
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']) … | |
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: "); … | |
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.) | |
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 … | |
#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') { … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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>"; } | |
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: … | |
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 … | |
is it necessary to include base class in the header and or .cpp file of derived class? | |
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 … | |
![]() | 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 … |
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 | |
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] | |
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 … | |
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 … | |
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 … | |
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 … |
The End.