199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Octet

I have the following PHP: [CODE]<?php define('DB_NAME', 'database'); define('DB_USER', 'root'); define('DB_PASSWORD', 'password'); define('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!link){ die('Could not connect to database'); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Could not connect to the database'); } $value = htmlspecialchars($_POST['Name']); $value2 = htmlspecialchars($_POST['Email']); $value3 = htmlspecialchars($_POST['Subject']); …

Member Avatar for Octet
0
163
Member Avatar for Despairy

Hi, lets say i have [CODE]class Players{ public: vector <strings> info };[/CODE] and class that inherits from it [CODE]class son:public Players{ };[/CODE] now in the main function i make 2 of those so now i have 2 vectors in memory that vector holds the same data for all of the …

Member Avatar for Ancient Dragon
0
260
Member Avatar for themenucha

Hi!!! I'm trying to pass 2d array to function and i can't. In general i'm trying to print chess board in action. The board is an integer.I need a function that gets 2d array in specific place and returns correlatedm char. const int pawn = 1; const int rook = …

Member Avatar for themenucha
0
354
Member Avatar for Mahesha999

Hi I just installed Oracle 11g R2 on my Win 7 Ultimate x86 machine in compatibility mode (XP SP3). It showed that the setup completed successfully (without a single error & warning, I got few when I ran it in Win 7 without compatibility mode enabled.). Now I am trying …

Member Avatar for ryanjayson
0
1K
Member Avatar for hszforu

So here is something i am trying to do: 1.Store a mathematical expression eg. 23*32+12 in the String datatype. 2.Now i have to calculate the value of that expression. So i thought of converting the string to integer using parseInt , but for this the string need not contain *,+ …

Member Avatar for hszforu
0
314
Member Avatar for harinath_2007

I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way?

Member Avatar for harinath_2007
0
136
Member Avatar for Upoma

i am going to develop a java project with tomcat6.How to implement calender data type in date field? please help as soon as possible..

Member Avatar for JamesCherrill
0
186
Member Avatar for SoulMazer

Hi, I'm a beginner to C++ and am having some trouble with my list. I first define a struct named "bullet' like so: [code=c++]struct bullet { bool alive; bullet() alive = true; };[/code] Then, I create a list of objects of type "bullet": [icode]list<bullet> bullet_list;[/icode] In my program, I frequently …

Member Avatar for saravmittar
0
197
Member Avatar for jot121

