64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jrotunda85

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 …

Member Avatar for Gears.of.Codes
0
371
Member Avatar for Martin C++

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 …

Member Avatar for Martin C++
0
248
Member Avatar for JoeD1

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 …

Member Avatar for JamesCherrill
0
185
Member Avatar for clouds_n_things

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 …

Member Avatar for clouds_n_things
1
314
Member Avatar for Fjdd

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

Member Avatar for Fjdd
0
4K
Member Avatar for phorce

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 # # …

Member Avatar for mike_2000_17
0
787
Member Avatar for jandanielsaclolo

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"... …

Member Avatar for Gonbe
0
228
Member Avatar for Sebastian_1

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for jandanielsaclolo

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> …

Member Avatar for jandanielsaclolo
0
257
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for diafol
0
300
Member Avatar for yankeefan24

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 …

Member Avatar for theHop
0
229
Member Avatar for anglaissam

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; …

Member Avatar for anglaissam
0
190
Member Avatar for yvrej17_1

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 …

Member Avatar for tinstaafl
0
2K
Member Avatar for nchy13

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 …

Member Avatar for AndrisP
0
343
Member Avatar for Lp_baez

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 …

Member Avatar for Unimportant
0
298
Member Avatar for cmgdev

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: …

Member Avatar for JorgeM
0
861
Member Avatar for Sevyt

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 …

Member Avatar for Sevyt
0
207
Member Avatar for christinetom

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. …

Member Avatar for christinetom
0
149
Member Avatar for Eagle.Avik

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 …

Member Avatar for Eagle.Avik
0
437
Member Avatar for KingGold171

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 …

Member Avatar for diafol
0
333
Member Avatar for somjit{}

[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...

Member Avatar for JamesCherrill
0
336
Member Avatar for spyros.lois

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" …

Member Avatar for mmcdonald
-1
174
Member Avatar for Mr.M

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 …

Member Avatar for tinstaafl
0
223
Member Avatar for ktsangop

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 …

Member Avatar for ktsangop
0
6K
Member Avatar for nchy13

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 …

Member Avatar for NathanOliver
0
961
Member Avatar for Tinnin

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?

Member Avatar for cereal
0
926
Member Avatar for Begginnerdev

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 …

Member Avatar for Begginnerdev
0
272
Member Avatar for Stuugie

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 …

Member Avatar for Stuugie
0
161
Member Avatar for Cameronsmith63

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; …

Member Avatar for Ketsuekiame
0
184
Member Avatar for veledrom

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 …

Member Avatar for crazy_chanaka
0
2K
Member Avatar for Lp_baez

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' …

Member Avatar for David W
0
384
Member Avatar for zachabesh

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.

Member Avatar for zarfishan
0
5K
Member Avatar for Lp_baez

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 …

Member Avatar for David W
0
2K
Member Avatar for pars99
Member Avatar for rubberman
0
252
Member Avatar for dilita.mido

(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 …

0
180
Member Avatar for thearts.beach

<?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 …

Member Avatar for thearts.beach
0
207
Member Avatar for jaai

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 …

Member Avatar for darprogra
0
3K
Member Avatar for revellution

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 …

Member Avatar for jordanrkaufman
0
460
Member Avatar for dilita.mido

[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, …

Member Avatar for Gribouillis
-2
246
Member Avatar for kiail

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 …

Member Avatar for kiail
0
227
Member Avatar for kiail

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 …

Member Avatar for tinstaafl
0
197
Member Avatar for LennieKuah

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 …

Member Avatar for Reverend Jim
0
421
Member Avatar for srikanth2321

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 …

Member Avatar for mKorbel
0
150
Member Avatar for srikanth2321

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 …

Member Avatar for srikanth2321
0
172
Member Avatar for robgeek

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 …

Member Avatar for JamesCherrill
0
278
Member Avatar for thearts.beach

`$data= "echo * from table1 where id=$_post[ID] "` can anyone see why this line duz not compute please ?

Member Avatar for thearts.beach
0
600
Member Avatar for murali2489

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 …

Member Avatar for JamesCherrill
0
260
Member Avatar for nchy13

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 …

Member Avatar for deceptikon
0
167
Member Avatar for Fangling

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 …

Member Avatar for Fangling
0
209
Member Avatar for DarrelMan

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(); …

Member Avatar for JamesCherrill
0
304

The End.