64,152 Solved Topics
Remove Filter ![]() | |
Hi everyone, I am trying figure out is there a "more proper" way to show the multiple lowest values in an array. My array has 2 of the values that are lowest among the 8 values. I would like to know is there a way to show both of them … | |
hi all; I have a problem in diplaying the city name. pleas cheack the line of this code. [QUOTE][CODE]$result=city::getDisplayName('$id'); echo $result;[/CODE][/QUOTE] | |
in my [B]jsp [/B]form , there is one dropdown list , if select one particular list item have to open new pop up window which doesn't have any menu's, address bar etc., [B]upto this i completed using window.open()[/B] [B] i got problem from now[/B] but when i fill the textbox … | |
[ATTACH]6798[/ATTACH] i hv an interface sumthing like this. i/m using VB6 and i wanna find record in MS Access using find command button. firstly user will key in an employee number as a key to find that user record in MS Access. after that, the data will appear in the … | |
Can anyone tell me why this code isnt working? [CODE=php]<?php $username = $password = $database = $email23 = $_POST['email']; $con = mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $sql = "SELECT * FROM `user_user` WHERE `email` = '$email23'"; $query = mysql_query($sql) or die('Error: ' . mysql_error()); $r = mysql_fetch_row($query); … | |
Good Day! I'm working on my homework for the past 5 hrs now, i really need some help. I need to create a program that will generate a random point on the Panel. the problem is i cant seem to make the point appear on my panel. any help is … | |
I'm writing a program for a contest (it's a demo, not the actual thing - so I'm not cheating by asking for help - and my question isn't directly related to the algorithm they want anyway). To submit a program, you send them the .cpp file, and they execute it … | |
This is just for my information and I don't really have much need for it... But, I would like to know anyway :D. #1. Is a for or while statement faster than one another? As in, if someone put a for would it be faster (application-wise, not when their typing … | |
I have a general question. I am trying to read a file named: 1.0.0.txt but this seems not to be possible. The MessageBox shows emty. If I trying to read a file ex named: File1.txt it works. So I wonder why it is not possible to read this file named … | |
I have a table with 3 columns as follows: lower upper id 12 20 100 100 150 200 I want to select range of numbers based on lower and upper column. For example I want to display numbers between 12 to 20 or from 100 to 150. How to do … | |
Help the error states: .cpp(31) : error C2337: 'count' : attribute not found referring to new[count] = value; as the problem. My code is the following: [code] int main() { int size = 20; new double[size]; for(int count = 0; count <= size; count++) { int value; cout << "Enter … | |
Hi, I am a new bee in PHP , I have a asignment to write a online polling script. Can u please help me get the script to refer and write a fresh code as per my requirement | |
This is cited from Stroustrup third edition [CODE] void f () throw (x2 , x3 ) { // stuff } is equivalent to: void f () try { // stuff } catch (x2) {throw; } / / rethrow catch (x3) {throw; } / / rethrow catch (...) { std: :unexpected() … | |
i am trying to print an array list in a jsp page like this: [CODE]<body> <FORM METHOD="POST" ACTION="index.jsp"> <input type="text" name="text" value="" /> <input type="submit" value="add" /> </FORM> <jsp:useBean id="tomer" class="java.util.ArrayList" scope="session"/> <jsp:useBean id="r1" class="java.util.Iterator" scope="session"/> <% if (request.getParameter("text") !=null) {%> <% tomer.add(request.getParameter("text"));%> <%}%> <%r1 = tomer.iterator();%> <%while(r1.hasNext())%> <%{%> <%r1.next();%> … | |
Does anyone know how to change the look of the java files that are listed when you expand the java folder in the tree structure of the database? i have these numbers infront of the class file, but have no clue what they are, they are not there in toad(i … | |
I am new to JSP. Please guide me which e-book or book should I read so that I can learn from basics to advance skills and develop a web site by own. Please help..! | |
Hi, here is the code for page navigation, its working fine but , if there are 4 pages , each page is displaying 3 records per page, if we go to 3rd page, and click on the subject it will display the contents but it will automatically come to the … | |
Hi all, I have a registration form on my website which once filled in, it sends an email to the user with a link to "verify their email address". This link holds all of the information entered by the user in the form and looks something like this: [url]http://www.example.com/confirm.php?firstname=john&lastname=smith[/url] When … | |
i have just had to go into the backend of an old site to fix the mysql db as some had deleted the wrong db. i have got most of it working again now but did not know what this line of code is doing. [CODE]$sql = "SELECT id,thumb,image,designer,title,(total/freq) AS … | |
Hi, I'm just starting out with programming in C++, and would like some clarification on something.. What is the meaning of the '&' in this line: [code=c++]void Stack::push(const StackElement & value);[/code] I would assume that it takes a reference as a parameter, however, why is it that it works when … | |
Hai all, I want to get to know about the file summary like last saved by, last printed on, authour etc... How can get it using file info function. Thanks in advance. | |
i using acsess 2003 or xp. but when i click in record source property to show the table a massage was shown. but when i use office 97 then there was no problem | |
Well my site is a music lyrics site, and included an option to embed youtube videos with each lyric added. It came with one lyrics, which you can see here. On the left of this page, the youtube video fits in a box. [url]http://music-and-lyrics.info/index.php?lyric_id=1[/url] Now I added a new lyric … | |
[code=php] <?php $result = mysql_query("INSERT INTO ".UPREFIX."items` VALUES ( '', '".$item_name."', '".$item_descr."', '".$item_action."', '".$item_rarity."', '".$item_value."', '".$item_folder."', '".$item_image."', '".$item_cat_id."', '".$item_visibility."')"); ?> [/code] I didn't know if this would be php or MySQL. I'm getting returned the following error: You have an error in your SQL syntax; check the manual that corresponds … | |
Hello ya'll, I stumbled over here looking for some help with Bash shell scripts.. See, the problem was I needed to copy a data DVD into (onto?) the system file space. Since this is a virtual machine, copying a DVD takes a very long time, the drive gets hot, starts … | |
As far as I know, I have successfully completed all config files so the site should load, but for some reason, the site doesn't. Here is the error message I get instead. [CODE]array(3) { [0]=> array(4) { ["file"]=> string(74) "/home/imedia/public_html/music-and-lyrics.info/functions/main.function.php" ["line"]=> int(10) ["function"]=> string(10) "mysqlQuery" ["args"]=> array(1) { [0]=> &string(20) … | |
I am using DirectDraw to make a game and I am running it in 8-bit color mode. What I am having a problem with is making a macro to convert RGB values into a single 8-bit color. Here is the macro: [CODE=c++] #define RGB_8BIT(r, g, b) ((r & 224) + … | |
I am stuck between deciding between MySql and Oracle, The reason being, I want to know how long it will take for MySql to reash the level of the current Oracle, if its gonna take more than a year....I guess Oracle is worth the money else not. Any views on … | |
Hi All Im working on an exercise from a book im learning java with. It is a console app, i have to make a menu 1-4 and then evaluate what number the user entered, carry out the command and then return to the menu. My problem is that i tried … | |
"Do you agree or disagree with the following statement: "since we deliver multiple increments to the customer, why should we be concerned about the quality in the early increments ---we can fix problems in later iterations "? | |
Hi all, I have encountered a peculiar problem when performing some simple arithmetic in a program I am developing. As the function of the program is pretty specific to my field I have included a smaller program which illustrates the same problem without the technicalities. Given a function (in the … | |
Hi, I'm reading Programming Windows Fifth Edition by Charles Petzold. In the part I'm reading, it talks about GDI functions. I'm trying to get the pixels that are 1 to 100 + the mouse x coordinate and the y coorinate, then draw them on my window. It's hard to explain. … | |
have anyone ever creates navigation buttons such as next,previous in coldfusion? can i see ours if you have created one? | |
Hallo everybody. I am a student trying to extend my knowledge in cPP while using UML and system modelling. I created a "vector template class" using the rhapsody system modeling tool for storing different data types. I used the template to store int and float data types successfully using either … | |
I use Win XP+IIS 6.0.I have deployed a web site in my local IIS and when tried to access it from another system in my network it is throwing 'Page cannot be displayed' error.I have given read and execute permissions to that remote login credentials. Please help.. | |
I am trying to use ajax to 'embed' a youtube video on page. I make my calls and put the responseText to the innerHTML. But the embed object does not appear. I have verified that I can write to the div tag by ID (I pumped some straight text into … | |
When I run this program I can only access the first row of data. Can any one help so that I can access all the lines? I am trying to store numbers into a 2-dimensional array. [icode]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () … | |
Hi I have a simple code snippet here that writes to a file called Student.txt : [CODE="java"] import java.io.*; import java.util.*; public class Streams { public static void main(String[] args) { String studentFirstName = "Bob "; String studentLastName = " Smith "; String finalGrade = "A"; try { PrintWriter out … | |
I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance... | |
Hello. Currently i am creating a small application that works around packets. The packets are sent every 600ms. Now my quesition is this: Currently i have this (An example) [code="syntax"] public class Example { private int exampleInt = 0; public void setExample(int i) { exampleInt = i; } public void … | |
I am trying to create a program that generates random passwords using the characters A-Z and the numbers 0-9. It will also have an input of what you want the length of the password to be. What I don't know how to do is to create a method to choose … | |
Hi, I retrieve all students from database with adding submit buttons along with them. For example; when i click on 3rd student’s submit button, it gives me information of last retrieved student. How can solve this problem? Note : All action is in same page. Thanks [code] <?php while ($myArray … | |
i have two text boxes with two date pickers. One text box and date picker for start date and another two for end date. First the values of two text boxes are current date.If we select a particular date using date picker the value will be changed corresponding to that. … | |
The code below gives me "Warning: Wrong parameter count for mssql_bind() in" [CODE] $action="L"; $M_ExhibitionID=$_REQUEST[M_ExhibitionID]; $areaid=1; $LngCode="el"; $sproc=mssql_init( "sp_php" ); mssql_bind($sproc,"@action",$action,SQLCHAR,false,false); mssql_bind($sproc,"@M_ExhibitionID",$M_ExhibitionID,SQLINT4,false,false); mssql_bind($sproc,"@areaid",$areaid,SQLINT4,false,false); mssql_bind($sproc,"@lang",$LngCode,SQLVARCHAR,false,false); $GET_EXHIBITS=mssql_bind($sproc); [/CODE] what is my wrong? | |
anybody have a browser compatible html entity decoding function? | |
I'm having problems creating an array with a dynamic size using new. Here is the relevant code: [CODE] enum LandCondition { Bad, Good }; //... int IMG_WIDTH, IMG_HEIGHT; LandCondition* land; //... land = new LandCondition[IMG_WIDTH][IMG_HEIGHT];//causes errors [/CODE] The errors VC++ gives me are: error C2540: non-constant expression as array bound … | |
Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because … | |
Hello I'm new to PHP, here's what I'm haveing trouble with. I'm using php to display a gallery in a directory and delete the images, but I get an error when I try to use the delete button and I don't know why or how to fix it, can anyone … | |
Hi all and thanks for reading. I have a simple script that works in IE and Safari, but not FF. Basically when I click a button I want an image to appear dynamically via JS. This is what i've got (watered down) [code] **JS function called Contact** var loadingImg = … |
The End.