199,114 Archived Topics
Remove Filter ![]() | |
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); } } | |
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 … | |
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 | |
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 | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
hi i want to create swing application that has google map i searched on net but i hanot got any useful resource | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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; } … | |
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. | |
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, … | |
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 … | |
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 … | |
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 … | |
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. | |
hi i want to sql database backup through the vb.net code. | |
how do I read a website's source code line by line and store it as string for modification?? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | [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 … ![]() |
The End.