199,114 Archived Topics
Remove Filter ![]() | |
Can not get the following code to delete Jack.... What is wrong with the code? <?php ===QueryString=== delete.php?q=169|170|171| $arr = explode('|', $q); for ($i = 0; $i < count($arr); $i++) { $query .= "DELETE FROM aCar WHERE aID = '".$arr[i]."'"; $result =mysql_query($query); } ?> Thanks in Advance! | |
Hello, for a University assignment I am attempting to use a brute force search to generate all possible combinations of a list of numbers. This is only a small part of what I must do. I realise that a Brute Force Search would be extremely computationally expensive but it is … | |
SO, I'm playing around with an idea. I'm trying to convert primitives to and from a char array for file logging. I've got all the details worked out, but I don't understand something.. Take the following case, for example: [CODE]public static byte[] ToByta (short data) { return new byte[]{ (byte)(data … | |
my administrator at school blocked commands for command prompt so I can't use system pause or system color commands....anyone know a way around this? | |
How can I write and call on arrays in python? I want to be able to do this.... [QUOTE]nameofarray1 = (1, 2, 1, 5, 6, 3, 2, 6, 8, 9), (4, 4, 3, 5, 7, 5, 5, 6, 8, 1), ....... and so on[/QUOTE] and then later read from it … | |
hi everyone!!! im creating an online rts game (like rome total war) and wanted to know if there are any online tutorials explaining how to create the game, models, world, interface and how to put it on the internet. If anyone can help me out i would be very grateful. … | |
help please, i have to generate a funciton which generates the squareroot of any real number! I don't know what else I can do :( [code] #include <stdio.h> #include <math.h> double squareroot(double number) { double x[20]; int count,count2; x[0] = 1; for (count = 0;count <= 20;count++) { while ((abs(x[(count2)-1]) … | |
Hi guys, Ok so once again, I have pretty much the whole code written, but something is not working right! When I run it and select "add record", it works up until the user inputs price, then it just prints a ton of numbers and basically crashes. Please help me … | |
Hello, I'm new to this site and programming in general, so bear with me :$ . I've been downloading source code like crazy to reference, however I have yet to find a single project file for large projects (such as, for example, Half Life 2) that SHOULD compile correctly. Surprisingly … | |
Does one exist? Like the Glade Interface Designer and wxGlade, only to build Tkinker UIs. This would need to be run on Linux/UNIX. | |
i have a homework assignment asking me to pick the highest and lowest number out of a group of 4 numbers? How would i set that up? | |
Hi guys I'm trying to do a while loop since this afternoon for the code below but was unsuccessful. I'm reading from a file A family name and the number then the names belong to the family which will be like this JAMES SMITH MARY SMITH JOHN SMITH ROBERT JOHNSON … | |
I am writing this to a .txt file. The problem here is that it doesn´t compile when I write "\". Why does this happening because this is just a string ? I really need to get this "\" out to the file. Any idéas on this ? [code] ofstream out; … | |
I was thinking that when I have an advanced knowledge of c++, I would try and make a 1st person shooter. I was thinking like the next Counter Strike type of thing (in my dreams). But is this an ambitious thing to do? | |
Hi, we plan to set up a company in india to write game programme. anyone can help/advise how to go about. | |
Hey guys, I'm taking a beginner's VB/.NET class. Today we started working on a project involving a simple login form, e.g.: [code]Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click If txtUsername.Text.ToUpper <> "JOHNDOE" Then MessageBox.Show("Error: Username doesn't exist.") Exit Sub End If If … | |
is it possible for me to call a static method if all I know is the class? | |
please see my code : there are something wrong?how i can check if stack is empty?? NB : isi = content of stack atas = top of stack tumpukan is stack [CODE]function POP (var T : Tumpukan) : integer; begin POP := T.Isi[T.Atas]; T.Atas := dec[T.Atas]; end;[/CODE] anyhelp will be … | |
Hi all, ain't been here in a while, busy busy busy with college... I have an assignment on threads for Operating Systems, I can't actually see how it relates to OS but it is thread based, I haven't worked with threads before, but I have it finished to the best … | |
Can someone help me figure this one out, in an efficient manner? Someone will be submitting text, in huge blocks, and I wish to have a function go through the text and search for either pre-defined tags or for http:// or www. and create a link out of it. Accepted … | |
When you are writing a whilestatment like this you have ',' as a delimiter. What I wonder is if it is possible to have more than only one delimiter as I also want at the same time use " " and ")". [I](a blank space and a ")" )[/I] Is … | |
Would someone please help me learn how to create a 2d map using python with arrays or something ? I have been trying to find out for days and haven't found anything. I found this on the internet... [QUOTE] self.map = ( "::::::XXXXXXXXXXXXXX", "::::::..::::XX::::::", "::Z:+:XX::::..::M:::", "::::::XXX.XXXX::::::", "XXX.XXXXX.XXXXXX.XXX", "XXX.XXX/:::::XXX....", "XXX.XXX::&:::XXX.XXX", "XXX....::::M:XXX.XXX", … | |
Does anyone know how to create queryable collections in VB without using LINQ? I am working on creating a dynamic questionnaire system and need some help. Here's some background: The system needs to support parent/child questionnaires. I have the database model created, as well as a query that returns all … | |
Hi, I'm trying to build a simple python program that will total how many hours a worker has worked based on a start time and end time entry but the problem is this "simple" problem is becoming very complicated and i'm affraid i'm way off base and digging deeper and … | |
I'm looking into creating a Access database for marking my students and so they can get there marks online. The online part is much later mind you but that is my goal. I need help in the structure of my tables, quaries and reports. I've been using access for a … | |
Help, I have a web based form containg values typed in by the user. The first value is called noItems, which is outside the form. The form contains a persons name, the number of items,noSub, thay have submitted and their final grade. I need to use noItems and noSub to … | |
Hi There, I am trying to get the information that i have put in the database to be displayed on the screen but i am getting this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\capat\result.php on line 44 The error doesn't seem to go … | |
Hi, I am pretty new with assembly so please bear with me if this question sounds stupid :) I am teaching myself OS development from resources of the web. I came across this tutorial [URL="http://osdever.net/bkerndev/Docs/gdt.htm"]here[/URL] which talks about setting up GDT. I don't really get it when it is to … | |
Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble. The coding below works, it just doesn't play the whole song. It plays around 10 seconds of it, then stops. Does anyone have any suggestions? I … | |
Greetings everyone... :) I'm new to the DaniWeb community & it looks like a great place to learn from others. As a programmer with very little experience, other than textbooks & class, I'm looking for help in learning to code real world problems effectively. I'm currently reading: "Teach Yourself Java … | |
I am trying to read lines from a .txt file and put them to a vector like this but when I run the program, the computer get stuck. The file is only about 50 lines. I wonder what could be wrong with this code. [code] ifstream File("C:\\Gli\\temp\\File1.txt"); std::vector<string> For; std::string … | |
Okay, i've been working on this assignment for hours. I'm a total python newb but i've done pretty well so far. I'm stumped now though. I was hoping someone could point me in the right direction as to why i'm getting the error message below. The program is supposed to … | |
Just for the heck of it I'm building a graphic editor, mainly to see how far I can take it and how much I can learn as I go. I'm having a problem with Image.Save. First I have an MDI parent form from which graphic files can be opened. After … | |
I had my site working which require mysql database... so now im trying to host that site here at home... my site comes up but now on the top of the main site 3 errors come up... Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'milatcom_clipsha'@'localhost' (using password: YES) in /www/www.mysitesname.com/include/adodb/drivers/adodb-mysql.inc.php … | |
I'm trying to create a function that uses loops to determine the roots of an equation using the Newton-Raphson method. I have my Newton function set up to take the input from my main prog, calculate the roots, and then return them back into the main prog. Somewhere along the … | |
hello I have an error with template class and I can not understand what is the problem? the code illustrate the arrangement of many of books by its publishers' names and if the books have same publisher arrange them by the title of the book . [COLOR="Red"]the error is instantiated … | |
I'm working on the conceptual phase of modeling a database for a company right now. I have two considerations: 1) This database will obviously be integrated into a web application, but more importantly it will be a user/pass based system with rights and privileges. 2) I trying to model a … | |
Hello all, I am having a bit of a problem with a part of my assignment I hope you can help me out with. I created an abstract baseclass called Geometry and 3 derived classes called Box, Sphere, and Cylinder. I am having a few problems though and I hope … | |
Hello List! I'm having a problem getting a line break/feed on a page...I'm passing parameters from one page to another (this particular one is being passed to a textarea), and would like to pass them with page breaks between them... Here's my current code [code] <script language="javascript"> openIssuesWindoid('../../GUtilities/IssueCreator/IssueCreator.asp?name=<%=session("userFullName")%>&email=<%=session("userEmail")%>&summary=Station Type Change … | |
Hello all. This is my first post. I'm a software engineer with a general knowledge of SQL, but am no where close to an expert, let alone an intermediate. My current issue is I'm working on a query which combines 2 tables: TableA UniqueID Auto Increment ProjectName String <Extra Data> … | |
I have a form text field called "field_0", and javascript code: [ICODE] <script language="javascript"> function test() { var a=document.form1.field_0.value; alert (a); } </script> <form name=form1 ....> <input type=text name=field_0> <input type=text name=field_1> <....onclick='javascript: test();'> </form> [/ICODE] if I run this, it pops up correct message box with the "field_0" value. … | |
I'm making a "simple" two-form Windows app. In the first form, when a button is hit, I'm trying to instantiate the second form and pass a variable to it. That variable is valid (and a watch indicates no changes) until I get into the button_click routine, then suddenly it's null! … | |
Well another problem, sorry for constantly asking. My program is coming along well i think, it creates the file writes the data to it but it crashes when i try to view the information. i'm not sure if its an error with my loaddata() function or my viewcharacter() function [code=c] … | |
HOW CAN I MAKE A SCORING PROGRAM WHERE IN WHEN A GAME IS PLAYED THERE IS A PART WHERE THE TOP 3 PLAYERS WILL BE DISPLAYED, FOR EXAMPLE WHEN A PROGRAM IS RUNNING 3 PLAYERS WILL PLAY ONE AFTER ANOTHER, SO THE SCORES WILL BE STORED IN AN ARRAY OR … | |
Hi, I have a two dimensional vector and I am trying to access all the elements of one row at a time. I am getting a syntax error. Following is my code : std::vector<int> row; std::vector<std::vector<int> > event(5,row); for(lv = 0; lv < 5; lv++) { for(int gno=event[lv].begin; gno != … | |
PLEASE I NEED TO CREATE A TABLE. BUT ITS STRUCTURE IS COMPLEX.E.G I WANT TO CREATE A TABLE THAT KEEPS RECORD OF DIFFERENT COMPUTER SYSTEM EACH HAVING TYPE(DESKTOP,LAPTOP), MAKE(IBM,HP,COMPAQETC) AND MODEL(NX9030, Z5040 ETC) ALL THIS ATTRIBUTES ARE LINKED TO EACH OTHER. HOW CAN I STRUCTUR THE TABLE? THANK YOU. | |
Greetings, I have 2 JSP files and a bean which are collectively used to delete a record from an access database. They run without errors, however the only value from the form that is required, that is passed as a parameter to the bean is Null (debugging showed value is … | |
I'm dealing with queries that manages a lot of data consolidation and I'm having to repeat large blocks of code to get the desired result. I'm wondering if that is any way to make it simple. My queries looks like this: [CODE] SELECT (A + B) AS C, (D + … | |
Hi ... Can u plzz help me .. i want to put maximum validation for each control on my form.. it contain a textbox(input only alphabets), a combo box(display only Mr,Mrs, Miss), a datagrid.. and also how do i put a tool tip text on a textbox.. Note for the … | |
Hello, I am new to this and have run into a small problem. I am using the Ajax toolkit with VS 2005 to fill some drop downs through a web service and it works great. All of the cascading drop downs work correctly. The only problem I have is I … |
The End.