[CODE]import java.util.ArrayList; public class CSStudent { String[] requiredGeneralClasses = {"biology", "calculus", "chemistry", "english", "physics", "psychology", "economics"}; String[] requiredInMajorClasses = {"algorithms", "data structures", "numerical analysis", "graphics, databases"}; String[] completedClasses; int[] gradeForCompletedClasses; public CSStudent() { completedClasses = new String[10000]; gradeForCompletedClasses = new int[10000]; } public void completeClass(String classs /*class*/, int gradeOnHundredPointScale) { …

Member Avatar for NormR1
0
125
Member Avatar for theprofoundgeek

Hello Guys! I have just inherited a huge mammoth php project, which is not quite organised. Few of the files are of 25K+ php lines of code. Several sections of code are redundant across the project. Several files are imported into several files... My job is to strip many of …

Member Avatar for pritaeas
0
228
Member Avatar for Clinton Portis

Fun game for the raging compulsive alchoholic gambler, such as myself. Although the game may vary among casinos, the basic premise is the user picks 10 numbers out of 80. The computer will randomly draw 20 numbers out of 80. If you matched with any of the computer picks, you …

Member Avatar for PrimePackster
0
1K
Member Avatar for minitauros

Hello there, I'm running into a minor problem. I want to execute an onKeyUp action after a short delay when a key is released. So for example when the user gets his finger off the "y" button, I want to execute an action related to that "Y" after 1 second. …

Member Avatar for Seesharp
0
6K
Member Avatar for iPanda

I'm trying to open a program while I'm in a python script using the subprocess.call() function, It opens the program but for some reason the program doesn't allows that and just throw an "Unhandled exception" error, I know the problem is probably in the program so there may be any …

Member Avatar for iPanda
0
244
Member Avatar for Vampiricx3

Hey guys, I'm trying to build an Employee system GUI, and right now i'm trying to create a JComboBox to display all of the Employees, but whenever I compile, I get the following errors.. [code]nathan@ubuntu:~/Desktop/Employee GUI [Java]$ javac RectangleProgram.java RectangleProgram.java:42: cannot find symbol symbol : constructor JComboBox(java.lang.String) location: class javax.swing.JComboBox …

Member Avatar for JamesCherrill
0
149
Member Avatar for robertj17

I need some help on why I cant get these numbers to show from the array when i Run it [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="Revised by josephr10"/> </head> <body> <?php $RatesArray = array(.0525;,.0550;, .0575;, …

Member Avatar for diafol
0
154
Member Avatar for cvanithakpm

please any one help me to clarify my doubts..... By running my servlet program which having ODBC connection...... It shows an error as [Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified... Following procedure only i did... 1)I did servlet program by having JDBC connection in …

Member Avatar for cvanithakpm
0
133
Member Avatar for dennysimon
Member Avatar for JamesCherrill
0
137
Member Avatar for aakash dhoundiy

guys plzzzzzzz help me out,i m new to vb 2008,and i created master page but its not running.it shows following error Directory Listing -- /indianpremierleauge/ Tuesday, September 13, 2011 12:17 PM 1,693 MasterPage.master Tuesday, September 13, 2011 11:54 AM 461 MasterPage.master.cs Tuesday, September 13, 2011 12:01 PM 8,342 Web.config plzzzz …

Member Avatar for jinal161188
0
196
Member Avatar for patel28rajendra

I want to fill data in drop down list from database table. plz give me code for this

Member Avatar for jinal161188
0
231
Member Avatar for Momiji Sohma

Hi,I want to write a program that calculate the increment and new salary of employee based on the average of three evaluation points.(using pass by reference/pass by value). I've done the coding but the output is wrong. I think there's a mistake on the call function. #include<stdio.h> float get_increment(float *a); …

Member Avatar for zeroliken
0
128
Member Avatar for mt1

I have a MainWindow which has a button that triggers a transition to the next UserControl: [CODE]private void Button_Click(object sender, RoutedEventArgs e) { NewPage newPage = new NewPage(); pageTransitionControl.ShowPage(newPage); } [/CODE] On this UserControl (NewPage), it has a back button which should transition the current UserControl away, so it goes …

Member Avatar for pritesh2010
0
122
Member Avatar for glut

Hey, I'd like to read a file from the server, by any means necessary. As long as I can use something like JavaScript, like it has to be client sided. No server sided scripting language. If there is no way to read a file from the server, is there a …

Member Avatar for glut
0
120
Member Avatar for PutingPanday

please help with my project here it goes... I want the every text in my label to be different color example label text is Visual the color of V is black and the rest will be red and if I press the key i the letter i will be black...

Member Avatar for codeorder
0
325
Member Avatar for jbutardo

Hi, I just have a program that needs a dialog box, but I have problem since I want the dialog box to do something. for example, I have a javascript dialog box that would create a message "You have an error, Do you want to save the Log File", Then …

Member Avatar for jbutardo
0
144
Member Avatar for jman2011

I am new in programming. I have this problem in coding. i somehow have the idea but i could not simply do it in codes. can anyone add to complete my program. The problem is I enter 10 numbers and i need to sort them ascendingly. #include<iostream> using namespace std; …

Member Avatar for jman2011
0
87
Member Avatar for cdea06

What i'm trying to do is use a loop that prompts the user to re-enter a new string of numbers if what he previously entered is not within the specified range of 1-16. What I have is not working as expected. What am I doing wrong? [CODE] /* Program assignment …

Member Avatar for WaltP
0
263
Member Avatar for missaaliyah

I have very limited use of using MySql - but I am trying to fix this code and it seems to be corrent. But I am still getting the error. The website is a web directory, and the code itself checks to see the websites that arent linking back to …

Member Avatar for rigo1211
0
283
Member Avatar for Thermalnuke

can someone explain to me how to convert for example g = h + A[i] into an LC-2200 assembler?????

Member Avatar for Thermalnuke
0
69
Member Avatar for StickyTape

I use Visual Studio 2010 Ultimate. After fixing one of my problems, I ran into another. I have 2 files in my project named, let's say, A and B. The problem is when I try to run the code from B, VS outputs code from A. Any ideas on how …

Member Avatar for Crosby Grant
0
2K
Member Avatar for itsvineethpv

I have a grid view with a check box column i want to open a new window when clicked on that check box . How can i do that? please help, thanks in advance

Member Avatar for hericles
0
207
Member Avatar for witchDoc

Hello everyone. I can't figure out the best way to make a simple picture loop through the screen in a predefined trajectory (e.g. elliptic). Do i need to use some math or is there a way to like draw a trajectory and bind the pic to it? Thanks in advance.

Member Avatar for mrnutty
0
158
Member Avatar for Odanaga

Hello, everyone! I made an account on this website because I'm having trouble with a particular program. I'm supposed to be writing a Polynomial class with a linked list to hold coefficients and an integer for the degree. I keep getting a fatal error LNK1561, though, and I don't know …

Member Avatar for Odanaga
0
393
Member Avatar for freedomflyer

I think I have the logic mostly down for this part of the program. However, I am using an implementation of a header file, and in [B]BST::Insert[/B] I am handed a [B]const std::string &v[/B]. For all I know, it is doing the right job passing it off to [B]InserRecursive[/B], but …

Member Avatar for freedomflyer
0
136
Member Avatar for vaironl

Hello forum, Vaironl here. I have a little problem, in a fairly big piece of code. I'm making a recipe application, which is working fine, but there is one minor error. If I minimize the screen and restore it, some of the components inside it are somehow re sizing of …

0
69
Member Avatar for apeiron27

hi i have this line in my code that seems to slow down as my loop progresses.. for i in range(start, end): nPack = struct.pack('<I',i) at first it takes about 0.00something second but later it starts to take like 0.12 sec. i have huge no of different start and end …

Member Avatar for woooee
0
347
Member Avatar for svilla

I am using Visual Studio 2010 and I am trying to enter some HTML by hand. I code the following lines: [CODE] <tr> <td colspan="4" class="shade tableheader">NCR Information </td> </tr> <tr> <td class="shade">Date Opened </td> <td><asp:TextBox ID="fldReportDate" runat="server" CssClass="datePicker"></asp:TextBox> </td> <td class="shade">NCR # </td> <td style="font-weight: bold; font-size: 12pt"><asp:Label ID="fldLog" …

0
125
Member Avatar for morrisproject

I am trying to get a searched date from one page to appear on another page, i have this code on one page so the user can search for a specific date: [CODE]<?php if(!empty($_POST['searchdate'])) { $mydate = $_POST['searchdate']; } else { $mydate = date('Y-m-d'); } $id = $_POST['id']; if(empty($id) && …

Member Avatar for morrisproject
0
316
Member Avatar for javalover

Sir, I need a java program (ie), if we mark a part of an image, the portion with same intensity in that image should also be segmented and saved separately .. Thanks in advance..

Member Avatar for hfx642
0
714
Member Avatar for Forswear

Hey there,I'm looking for assistance with my simple code here. Why do my integers ( x,v,z,d,e,f,g,h ) suddenly change when the program reaches the " printf("The decimal value is... " part? Is there something I'm missing? [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int Binary[7],x,v,z,d,e,f,g,h; Binary[0]=x; Binary[1]=v; …

Member Avatar for <ccg>
0
492
Member Avatar for lbgladson

I have an assignment to get the area and perimeter of a rectangle. I have to set the width and length to 1 initially and use set and get functions. I have the following code but am not getting the correct answers for area and perimeter. Any suggestions? Rectangle.h [code] …

Member Avatar for Moschops
0
1K
Member Avatar for Karlwakim

Hi everybody, First, i posted this here because i don't know what this is. Numbers like these : 0x000 0x010 0x011 0x040 0x0C1 0x200 0x181 What are they ? binary ? Thanks

Member Avatar for jacklogan
0
153
Member Avatar for jeffw362

I'm writing a program that takes records(first and last name,id and mark), reads them from a file and inserts the information in StudentRecord structures. For some reason,when I go to list the information, the first and last name strings in each structures are all the same. The first and last …

Member Avatar for nezachem
0
239
Member Avatar for 3825

Here is a snippet from my _layout.cshtml file from one of the projects I am involved with... [CODE]<link href="@Url.Content("~/Content/themes/ohl/jquery.ui.all.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/themes/ohl/jquery.ui.selectmenu.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/themes/ohl/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/themes/ohl/jquery.checkbox.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/themes/ohl/jquery.safari-checkbox.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/themes/ohl/jquery.autocomplete.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/PagedList.css")" rel="stylesheet" …

Member Avatar for 3825
0
235
Member Avatar for s3ttt

using System; using WebApplication1.mdws; using System.IO; using System.Text; namespace WebApplication1 { public class MdwsDao { QuerySvc _svc; public MdwsDao() { _svc = new QuerySvc(); _svc.CookieContainer = new System.Net.CookieContainer(); } public void connectAsJohn() { _svc.visitSite("foo", "523", "523", "SMITH,JOHN", "3050134", "999999999", ""); } public string[] ddr(string vistaFile, string vistaFields, string flags, string …

Member Avatar for thines01
0
193
Member Avatar for enterpise

now i'm writing a method which is checking the ip already exist or not [CODE]private boolean EXISTIP(String s) { boolean result = true; try{ for (int i = 0; i < Client_list.length; i++) { if (Client_list[i][0].equals(s)) { return true; } else { result = false; } } }catch(Exception e){ return …

Member Avatar for stultuske
0
125
Member Avatar for softDeveloper

Hi all! I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It …

Member Avatar for peter_budo
0
269
Member Avatar for ocamsrazor

Hi, im new to all this programming stuff and i am a total novice, so please treat me as such. By this friday (27th), i need to program a user interface for a driving simulator, including a picture box(or similar) with images to show basic direction or something, a gas, …

Member Avatar for lxXTaCoXxl
0
389
Member Avatar for Octet

I am currently using MySQL so people can send my a message that shall be stored in the database. The only issue is I have no idea how to protect against SQL Injection, below is my HTML: [CODE]<form action="Action.php" method="POST" /> <p>Name: <input type="text" name="Name" /> </p> <p>Comment: <input type="text" …

Member Avatar for diafol
0
156
Member Avatar for polinolin

I have 3 picture on my home.php. i want to make the encrypt when the picture on the click. so the database content of encrypt of 3 picture's id. anyone can give me advice or example? i want to use md5 encrypt. thanks

Member Avatar for coolest_987
0
90
Member Avatar for subrata_ushasi

Hi, I installed wamp server and oracle 9i ,both are running . Oracle having user id,password and host string , using these how can I connect to retrieve data from Oracle ? thanks in advance , very urgent Subrata

Member Avatar for coolest_987
0
111

The End.