64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for extemer

here is my code want to get records between two dates [CODE] $sql=mysql_query("SELECT * FROM `expense` WHERE `date` BETWEEN '2011-04-26' AND '2011-04-28'") or die(mysql_error()); echo $r=mysql_fetch_assoc($sql); [/CODE] i getting "Array" in output instead of the data please sort it out for me i am not getting it right

Member Avatar for jonnysmiths
0
139
Member Avatar for thijscream

hey people, i have the following problem, i'm setting up a webshop with over 2k items and every 6months the prices are changing(wines) so i was wondering how to import an xml file into a mysql database without having to go in phpmyadmin. this because i don't want the people …

Member Avatar for jonnysmiths
0
657
Member Avatar for johnt68

Hello I have a class with an sql statement to return a list of customers from a postcode search from a database. Then on my form I am attempting to return a sorted list of these customers into a list box for selection. Could someone please tell me how to …

Member Avatar for johnt68
0
209
Member Avatar for jmcginny5

I had posted this before. But I am more on the right track. The places that I need help with have something saying like "need something here" or "need to fix the way it is displaying" I can't figure it out. I also am not sure if the multiplication portion …

Member Avatar for TrustyTony
0
222
Member Avatar for turt2live

Hello, I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap. What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, …

Member Avatar for turt2live
0
209
Member Avatar for ivan3510

HI! I have a php page. There are music names (they are in array). I want to make a search script. This script must find what someone writes. But if user made mistake while writing, it must find similar music names. Is this possible, or I must use mysql?

Member Avatar for ivan3510
0
123
Member Avatar for cliffcc

When i do refresh in php, the data in iframe become blank. How i still get the search results in iframe after press "refresh" button? Thanks! In the iframe, it just like the search information php [CODE] <iframe width="650" height="400" frameborder="0" scrolling="yes" copyhistory="yes" name="Shopping" src="http://localhost/search.php" ></iframe> [/CODE]

Member Avatar for cliffcc
0
116
Member Avatar for stupid guy

how can i know what type of drivers are used..type1 type2 type3 type3 type 4 ..some guys in my class do that..by just looking at these two statements...help me ..;) [CODE]Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:bike","scott","tiger");[/CODE]

Member Avatar for cretaros
0
199
Member Avatar for turt2live

Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, …

Member Avatar for turt2live
0
279
Member Avatar for cafegeo

I have two functions. One is supposed to fill in an array, and the other takes that new array, finds the lowest number in that array, and prints the subscript. int getNumAccidents(int acc[], const int size); [B]Fills array num_acc[][/B] int findLowest(int acc[], const int size); [B]Takes num_acc[], finds lowest value …

Member Avatar for cafegeo
0
239
Member Avatar for emaduddeen

Hi Everyone, Can you reply with a tutorial and maybe a sample project that can be downloaded that shows how to update a database such as MS Access from DataAdapter commands in which changes are made in a DataGridView? For example, the DataAdapter contains 2 tables called FirstTable and the …

Member Avatar for docjwm
0
406
Member Avatar for chocl8drop

I am trying to write a C++ program that will list the perfect numbers between 1 and 1000. I also have to print the divisors to confirm the number is perfect. I started by trying to find the perfect numbers. Here is my code. Please help. #include <iostream> using std::cout; …

Member Avatar for sundas0068
0
633
Member Avatar for sergent

I started learning assembly today and I copied and pasted a program that displays hello world. I tried to modify it to use C function system("PAUSE") and I made this: [CODE][section .data] hello: db 'Hello, world!',10,0 pause: db 'PAUSE',10,0 [section .text] global _main extern _printf extern _system _main: push hello …

Member Avatar for sergent
0
692
Member Avatar for TheBadger

Hey bit stuck trying to make a Factory which creates multiple objects e.g. I want 10 rabbits, 6 foxes, 4 dogs + more animals instead of three for loops like this one for(int i = 0; i < foxCount; i++) { Fox fox = new Fox(); } Is there a …

Member Avatar for Mitja Bonca
0
161
Member Avatar for skatamatic

Does anyone here know what is wrong with my code here? I am trying to write a c# library for use in VB6. I think I have tried just about everything on google and still continue to get the message "ActiveX component can't create object". I am a total VB6 …

Member Avatar for skatamatic
0
479
Member Avatar for sms5660

I have to write this code for my homework assignment. I am in an introductory C++ class, VERY introductory. We had to write a blackjack game, but follow the book at the same time, I know there are many easier ways to do the things my code says, but we …

Member Avatar for sms5660
0
220
Member Avatar for feoperro

Hi, I'm currently looking at password hashing and from what I've read so far, it seems pretty pointless. I read this [URL="http://phpsec.org/articles/2005/password-hashing.html"]article[/URL] which recommends using MD5 or SHA-1, however I Googled for decrypters and found them witin the first 3 results on Google. I don't quite understand the purpose of …

Member Avatar for feoperro
0
303
Member Avatar for MrCapuchino

