199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ahsan1

I am having multi record delete problem. It shows an error about foreach loop. <?php if(isset($_REQUEST['action'])&&$_REQUEST['action']=="delete") { $value=$_REQUEST['check']; foreach($value as $ids) { $dquery="SELECT songname FROM songs WHERE id='$ids'"; $dresult=mysql_query($dquery); $drow=mysql_fetch_array($dresult); $songtodel=$drow['songname']; $path2="../upload/$songtodel"; if(is_file("../upload/$songtodel")) unlink($path2); $mdquery="DELETE FROM songs WHERE id='$ids'"; mysql_query($mdquery); } }

Member Avatar for cossay
0
100
Member Avatar for deviliq

hi there [B]how do i determine the average Number of Queue Items that leave the queue (example: processes leaving the ready queue in order to be Running in the CPU) per second?[/B] i need this value to calculate for the average waiting time. the formula is: w = n/X where …

Member Avatar for deviliq
0
1K
Member Avatar for berwick53

I'm doing a project involving VB.Net 2008 and SQL. I'm trying to make a combobox display whats in the sql database that is connected on the left hand side. how do i do this? Sam

Member Avatar for bklynman01
0
107
Member Avatar for nullclick

i want to make auto generated item number look like this item001 item002 and so on when i saved the item001 the next time i try to input new item it will give me item002 and so on... Thank You. i am using ACCESS

Member Avatar for Saikalyankumar
0
283
Member Avatar for chester1908

Hey all. I'm having a bit of problem with structs. Say we have a struct comprised of some strings and ints.One of the strings is a keycode,which is used for hashing.So my program reads from a file some information,creates a struct and using that keycode it places the struct on …

Member Avatar for Ancient Dragon
0
195
Member Avatar for TheDocterd

Hi All I have a small app. What is does it reads an html file for certain keywords (like e9, e5, e21, etc.) When any of those lines are found it must add a link in html format into the file. Except you will see that the folder locations differ. …

Member Avatar for TheDocterd
0
109
Member Avatar for garevn

Hello erveryone. I am new in programming and i have the following problem i cant figure out! i want to make a search into my database. i have prepared my html-js-php files but it seems i have a php problem. When i search and i type whatever letter then i …

Member Avatar for garevn
0
201
Member Avatar for elibyy
Member Avatar for Terminator_Null

Hi. I am new to VB (and coding in general) and I'm wanting to make a check digit generator. To do this I need to take the a user text input and split it into individual digits so that I can then calculate the check digit. I'm just not sure …

Member Avatar for debasisdas
0
100
Member Avatar for Kiraichi

me and my team working on a project called Stealth Hunter, Summarize about our project: Stealth Hunter is a thief catcher, It will silently take a snapshot of user using a stolen notebook or pc with webcam and send the information via email. how it work is: The scripts will …

Member Avatar for masijade
0
216
Member Avatar for sj5536

hi i want to create swing application that has google map i searched on net but i hanot got any useful resource

Member Avatar for peter_budo
0
314
Member Avatar for missc

hi, i have 2 data grid views in my form.. one displaying the guests and the other the reservations.. i would like to filter the reservations data grid view to display only reservations of the guest selected form the guest data grid view ... but i need help with this …

Member Avatar for missc
0
75
Member Avatar for P.manidas

Dear Sir/Madam, I have created a sample program that dynamically created up to 7 numbers of Labels and Text Boxes. Here I want to add those numbers inputted by user on dynamically created text boxes. I have tried a lot but all are in vain. Please guide me to solve …

Member Avatar for P.manidas
0
404
Member Avatar for vssp

hai friends I need to count the files with in the selected folder. How to count the files ?? please help me. If any paossibel ple4ase send me sample code. Thanks vssp

Member Avatar for kyobul
0
2K
Member Avatar for divyakprabh

Hi all, I have a java database application which mainly deals with database operations. Im concerned about the performance, as I have many update statements. As there are many records, each row has to be updated with a calculated value. So can anybody help me out to suggest for efficient …

Member Avatar for smantscheff
0
68
Member Avatar for klemme

Hey All, I have tried to work on a way to update all the date in a row called: "position", from a table called: "pages". The admin have a choise on where to place his new page, in the cms. The pages/links, are being pulled from the database by position …

Member Avatar for smantscheff
0
114
Member Avatar for sumprit

Hi..., i have a problem. if anyone can please give me some suggestion then i could able to proceed further. My problem is that i need to show database values in JTable. i have two database table and i query to display data in a JTable. I am just sending …

Member Avatar for javaAddict
0
158
Member Avatar for arezz09

