64,152 Solved Topics
Remove Filter ![]() | |
So I'm getting this error message from MYSQL when I load this page. The first message is what's it displaying on the PHP code, the 2nd message is the result of mysql_error(). [ICODE](1) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in [I][redacted][/I] on line 19 (2) You … | |
Hello I need to filter data from database. Use selects the data he need from selectboxes and inputs. Not all inputs must be filled. Those that arent have value of -1. I have put together a SQL statement that should work. Probably would work without the prepare but I need … | |
Hi, I programmed this code to solve the equation: x/2! + x^n-1/n! where n is the size of series The program functions, but appears to be giving me the incorrect result. For example if I enter 3 for n, and 2 for x I am expecting 1.67 as the result … | |
So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python … | |
![]() | I use visual c++ compiler 2008 express edition, because express edition doesn't support resources is it possible to make a win32 dialog box in express edition, if so how might I create one? Thank you for reading ![]() |
Hello, I am having a few problems when trying to execute the a Makefile that will *hopefully* create a static library that I can use for future use. Here is my code below: #----------------------------------------------------------------------------- # Usage of make file #----------------------------------------------------------------------------- # Clean operation: # make -f MakeClient clean # # … | |
Hi there, I'm just new to programming and C++ ... I have trouble with my code At first I am using "int" for variables but then I realize that i need a much larger range of numbers and also support for decimal operations so I change all "int" to "float"... … | |
I have not programed or written code in over 10 years when I was in College. I was / am a Networks Administrator. How, ever I find my self needing a custom interface for a DB system we recently ackwired where I work. I have been doing it in Visual … | |
Hi there, I'm just new to programming and C++ ... I have trouble with my code At first I am using "int" for variables but then I realize that i need a much larger range of numbers and also support for decimal operations... My First Code: #include <stdio.h> #include <conio.h> … | |
Hi guys, I don't even know where to start, the ideea is that I want to develope an API that responds with certain data, but I don't have a clue for what to look. The ideea is that there is a panel like google analytics but with no stats, but … ![]() | |
I need to calculate the number on selections. Im using the value as reference I dont need my function to add the values I need to add the number of fully successful, exceptional, or need imporvements. Here is a code I have but it calculating the total based on the … | |
Hi, i have 2 pieces of code that i created, both of which do exactly the same thing and i am trying to benchmark them to see which is generally more efficient. As such i used the code suggested by perldoc in the following format: use Benchmark; $t0 = Benchmark->new; … | |
Hi, I just need some help here.. I want to align the text output in Pole Customer Display like Shoes...........£20.00 Total...........£20.00 but the of total is not displaying the amount and the euro symbol is display "?" Can you help me guys? Thanx a lot in advance Below is my … | |
This code only print characters until char value is 0 but surprisingly it output characters only upto first blank space. I checked their ASCII values and surprisingly ASCII value of space(' ') character was output by program as 0. I couldn't get it. Any help is appreciated. #include <iostream> #include … | |
I keep getting this error on a sample that a c++ book provides. " **error C2660: 'std::vector<_Ty>::empty' : function does not take 1 arguments 1> with 1> [ 1> _Ty=std::string 1> ** ] " I have some suspicious what can be causing the error but I am not sure. the … | |
Please help. I can not figure out how to add a simple link to an image when the image is called through PHP. I have tried making it work a number of ways but I am only intermediate in HTML and still trying to learn PHP basics. The code is: … | |
I got a small problem with getting a filter to work for my database. When i test them seperatly it works but when i all add them together they stop working. This is the code i use currently. All of the fields in the database are text, except for the … | |
Hi everyone.. Would anyone know where I could find a good explanation on 'Pipes' in programming. I'm trying to understand how I might go about using input into a GUI application to display output in a dos console. As I understand it, the concept of pipes comes into this somehow. … | |
hi i am new to php and mysql, i am experimenting with a script for saving data to mysql database. and fetch the data on other page, i managed to get both of them without any trouble. But Here is the one problem. I added a additional input function to … | |
Hello fellow PHP trained monkeys :D I am trying to find a way to have a basic CMS management system but to be dynmic on one PHP page only, the most part works for the first time of selecting the username, and then from either add or minus buton. The … ![]() | |
[This](http://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html) is the example i was looking at. The docs say that trying to access the bowBack() method is creating the deadlock , but im new to threads , and i really dont understand why this is happening. In need of some guidance here... | |
hello i try this form and script _____________________________________________________ <form action="insert.php" method="REQUEST">backend - insert new record<br> id: <input type="number" name="id"><br> manufacturer: <input type="text" name="manufacturer"><br> transferrate: <input type="text" name="transferrate"><br> cache: <input type="text" name="cache"><br> size: <input type="text" name="size"><br> RPM: <input type="text" name="RPM"><br> use: <input type="text" name="use"><br> price: <input type="text" name="price"><br> seller: <input type="text" … | |
Hi DW I've created a program in java and now because I'm also new in java but I know better visual Basic i couldn't complete the program the way I wanted because there are features I find it hard to do so I just completed the main program on java … | |
Hello everyone! I would like your help regarding this: I have a tuple vector which i must iterate through, and accessing the vector data to decide wether to erase or not the current vector element. My code : typedef tuple <int, CString, int, int> pc_data; vector <pc_data> pc_vec; //Assume that … | |
I intend to perform in-place modification of std::string with the help of a modifier function. In this regard, I looked up on internet and found that pass by pointer method is not recommended. I have few queries in this regard. * If I pass a std::string to the function as … | |
Just a curiosity really. I can't find a reason for it anywhere. Why doesn't php mail() mailto allow you to use a semicolon to separate the email addresses? | |
Hello my fellow Daniwebies! I have a curious, possibly unique, and odd problem for everyone! We support an ASP.NET application which is using VB.NET for code behind. We use LINQ to SQL and classed object for the data retreival. I have an object called...myObject which is being deleted: Public Shared … | |
Hi All, I have an SSIS question regarding looping through CSV files with the Foreach Loop Container. What I have: 1. A string variable named fName - Global 2. A Foreach Loop Container 2.1 User::fName mapped to the loop container with an index of 0 3. A Data Flow Task … | |
I keep getting this error: The process cannot access the file 'D:\Gasper\Netcool\GA000162.200' because it is being used by another process. And I have tried everything to safely delete this file. Everything. What Am i doing wrong? using System; using System.Net; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; … | |
Hi, I got "Fatal error: Call to undefined function printer_open() in C:\wamp\www\TEST\printer\index.php on line 3" when I run code below. [CODE]<?php $printer = "\\\\lukaka\\hp LaserJet 1320"; if($ph = printer_open($printer)) { // Get file contents $fh = fopen("testfile.txt", "rb"); $content = fread($fh, filesize("testfile.txt")); fclose($fh); // Set print mode to RAW and … | |
I'm trying to create a loop if the string wordEasy contains more than 5 letters. I am using the 'while' and 'for' but none seem to work. I am hopping if you guys would be kind enough to help me figure out what I'm doing wrong. Here is the 'for' … | |
There seems to be a variety of ways to do this on the net, does anybody have a tested solution? Suggestions to look at various modules and such appreciated. I don't need the full code. | |
Hi everybody, I’m having trouble trying to figure out how to create a loop when the ‘difficulty’ takes a value that is not an integer. I want a player to get the ‘default’ statement presented in the switch . The ‘default’ statement seems to make an appearance but it will … | |
Can someone please explain what the <atomic> library does? Or what it's for? | |
(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, earn … | |
<?php $mysqli = mysqli_init(); $mysqli->real_connect("mysq.x.com","me","wordup","inthekitchin"); if ($mysqli->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } $res = $mysqli->query("UPDATE plate1 SET potatoes =('$_POST[potatoes]') WHERE id =('$_POST[id]')"); $row = $res->fetch_assoc(); ?> returnes error `Fatal error: Call to a member function fetch_assoc() on a non-object … | |
hi could anyone help me come out of this problem.. I've my project with one mdi and three child forms.. when i run the mdi child forms vb6 stops working and it shows the following: Problem signature: Problem Event Name: APPCRASH Application Name: vb6.exe Application Version: 6.0.81.76 Application Timestamp: 3592011f … | |
![]() | Hi everyone! Sorry for the novel but I don't want to waste anyone's time by not explaining what I have already tried before they try it too... So I just installed Blender which requires Python 2.6 but I'm learning Python 3.1 at the moment. I've never programmed before but I … |
[Click Here](http://www.)(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, … | |
Okay, I've made a save file dialog, and I've been reading but I personally haven't found much useful information that I understand in creating a save button. I have this as a SaveAs. I'm guessing the save button event is probably very very close to this, but with or without … | |
Hello, I'm here to ask a question about listboxes/textboxes. I have two forms. The main form has a listbox with some buttons on it. Two buttons open a 2nd form, if I open the 2nd form using the Open button, the textboxes should be blank. I have this part figured … | |
Hi Friends, I need your help. Please help me. I am trying to retrieve data from Excel Spreadsheet to fill DataGridView for display prior to updating SQL SERVER using DataGridView Row individually. But the coding is not working as this is the first time I done the coding. this code … | |
Hi, I have a "Save" button with the following code Save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { k = k+1; System.out.println(k); } }); somehow, it is executing multiple times with single click on the button (k values is 4 at times). I googled it but couldn't find some helpful … | |
Hi, I have a split container in my frame where the right container has a Jtable and left is filled with different collapse panels displaying detailed data from different parts of the table. If the user clicks on a column then a collapse panel expands and display the information If … | |
Hi guys, I am confused on how can I access a same class reference object , that is created in class ReadInoiceFile, and be accessed in ReadErrorFile. To be more specific: I have a class called Transaction And then I have a class called ReadInvoiceFile. And finally I have a … | |
`$data= "echo * from table1 where id=$_post[ID] "` can anyone see why this line duz not compute please ? | |
Hi All, I have written an application for traffic Study which takes traffic load for seven days, inputting traffic load during morning,lunch,evening and night for each day. The output im getting is this Morning Lunch Evening Night Average Day 0 : 5 5 5 5 5 Day 1 : 5 … | |
This is a program to reverse the string in place. I have used pass by pointer. Interestingly I have changed the pointer in reverse function which is notable by seeing its output but the pointer which was passed in main function still points to the start of string. This is … | |
Hi, i have a database with the following details: SCHOOL CAMPUS ADMINNO MODULECODE MODULEGRP SEG AMK 100810R EG3932 EG3932-G1 SEG AMK 100810R EG3933 EG3933-G1 SEG AMK 101427Y EG3901 EG3901-G1 SEG AMK 101427Y EG3902 EG3902-G1 SEG AMK 101427Y EGS650 EGS650-G1 SEG AMK 103852S EG3901 EG3901-G1 SEG AMK 103852S EG3904 EG3904-G1 now … | |
I get an unknown source error when I try to use the Scanner class. fabric is the name of my Scanner ojbect. while(fabric.hasNext()) { fabricID[fabricCounter] = fabric.nextInt(); name[fabricCounter] = fabric.next(); description[fabricCounter] = fabric.next(); price[fabricCounter] = fabric.nextDouble(); qty[fabricCounter] = fabric.nextInt(); vendor[fabricCounter] = fabric.next(); fabricCounter++; System.out.println("made it down here"); }//end while fabric.close(); … |
The End.