Hello, I have a xsl file Here I have the HTML code to display a webpage, inside i have a table that fills the rows with data from an XML file. I created a link that has the href attribute filled with data from an element in the XML file. …

Member Avatar for MrCapuchino
0
132
Member Avatar for abhigame

I'm using mysql 5.5.9 I used create database query to create a new database but this new database is not coming in mysql.db table can anyone tell me the reason y and even how to get the database in that table.

Member Avatar for abhigame
0
156
Member Avatar for jmcginny5

Here is the prompt of what I have to do: Overview In this assignment, implement a class called Complex, which will be used to represent a complex number. A complex number is one that is comprised of a real part and an imaginary part. It is typically represented in the …

Member Avatar for jmcginny5
0
2K
Member Avatar for TheBadger

Hey I have a button that when clicked add some pictureboxes and labels on a panel named "hold" Now when I change some values and reclick this button I need the old controls to be removed before drawing new ones. So I added this code at the start of the …

Member Avatar for Mitja Bonca
0
131
Member Avatar for darkelflemurian

Hello everyone I have the following situation with the background worker and hope someone can help me with this. 1.- i have a form and in that form I have the background worker. the methods doWork, Progresschanged, Runworklercompleted are in the form. 2.- when i star doWork, it executes a …

Member Avatar for darkelflemurian
0
162
Member Avatar for muteki

Hi, first of all I'm new at the forum I hope to help and be helped ;-). I'm trying to display the values inside an ArrayList on a JSP. I execute a PreparedStatement and I put all the values inside an ArrayList<HashMap<String, Object>>. Once, I have all the values inside …

Member Avatar for khamsinh
0
4K
Member Avatar for Majestics

There is a database program for making invoice , its written in vb.net, there is no save option in that program, the programmer who designed it is not availble now... I want to add save button, the solution i have thought is to take the handle of the application and …

Member Avatar for mKorbel
0
189
Member Avatar for Tarkenfire

Okay, I'm working on a project for class, and...I can't seem to get...subtraction to work right with regards to an object in a class, let me just post the code, here's the block in the main file: [CODE]class KeyHandler extends KeyAdapter { @Override public void keyPressed(KeyEvent e) { char character …

Member Avatar for Tarkenfire
0
114
Member Avatar for jemz

hello... can you help me please, i make a program GUI and my problem is that how can i change the GUI or to remove those minimize,restore,close on top at the right side of the GUI,is it possible?.Please help me thank you in advance hoping for your positive response...

Member Avatar for Majestics
0
246
Member Avatar for denkfix

Hi, I use the stl features to deal with string conversions, especially facets. Now, I am faced with the task to lower a string except its first letter. Please note that I am dealing with multi-byte characters and so I cannot simply replace the first character of the string with …

Member Avatar for denkfix
0
223
Member Avatar for zebnoon

hi everybody! I want to create a complete database (Tables,Fields name etc) in MS Access via vb6 database object and using SQL queries at run time this database will create when first time project load. may i have to create function in Module and where i will need i will …

Member Avatar for zebnoon
0
110
Member Avatar for judithSampathwa

hi i get an error saying cannot login to the ms sql server, i did all the things restarted the server, and changed the authentication mode to mixed mode nothing doesen't work, i created an another login with mixed mode authenitication the same error saying login falied to user sa …

Member Avatar for judithSampathwa
0
122
Member Avatar for jimmyo88

Hello everyone. I am trying to write a quiz for a site. Questions are in multiple choice, true/false, fill in the blank etc. The example questions i have can be seen below. I'm trying to plan how am I going to code this. I was thinking of having a table …

Member Avatar for diafol
0
447
Member Avatar for samueal

Hi I have a access database that contains foreign characters(Hebrew language). How can i search the values in the column by using c#? This is my code: SELECT * FROM "table name" WHERE column_name LIKE '%שגל%' I'm getting this error: Syntax Error in SQl statement Can anyone please afford your …

Member Avatar for samueal
0
112
Member Avatar for valter

I am finding that vs2010 seems to have problems playing videos. I will be very grateful if anyone can point me in the right direction. I can play avi etc on Windows Media Player ok. But I need to play mov files in my app. I have tried quicktime, but …

Member Avatar for valter
0
528
Member Avatar for rpv_sen

Hi Friends I have pasted the code below which i was used in my project. But i am getting mysql_fetch_array() error. For your more information i have attached the screen shot of the error Pls give me solution [CODE]<?php // Inialize session session_start(); include("../config.php"); // Check, if username session is …

Member Avatar for rpv_sen
0
370
Member Avatar for jmcginny5

I have this code written. One of the problems that I am having is in "Test 6". It should be totaling to $1.11 but it is totaling to $1.8 because it is switching the 6 and 3 and I cant figure out why. Another problem is that for some of …

0
91
Member Avatar for Behseini