in form hve 1 datagrid, 1 microsoft reportviewer and 1 textbox.. all data in datagrid binding from access database.. i put this code in textbox to search data in datagrid and automaticly data will preview in reportviewer..in data grid hve 2 column, like product & model.. [CODE] Me.Product_listTableAdapter.FillByproduct(Me.MydatabaseDataSet.Product_list, TextBox1.Text) Me.ReportViewer1.RefreshReport()[/CODE] …

Member Avatar for arezz09
0
91
Member Avatar for Chitru

i was coding GUI in Java. i'm just a beginner and i can't figure out on what program is mistaken please help me on this: [B]Compilation error is:[/B] helloworld\FourthApp.java:38: class, interface, or enum expected public static void main(String[] args) { ^ helloworld\FourthApp.java:40: class, interface, or enum expected } ^ 2 …

Member Avatar for masijade
0
649
Member Avatar for liamfriel

Hello all, I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href: [CODE] $islink = false; foreach($_POST as $k => $v){ if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){ $islink = true; } …

Member Avatar for liamfriel
0
163
Member Avatar for e-papa

Hi guys, I tried to run the configure.py in the pyQt folder using command prompt, but it kept coming back with an error that's looks something like this trace back import sipconfigure no module named sipconfigure what do I do now guys, how do I tackle this.

Member Avatar for e-papa
0
130
Member Avatar for domingo

Hi i have a problem, on localhost everything works fine but not when i upload to my web server an error occurs: I have tried different methods but nothing succedded. thanks HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, …

Member Avatar for Knvn
0
475
Member Avatar for ridzaq

I keep getting the following error when I try to add new record into database (Access 2007) "The INSERT INTO statement contain unknown field name:'login'." I dont whats wrong as the coding looks fine and the field login does exist in the database. Spent whole day trying to find the …

Member Avatar for ridzaq
0
2K
Member Avatar for mrlol

Hi.. Good day.. thank you for viewing my thread.. i would like to ask my fellow frens in daniweb to help me to validate access in my assignment system... currently my database is like this: [CODE]Assignment_id | Assignment_name | Member | Remarks 1 test 1 John, Sue, Veronica ok ok …

Member Avatar for perfectweb
0
124
Member Avatar for daniel955

Hi I am experienced in ASP w/ C# but a beginner in PHP: How do I get the value of a unique index of a column of mySQL in PHP: [CODE=C#] try{ //do connect //insert data } catch(Exception ex){ if (ex.Message.IndexOf("Column_Name") >= 0) //<-- how do I do this in …

Member Avatar for perfectweb
0
138
Member Avatar for G_Waddell

Hi Ever had the situation where you need to make a copy of a Datatable? Or where you wish to copy a datarow from one datatable to another? Well here is how by using [B]Clone[/B], [B]Copy[/B] and the [B]ImportRow[/B] DataTable Methods.

Member Avatar for sandeepparekh9
0
1K
Member Avatar for S.R.SENTHUJAN
Member Avatar for bigwhiteegg

how do I read a website's source code line by line and store it as string for modification??

Member Avatar for bigwhiteegg
0
86
Member Avatar for Jaseem Ahmed

i have table in sql server 2000, in whicn i have coloums. now on the interface i have one text box as customercode, and four (4)combo boxes with differnt values. when user wants to do entry, he will enter any code, and will select values from combo boxes, and when …

Member Avatar for Jaseem Ahmed
0
171
Member Avatar for charchar88

I'm new at C coming from java but I'm learning it in one of my college classes and so far it's a nightmare anytime I write a program with it :'(. I'm writing a Reverse polish notation calculator and I'm using gcc as my compiler. I want to be able …

Member Avatar for WaltP
0
226
Member Avatar for ashwinshenoy

Hi Guys, I am developing a VB application along with MS Access... When I initially load my form I need to put my application to sleep for 3 seconds or else data wont load properly. So for this 3 seconds I would like to show a progress bar displaying a …

Member Avatar for Luc001
0
932
Member Avatar for Dexxta27

I got this question: Create a SavingAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the savers. Each member of the class contains private data members: firstName, lastName, and savingsBalance to indicate the amount the saver currently has on deposit. Provide member …

Member Avatar for Dexxta27
0
100
Member Avatar for kofawais

dear i am facing problem in populating array in my code as when i poulate an array in add code it works and when i do same in the edit section it gives undefined index error so how to solve this when press add button to add fruits from the …

Member Avatar for kofawais
0
103
Member Avatar for sumprit

hello everyone, i am using OSM in a swing application. Now what i needed is that when i clicked the mouse then it must perform Zoom in/out on the OSM. i could not able to perform the actionClick action for the mouse. How can i able to do it. If …

Member Avatar for sumprit
0
112
Member Avatar for shyla

Hello, i am trying to solve that problem, it was already due for my class, an i am disappointed that i wasn't able to solve it can any body give a descent solution for that Q: The tiny tots tee-ball league has 12 players who have jersey numbers 0 through …

Member Avatar for abelLazm
0
280
Member Avatar for Nicco

Hey there! First off let me say that this is for an assignment and i would of rather used a singular array. Also i'm pretty sure that the TA wrote this assignment cause some stuff is ass backwards to create the illusion of the arrays starting in the bottom left …

Member Avatar for Nicco
0
296
Member Avatar for dalk8978

This is a two part program that I i had someone help me do but I need it transfered to simple c (printf and scanf ). If someone could help that would be great. 1) //Header file section #include<iostream> #include<cctype> using namespace std; void main() { char character[6],ch; int count=0; …

