64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tyson.crouch

G'day, Before i start, i have to admit that I'm out of my element when dealing with javascript! I've been developing a site for a travel agency, and opted to use some of the UI elements which can be found in jQuery. The problem is however, that when I move …

0
88
Member Avatar for Odubz

Hello, I have looked over many examples of how to populate a dropdown with rows like [code=php] $sql="SELECT id, thing FROM table"; $result=sqlsrv_query($conn,$sql) or die("Couldn't execut query"); while ($data=sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)){ $id=$row["id"]; $thing=$row["thing"]; $options.="<option value=\"$id\">".$thing "</option>"; } [/code] But i need to populate this list with tables and will need to …

Member Avatar for jenyroger
0
2K
Member Avatar for JaimeSharp

Now I HAve Written The following Programs [CODE] # include <iostream> # include <string> # define MAXSIZE = 300 using namespace std; bool findTitlePrice(string allTitles[300], double allPrices [300],int totalRec,string title,double price); string allTitles[300] = { "Book 1", "Book 2"}; double allPrices[300] = { 78.5, 66. }; int main () { …

Member Avatar for JaimeSharp
0
263
Member Avatar for jakx12

So I have a boolean representation and inside that representation contains shapes. All the points of the shape must be true in the boolean array. For some reason its not putting the points on the array. Here is my code, please help me! [CODE] for (int d = 0; d …

Member Avatar for leiger
0
125
Member Avatar for tjcares

I I am trying to make a site checker for my traffic exchange Now i was able to get this to work [CODE] SELECT*FROM vtp_urls where ID=326 [/CODE] and it puled up the right file and everything so I search the web for a way to display the url so …

Member Avatar for scaiferw
0
158
Member Avatar for kalrajhi

Hey guys, I am having a problem with this program. It's actually part of an example from Michael Dawson's [I]Beginning c++ Game Programming[/I] This program pretty much randomized a number between 1 and 100 and has the user input his/her guess. The user can deduce what the number is each …

Member Avatar for kalrajhi
0
253
Member Avatar for iamcreasy

I am new new in OOP stuff.I have read the Herbert Schildt's C++ reference.But it just gave me the idea, about how it work.Not how to make it work. I am read few chapters from "Object-Oriented Programming in C++ by Robert Lafore"(old edition featuring UML 1, i guess).But it was …

Member Avatar for avarionist
0
171
Member Avatar for JOSheaIV

Okay so I know this is probably an easy question but I am tired and I want to find a good way to do this. The code below will show what I am getting into (I'll explain more after it) [CODE]string loc = dataGridView1.SelectedRows.ToString(); int loc2 = Convert.ToInt32(loc);[/CODE] Anyway this …

Member Avatar for JOSheaIV
0
96
Member Avatar for joe_adelmo

Hi, I have to somehow modify a C-code by introducing a new array. We are in the chemical field: I have a small molecule (guest) inside the structure of a larger one (host). The existing array stores the square of the distance between a specific class of atoms: they are …

Member Avatar for Banfa
0
119
Member Avatar for json101

Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE]

Member Avatar for json101
0
121
Member Avatar for Jennifer84

Hello I am trying to compile my project in VC++ Express Edition and get the error below. The project did compile fine before I reinstalled XP windows. But now when I have installed everything again, I receive this error. I dont understand what this can mean ? When clicking the …

Member Avatar for Jennifer84
0
285
Member Avatar for reza.adinata

Hi all, I am trying to do an action by clicking a button. So if I press the button 1, it will do action1 (showing an image), and if I press it again, it should go do action 2 (which is reverting action one, so disable the image), press again …

Member Avatar for ddanbe
0
106
Member Avatar for rootchord

Been working on this for hours now. but most of it has been trying to fix these two errors. I've been googling my heart out and keep getting cryptic answers about the [B]const[/B]. Really need help. it's supposed to take in names of students and their scores, sort them, then …

Member Avatar for rootchord
0
640
Member Avatar for leesho

i have this code which input 3 numbers into ascending order. i know make it 10 i just change the array size but then it is only ascending the numbers that were inputing that are under 10. how can i change it so it's any number. [code]#include <iostream> #include <conio.h> …

Member Avatar for mrnutty
0
272
Member Avatar for Robertbra

Hallo ... I am very new to Python programming & I have this Question ... I am asked to write a program to calculate the No. of words & the length of each (letters) in this sentence : (An Oligonucleotide is a short segment of RNA or DNA, typically with …

Member Avatar for TrustyTony
0
112
Member Avatar for bornwith

I am trying to teach myself C#. I recently completed this exercise. The code works the the way its suppose to. My question is how could I make this more efficient or is there bad programing practices? Thanks [CODE] using System; class testcontact { public static void Main() { InputWrapper …

Member Avatar for Tigereaglee
0
98
Member Avatar for ajithraj

haii friends.... [COLOR="Red"]i want to select a particular string from textarea...i need it in javascript.... am using the tag <layout:textarea> i did not need the whole ,but only a part...plzz help me...[/COLOR]

Member Avatar for fxm
0
236
Member Avatar for tundra010

Hello everyone I know that one cannot pass a parameter to destructor functions in classes. Is there a reason why this functionality was left out of c++, and is there a way to get around it? Thanks!

Member Avatar for tundra010
0
108
Member Avatar for sdhawan

Hi Guys, I want your help with , how to navigate between forms.I have one form that has a drop down list.first list item is to add new list item.So when user select add new item it pops up a new form to eneter item and save it.When i save …

Member Avatar for sdhawan
0
65
Member Avatar for emilio

hi as i learned, asp .net login control has a built in required field validators but how can i use a regular expression validators to validate the UserName and Passwords textboxes ? is there a way ?

Member Avatar for Vally
0
148
Member Avatar for jemz

hello can you please help me in my registration...my problem is that i don't know how to check if the user input numbers, character, and letters....i want that if the user inputed this in password,example password=jem125@# this will display in my lblvpass="Strong password",if the user input only jem125 it will …

Member Avatar for jemz
0
174
Member Avatar for gkaykck

[CODE] char in[100], *temp[10],var[10][10]; int i, n = 0,fulval=0; double val[10]; var[10][]="ANS"; [/CODE] it should be simple but i cannot figure it out. I want to assign "ANS" to var[0][0,1,2] but it did not work?

Member Avatar for gkaykck
0
94
Member Avatar for dnanetwork

i can handle a store procedure which returns one output parameter using ExecuteScalar() but wot if my store procedure returns more than one parameter then how can i handle it. any advice Adapost ?

Member Avatar for dnanetwork
0
91
Member Avatar for Pari13

Hello All, what is code for exceute one aspx page onclick hyperlink without dispaly that page? Basically, I have one page p2.aspx.,which getting querystring parameter from page p1.aspx. When I cliced on hyper link of p1.aspx page .it redirect to the p2.aspx. but i want only that the code on …

Member Avatar for dnanetwork
0
398
Member Avatar for ejup_555

Write the assembler instructions that will read the text document located starting from memory location 020AH. The last line of text document is specified by escape character ‘\’. While reading print out the text that starts from character 11 to character 20. Comment your assembler instructions. this is the assignment. …

Member Avatar for wildgoose
0
80
Member Avatar for RaulGonzales

How i can Rewrite URL JSP in Apache tomcat same MOD Rewrite in PHP [U][B]EX.[/B][/U] [CODE]test.jsp?id=1 as test/1[/CODE] Thank You.

Member Avatar for RaulGonzales
0
113
Member Avatar for basma.lm

hi, how to restrict the text box input to allow user to write only Arabic letters, without english letters or numbers or ponctuation symbols. i searched on the net and i tried this code but it does't do what i want [CODE] private void nomTextBox_KeyPress(object sender, KeyPressEventArgs e) { if …

Member Avatar for basma.lm
0
167
Member Avatar for bbman

Hey, I want to create an image from a file, and then have the file deleted (or moved) after. How could I achieve this? I tried using using(), streams, Bitmaps etc. I'm completely stumped. Any help would be great. Thanks Edit, the problem is that I cannot delete/move the file, …

Member Avatar for bbman
0
151
Member Avatar for samsons17

Hi.. I'm not sure whats the array_merge doing here in this code? I've read the mysql manual,but i just not sure what it is really means,so hope somebody could clear it out for me. By the way this is the code : [CODE] if (isset($_POST['submit'])) { // Form has been …

Member Avatar for samsons17
0
361
Member Avatar for Elthalion

Hi, i'm new to Python and i'm currently following the "How to Think like a Computer Scientist" tutorials. I'm at Chapter 4: Conditionals and doing the last exercise where i need to create six colored houses on a black background. I've successfully created the house at the bottom left, but …

Member Avatar for Elthalion
0
189
Member Avatar for MrBlack

I m new to programming .Can anybody tell me where do we use Nested Class in piratical(i dont need the code )? and Why do we use it with out using regular class Plz explain me

Member Avatar for MrBlack
0
141
Member Avatar for Monster Killer

What i want may seem simple but i have been at it for hours trying to get it to work and searching the internet for answers. What i have been trying, and failing at doing, is taking X minuets from a time selected from a database (which is in the …

Member Avatar for Monster Killer
0
104
Member Avatar for davidjennings

Hi, I have a dropdown box extracted from MySQL database and I have two records for a product as it was produced in different years. i.e. model number 75 repeated, I am trying to extract only one of them in the dropdown box and have used select distinct but it …

Member Avatar for davidjennings
0
119
Member Avatar for programming2010

hi everyone...i needed to find a code that opens a database directly....kindly assist. Regards,

Member Avatar for programming2010
0
89
Member Avatar for JaimeSharp

I am in a bit of trouble with this code it is due tomorrow need pointers the menu is displaying correctly but when i enter a number it locks up have i declared the switch statement wrong or is my menu declared incorrectly also in regards to case 4 it …

Member Avatar for JaimeSharp
0
124
Member Avatar for ajwei810192

Hi, I have a line of text here: Directions: Take the #8 from Meadow Park(31), and get off at Kroger East (57). I am trying to get it to match both (31) and (57), which some other context may have different numbers, but there could be either 1 or 2 …

Member Avatar for pritaeas
0
70
Member Avatar for ayesha789

I have Developed a Database using MySQL and PHP. Now there are 60+ users who are using this DB. I want to make a system which tells me about Active and inactive users. Please guide me. My memebers table is like [CODE=mysql]-- -- Table structure for table `members` -- CREATE …

Member Avatar for ayesha789
1
246
Member Avatar for samsons17

I just wanna ask whats the difference between trim() and mysql_real_escape_string() functions? because i see this code below : [CODE] $username = trim(mysql_prep($_POST['username'])); $password = trim(mysql_prep($_POST['password'])); [/CODE] and myql_prep is a function being made thats contain this : [CODE] function mysql_prep( $value ) { $magic_quotes_active = get_magic_quotes_gpc(); $new_enough_php = function_exists( …

Member Avatar for samsons17
0
3K
Member Avatar for Memo..~

hi everyone.. I have this assignment that I should sort whatever I enter in ascending order of the variable a .. I want to know what is wrong with this Thank you all in advance.. [CODE]public void addRecord() { Scanner abc=new Scanner(System.in); System.out.println("Enter the file number "); int a=abc.nextInt(); System.out.println("Enter …

Member Avatar for s_sridhar
0
111
Member Avatar for leesho

i have this code here which inputs the numbers and then adds them. is there a cheats way i can change it so that it inputs the numbers then puts them into ascending order. [CODE]#include <iostream.h> void getNumber(int &, int); void sum( int, int &); void output(int[ ], int, int); …

Member Avatar for s_sridhar
0
107
Member Avatar for sajithdil

hey guys i want to know is it possible to take a 3ds max 3d model and show it in a java file?? if so could i have some pointers in the right direction?? thanks a lot its much appreciated!!!

Member Avatar for sajithdil
0
269
Member Avatar for leesho

[CODE]#include<iostream.h> #include<iomanip.h> using namespace std; float number1, number2, number3; void readThreeNumbers(number1, number2, number3); void sortThreeNumbers(number1, number2, number3); void displayNumbers(number1, number2, number3); int main () { readThreeNumbers(number1, number2, number3); sortThreeNumbers(number1, number2, number3); displayNumbers(number1, number2, number3); } void readThreeNumbers(number1, number2, number3) { cout << "Please enter three floating-point numbers, space between them: …

Member Avatar for leesho
0
184
Member Avatar for mitch9654

My custom button thing isn't clickable. I don't know why! (obviously :P) I DO have an action listener This make a button that looks like a cross. The input is: [code] "name", g, 0, 0, 100, 100 [/code] It looks like this: [url]http://mitch9654.zymichost.com/Java/index.html[/url] [code]package Buttons; import java.awt.*; /** * * …

Member Avatar for mitch9654
0
132
Member Avatar for DeadSoul

Hello friends i have spend a week to make a notepad.But i have one error in it i dont know where i am wrong . i am not able to add JFileChooser in my notepad i have JFileChooser in my code but its not working properly that's why i have …

Member Avatar for leiger
0
164
Member Avatar for loveforfire33

im making a ASP.NET web application using a serverside database. Hi :), im making a ASP.net web application with a sqlserver backend database. i have been requested to provide both UML and ERD/Normalization i can do both of these techniques individually to a reasonable standard, however i am unsure about …

Member Avatar for griswolf
0
272
Member Avatar for z3r0acidk

Hey all, I need help with this. I have a .txt file, called "littlefile.txt", inside that .txt there is text of course and my java program is supposed to read that text (as a String), and find a word like ... "hello", ... that's ok, but the java program must …

Member Avatar for z3r0acidk
0
152
Member Avatar for louiscos77

Hy every body, what I am making is some functions for other people to make figures with pixels. So I put two documents: imagepixel.html [CODE=dhtml] <!doctype html> <html> <head> <meta name="author" content="Someone"/> <meta name="description" content="my webpage ..."/> <meta name="keywords" content="my, webpage"/> <title>image by pixel</title> <script language="JavaScript" type="text/javascript" src="imagepixel.js"></script> <script language="JavaScript" …

Member Avatar for louiscos77
0
202
Member Avatar for Tech B

I'm revisiting an old IR tracking project, and want to use it in a blender game. I would like to know if anyone could help optimize the parsing algorithm or tell me an easier way to track multiple points with code. "im" is an instance of an image I captured …

Member Avatar for TrustyTony
0
234
Member Avatar for xylude

I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; …

Member Avatar for xylude
0
248
Member Avatar for Ap0ca1ypse

Evening, I have built a program with full SQL functionality (from pulling to adding etc). I am using stored proceedures for the SQL queries. I seem to have a problem when adding / updating a SQL VARCHAR column when the item being added / updated has a space (ie 'Add …

Member Avatar for Ap0ca1ypse
0
177

The End.