Hi guys, Can you please let me know how I can assign the result of a simple SQL query into a string? Let's say I have a query like: [CODE] string cmd = "Select FName From Emp Where EmpID = 20"); OracleCommand oc = new OracleCommand(cmd, oraConnection); [/CODE] As you …

Member Avatar for Mitja Bonca
0
236
Member Avatar for zachattack05

I haven't had enough coffee this morning yet and for some reason this doesn't look right. I have two objects that I need to convert into one byte array. One object is already a byte array, and the other is a Guid. Given that sockId is a Guid and commandData …

Member Avatar for zachattack05
0
13K
Member Avatar for komyg

Hi, I am developing a REST WCF Web Service using the webHttpBinding. This service is supposed to receive a parameter through HTTP POST and return a byte array (byte[]). However whenever I call the service I get the following respose: [CODE=xml] <base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">AQEBAAEAFFBBAPQ=</base64Binary> [/CODE] Is there a way to configure …

Member Avatar for komyg
0
430
Member Avatar for eman 22

How can i get th execution time ?? I tried to use library <time.h> [CODE] clock_t tStart = clock(); //put here my code double executionTime=(clock() - tStart)/CLOCKS_PER_SEC; [/CODE] here the excution time always zero. so what's the error here??

Member Avatar for eman 22
0
190
Member Avatar for burntout

this may seem stupid, but i wanted to understand a few equations ive incountered. given these declarations of a two dimensional integer [code] Dim table As Integer(,) = New Integer(2,4) {{2,3,5,4,0},{4,3,1,2,6},{1,3,0,5,2}} Dim intA as integer = 1 Dim intB as integer = 4 [/code] figure out the value of int …

Member Avatar for Tarkenfire
0
199
Member Avatar for lee.j.baxter

Hi folks, Okay, here's the scenario; I've got 2 DLLs, "A.dll" and "B.dll", that I'm referencing within my VS2010 C# project, "ProjectC". "B.dll" also contains a reference to "A.dll". "A.dll" contains a class, [ICODE]ClassA[/ICODE], which contains an automatic static property called [ICODE]ClassA.StaticProperty[/ICODE]. Now here's where I'm a bit uncertain as …

Member Avatar for lee.j.baxter
0
171
Member Avatar for Darion

Well i just bought "python for the absolute begginer" and title says it all. The task at the end of the chapter wants me to print "Game over" and then write something like '\n\nPress the enter key to exit.' which i causes the program with double click however this is …

Member Avatar for Darion
0
371
Member Avatar for kay19

Welp, another problem arise albeit small. Just with Decrementing hours, seconds, and minutes. I seem not get the final results right at all. Keep tinkering with it, and still not getting it. This is my answer 23:00:00 23:00:00 23:00:00. First is right, but the 2nd and 3rd should be 22:58:00 …

Member Avatar for kay19
0
750
Member Avatar for pro_learner

In many job vacancies about software engineers,i have seen programming with PHP is a qualification.But as i know PHP is a server side scripting language.Therefore i want to know why they are looking about PHP as other programming languages like c,c++,java & etc.Please explain me......

Member Avatar for pro_learner
0
93
Member Avatar for sciprog1

Hello Members, I am beginning to work with the JGrapht library. The following is described as the syntax for creating a weighted, directed graph: [CODE]SimpleDirectedWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleDirectedWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class); [/CODE] What is the meaning of including " DefaultWeightedEdge.class" in the above line? I will be grateful for any …

Member Avatar for sciprog1
0
218
Member Avatar for jeffpro

Hello again guys, I've got kind of a noob question. I have a wchar[260] and I need to compare it with a char* and im getting the error error C2664: '_stricmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *' Thanks!

Member Avatar for Narue
0
120
Member Avatar for jrp370

i have the code for a simple mail transfer protocol but when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate, ive attached the code and would love it if someone could take a look and …

Member Avatar for jrp370
0
119
Member Avatar for tstory28

I have been working on a pythagorean theorem calculator and am actually stuck on the final bit of code. What I am trying to do is check the values (integers) inside a listbox, remove duplicate number (both values), and input one of the values into a textbox. Here is an …

Member Avatar for tstory28
0
1K
Member Avatar for jemz

Hello, Can you help me please im trying to use the listview but i found difficulties on it.I don't know how to display my column header in my listview.Please help me.Thank you in advance hoping for your positive response. Here is my code. [CODE] Option Explicit Private Sub Form_Load() ConnectToDB …

Member Avatar for jemz
0
3K
Member Avatar for MrCapuchino

Hi, I have a problem, when I test my XSL file from Dreamweaver it opens and transforms the XML document into a temporal HTML file. But if I create a Hyperlink in another web page that links to the file.xls it does not transforms the XML document it just shows …

Member Avatar for MrCapuchino
0
152
Member Avatar for MrCapuchino

Hello, I have two Javascript functions to set and retrieve a cookie: [code] function setCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function getCookie(name) { var nameEQ = name + "="; …

Member Avatar for MrCapuchino
0
11K

The End.