199,114 Archived Topics
Remove Filter ![]() | |
[code]<cfquery datasource="yyyyyy" name="getData1" > SELECT Category FROM Products WHERE Product_ID=#displayImg2# </cfquery> <cfset PosInCatOfImg= > // how learn position of this Product_ID in getData1 query result data of Products ?[/code] eg is the 13th row ??? | |
When doing email blasts using CFMAIL and CFMailPart email accounts with gmail can not view the content, (it is blank). I am using the following construct: CFMAIL CFMailPart type="TEXT" Text version of EMail here. CFMailPart type="HTML" HTML version of EMail is here. No one seems to have a problem except … | |
hey i seem to get this everytime i run this file within my login script Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\Isis\login.php on line 16 can anyone help me please? heres my code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; $login = $_GET['login']; setcookie("username", "$username", … | |
hi, friends i have some doubt from many days.. please any one clarify it.. my doubt is, "IS IT POSSIBLE TO CHANGE JAVA FILE TO .EXE FILE ... :?::?::?::?:?" IF IT IS POSSIBLE HOW IT IS CONVERT...:icon_idea: THANKS IN ADVANCE..... | |
when we use header for redirecting, it will be redirect immediatelly. so how can page is wait after the redirct another location. I am request to all of u, if you have any suggession or code, please help me. Rgds. Dheeraj | |
I'm currently practicing algorithms and coding for my colleges programming team. The problem is, in High School I was almost purely C/C++, while my college team all work in Java. So, while not wildly different, learning Java is still pretty frustrating to me. My most recent problem is a Java.lang.NullPointerException … | |
out = open ("output.jh") towrite= a+b out.write (towrite) When you want to put an output to a file. instead of the information going right next to eachother how could they go one over the other in the file. This would be for many different outputs. | |
i'm a new comer to this language. can anybody tell me why this simple piece of code gives me an error indicating that "NameError,name 'example' is not defined". by the way i use Wing IDE to write my codings. class example(): def _init_ (): print("a class is created") def m1 … | |
Hi guys. For some reason I cannot get the linked list to print. I want to copy it(which works) but I cannot get the list to print after copying it. Any suggestions? [CODE]#include <iostream> using namespace std; struct node { int info; node* next; }; int main() { node* list; … | |
hey guys, I need this Var1 = 0; Sleep(500); Var1 = 1; My problem is that the Sleep makes all my threads sleep. I want only the one thread I'm in sleep. Thanks, Jeff | |
I have an array with some integers. i want to remove redudants integers in the array and print the integers without redudancy... can any one give me the code please..... | |
hello it is easy program but there is a mistake in void application while printing the birthday, pt pointer gives a mistake why? [CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; struct Date { int day; int month; int year; }; void printdate(Date* pt) { cout << "\nbirthday= "<<*pt->day<<"."<<*pt->month<<"."<<*pt->year; … | |
Hey everyone, So in a few of my programs, when I have the user enter input, which then gets stored in a list, there seems to be some error. I use a while loop to allow for continuous input, like [CODE] while (!cin.eof()) { cin >> value; list.insert(value); } [/CODE] … | |
Hi, I have a problem with a random number generating function. This function works great on windows XP but when I run the function in Windows VISTA and Windows 7, I receive an error message that displays: [B]"Attempted to read or write protected memory. This is often an indication that … | |
Hi All, Really appreciate your help!!! I am new to java and this is my new project in java. for my application am trying to get DB results by calling a oracle procedure through JDBC.i was able to do that and was getting results back to the DAO class.am setting … | |
Hi all, I'm new in programing.I'm trying to assign random numbers which math.random will choose.Each time I run program Math.random must choose either 50,100 or 150 ie: 50*1 for 1, 50*2 for 2, 50*3 for 3. I hope my explanation makes sense. Thank you! [CODE] int width; width = (int)(Math.random() … | |
Hello, I just started a computer science course and I'm having issues with one of the assignments. I think for the most part, I've got it done correctly (although, I'm a little shaky with the if/else if statements), but I'm having a syntax problem on lines 15 and 19 ("illegal … | |
Creating a program with a circle class that has 3 private variables and 3 public functions and then have accessor & mutator functions. I know this isn't right, but I've gone through the book and my notes and I feel like I've mixed up a few ways of doing it … | |
[QUOTE]I am trying to make my program look like the image I attached but I don't know how to. I can't make the JTextFields positioned like that.[/QUOTE] [QUOTE]I also want to make it a JScrollPane instead of JPanel[/QUOTE] [CODE]import java.awt.*; import javax.swing.*; import java.text.NumberFormat; import javax.swing.JFormattedTextField; import java.awt.event.*; import java.text.*; … | |
Hi all. I recently began to give C++ a go again after failing on the first attempt. I quickly ran into the same problem that led me to C# the first time around. Strings, damn strings. I simply cannot get my head around arrays of charactors, they stress me out, … | |
hey everyone, i am a new developer using the bluej IDE on mac 10.6. Whenever i use the virtual terminal to execute, it works perfectly. the other day, i attempted to export the file to a JAR file through the programs basic functionality, as JAR files are natively run on … | |
Hi everyone, I was wondering if anyone could help me figure out this issue I am having with a program I have written. The problem is after you type in the number of days you want to rent the car for if it is less than 0 or greater than … | |
A file called input. john 9 7 6 7 4 3 9 5(double space)76 54 53 77 65(double space)4 45 45 def main(): fin = open ("input", "r") line = fin.readline() x = line.split(" ") a= (int (x [1])+ int (x [2]) +int (x [3])+ int (x [4]) +int (x … | |
I manage a small website. I went over the logs this morning and found a page reference on the site that should not have been there. It was of the format "/xmlrpc.php". I did a search for the term and found the XMLRPC website. I didn't understand what was written … | |
I manage a small website. I went over the logs this morning and found a number of pages or page references on the site that should not have been there. Most were of the format "/_vti_bin/". I did a search for the term and learned about the Front Page debacle. … | |
I hope this is the correct forum for this question. I manage a small website. The site uses a database with MySql. When I launched the site, around 3 years ago, the PHP code I wrote had minimal security and validation in PHP because I relied on javascript validation for … | |
Hello I use 2 linked list ===> Doctor ===>student the First doctor A, has three students Student_1, Student_2 and Student_3. the second doctor B, has one students Student_4. the Third doctor C, has one students Student_5. to linked student, i using this function: [CODE] Doctor * Doct; student *st1, *st2; … | |
Stuck in this question .I cant spot where i am doing the mistake. Can somebody help me please. thanks. this is the question: ----------------------------------------------- The number of combinations (C) from M items taken N at a time is given by C= fac(M) / [fac(N) * fac (M – N)] where … | |
Hi Experts, I have a website which is hosted in Bluehost. I would like to access my Mysql database from remote without using browser. Is there any tool to access my Mysql database something like Filezilla? Thanks in advance, Manim | |
I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it reaches the prompt for the output file name. My IDE (VC++ Express) simply says there is an unhandled exception yielding a … | |
Hello all I have a form working perfectly, however I need to put this form in a $display_block .= "... ... ..."; which I have done and which works fine also (minus the following radio code). My problem is that when I add this code back inside the display block, … | |
Hi all I want to make sure that my password field should contain numbers as well as letters i am using something like function isAlphabet(elem, helperMsg){ var alphaExp = /^[a-zA-Z]+$/; if(elem.value.match(alphaExp)){ return true; }else{ alert(helperMsg); elem.focus(); return false; } } but it does nothing when there are letter in field … | |
Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of … | |
Hi guys, I have prepared a website using php,html and back-end as mysql,and now i want it to launch as a website plz tell me how to configure and create a webdomain.Currently i am using Xampp server to create a website.........plz help me guys. But i want to launch it … | |
Hi. I have a problems with slovenian characters. I have a text file that has a letters like č,š etc. I want data from that file to store in my database. I tried utf8_encode and mb_convert_unicode but it doesn't work. Anyone can help? ![]() | |
i serch about 1 month to find a script that names biorhythms and i found a script! my problem is that the script works in internet explorer but not in firefox and i do not know why! i will sent the code...can any one help me and say to me … | |
This question refers to this sample page on my test site: [URL="http://www.twdesign.ca/up/display_tattoos_2009.php"]http://www.twdesign.ca/up/display_tattoos_2009.php[/URL] The following section of PHP code: [CODE=php] <table cellspacing="0" cellpadding="0" border="0" align="right"> <?php while($row = mysql_fetch_row($result2)) { $active = $row[0]; $imagenum = $row[1]; echo "<tr><td><a name='placeholder$imagenum' href='display_tattoos_2009.php?in=$imagenum' onClick='swap('toppic','$imagenum')'><img class='opacity' name='$imagenum' id='$imagenum' src='tattoothumbnails/$imagenum.png' width='72' height='72' alt='$imagenum'></a></td></tr>\n"; } ?> </table> … | |
I have the following code (at the end) that will create a new distribution row dynamically. Everything looks good on the page and here is the innerHTML for the new row: [code] <TD style="WIDTH: 10px"> </TD> <TD colSpan=4>Distribution to: <INPUT name=newdistacct> <INPUT name=newdistshare> <INPUT type=checkbox Name="newdistdefault"></TD> <TD>* New</TD> <TD><INPUT style="TEXT-ALIGN: right" … | |
I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and … | |
I am getting the exception in firefox 3.6.10 "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" <myfilename>::anonymous::line 172 I am using prototype.js and the line as folows, var dropInsertBeforeElement = createElement("<div id='drop_insert_before_" + this.id + "' style='height:6px; width:" + totalWidth + "px;'>"); The exact place in prototype.js var Enumerable … | |
Hi this is driving me a little crazy, have been looking everywhere for a solution for the last few days. I'm new to php and i'm trying to create a simple food shopping cart, i have a repeat region for food extras attached to the food item. [CODE=php]<table width="100%" border="0" … | |
I need to write a tic tac toe game that displays who's turn it is. It doesnt have to restart or have AI. Im not sure why everytime i click it repaints a different colors. I want every cell to be one solid color then depending on if its X's … | |
Dear friends, I get a assigment and i very confused with this cases. How to write a function that computes the area of an arbitrary polygon – so not necessarily a triangle or rectangle, etc. The input of the function should be a list of points, where each point is … | |
When I use a GET request from a browser address bar… [URL="http:/example.com/vast/1/73188"]http:/example.com/vast/1/73188[/URL] …it loads and displays an XML output. If you then refresh the page a new file loads. Actually, there are something like 5 different titles with load in rotation as you re-call/re-fresh the page. That’s all well and … | |
I am learning mySQL and PHP and am very appreciative of the help I have received here. As some of you know, I am working on a Hockey Pool site. One of my first experiments was to build a static form on a php page that would take the input … | |
Hello, I am developing an asp.net c# application. I need to implement a textbox in which the user enters a character (or more then 1) and a dropdownlist is filled according to that character (it is filled with all of the strings the begin with that character). it's like an … | |
I am using [COLOR="Red"][B]aspx.cs [/B][/COLOR]to create a login page. I would like to create a remember me cookie using a checkbox that will help to remember user ID but will also allow it to be destroy if a different user ID wants to log in with the same computer, but … | |
Can anyone explain why the last line works? It seems like it is trying to cast a CRectangle as a CTriangle (which I imagine should fail?) but it outputs "5" as the function should. [code] // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; … | |
Hi, I am using vb.net 2008 with MySQL for my project. I have a datagridview on my form which displays records from Mysql table on form load. i want to delete the selected row in datagrid from table on 'row header mouse click' event. The 2 different codes that i … | |
Hi guys, i am trying to implement elevator simulation but stuck in some ways. 1st. i would like to set the background of my elevator class area into yellow but when i tried to do so by typing app.setBackground(COLOR.YELLOW) under class Elevator, i unable to change it. 2nd. i tried … |
The End.