Member Avatar for WaltP
0
183
Member Avatar for christ_gal12

Anyone know how to put timer on this code that the higher the level the lower the time given to solve the puzzle..this will run only in IE browser [CODE] <HEAD> <style> .bigcell { background-color:#aa9966; border:4px solid #aa9966; text-align:center; } .cell { width:40px; height:40px; font-family:Verdana, Arial; font-size:10pt; font-weight:bold; background-color:#996633; color:#ffff33; …

Member Avatar for christ_gal12
0
117
Member Avatar for jonspeidel

I've been searching a lot lately about binary and how a computer actually works so i figured assembly and the assembly board is the best place to start with my question. Generally, I want to know, how does a computer actually work? I understand the C++ that I've been actually …

Member Avatar for Goalatio
0
178
Member Avatar for gekkoswave

Hi in this program i want it to run for 720 loops but it keeps stoping short for some reason. There is no compilation error or runtime error. [CODE]import java.util.LinkedList; import java.util.Random; public class Simulation { private LinkedList<Customer> customerList; private int minutesThatHavePast; private int customerNumber; private int customerProcessTime; private int …

Member Avatar for jon.kiparsky
0
160
Member Avatar for hawita

i am trying to write a program to play the Battleship game;It is not a homework problem just a practice problem. The instructions are: set up a coordinate grid, select your own ships and locations while the computer selects its own; launch missiles by entering coordinates and accept hits from …

Member Avatar for Nicco
0
487
Member Avatar for ubi_ct83

Hi all, i'm developing a web-base system.user enter the data in mysql.my main system retrieve the data using jdbc.my problem is, i dont know how to make the system keep on checking the new data in database.i want it always check the mysql for any new data. i need your …

Member Avatar for ubi_ct83
0
105
Member Avatar for WildBamaBoy

This list box will contain the name of processes that are currently running. My function to update the list first checks to see if it does not contain the name of a process that is running, then adds the process if it needs to. Then it checks to see if …

Member Avatar for WildBamaBoy
0
162
Member Avatar for BobTheLob

Hello, I think I have the right location for this thread. I'm working on a C++ project where I need to create a GUI. I'm using wxWidgets, which is cross platform compatible. Now I know that Cocoa/Objective-C/not C++ is the option of choice for GUI programming on the Mac, but …

Member Avatar for daviddoria
0
338
Member Avatar for Suzie999

I;m not a great fan of title bars on windows forms, so I've removed it. However I'm looking for a way for the end user to drag it to wherever they choose. Is there a way in the .Net framework? All my searches resulted in importing user32.dll, but the majority …

Member Avatar for Suzie999
0
120
Member Avatar for zychos

Doing an assignment to create a struct that holds keywords and then is used with a binary search to counter the total keywords in a program. Below is my code and below it is the errors i get when I attempt to compile it. First question is what is wrong …

Member Avatar for zychos
0
465
Member Avatar for mashar

Hello all, I am currently a student doing an end-of-year software project - and I need some help. I am currently trying to return a 2D array from a function contained in a header file. The function is called from the main() and asks the user to input the location …

Member Avatar for mashar
0
142
Member Avatar for salty11

This is one part of my program, I need a loop that checks through the input(specifically the agent numbers) and then outputs the agent numbers that aren't in the input, from 1 to 20(because there should only be 20 agent). [CODE]void not_part() { ins.open(in_file); int i=0; int sum=0; cout<<"AGENTS WHO …

Member Avatar for WaltP
0
131
Member Avatar for Deepak.G

Hi I'm having a test suite in python and i would like to email the result through my company server. I used a similar code but the code seems to be hung while waiting for a response from server during socket.connect() call. I traced the code and found that it …

Member Avatar for rogerkrush
0
1K
Member Avatar for TechySafi

[CODE] $threadquery=mysql_query("SELECT * from threads where topic_id='$id'"); while($getthreadrows=mysql_fetch_row($threadquery)) { echo "<div class=singlepost>".$getthreadrows[2]."</div>"; }[/CODE] You can see Its fetching each comment into a div. But I need to do one additional thing too. Each comment may have some reply comment. How to get em like simple thread style as we see …

Member Avatar for TechySafi
0
89

The End.