64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nadnakinam

[CODE] <?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // Table1 name $con=mysql_connect("$host","$username","$password"); mysql_select_db("$db_name",$con); $show_all=$_POST['rg01']; // Show All //echo $show_all; if($show_all!="") { $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all'"; $result=mysql_query($sql); } else { echo …

Member Avatar for cwarn23
0
135
Member Avatar for gpss

Hello! I need help.. please.. i'm new at php... but i need to make this: i have a database (postgreSQL) on a server... now on my webpage, i want to insert (manually-in my webpage) like with a text box, i insert there the client name (and other box's for the …

Member Avatar for gpss
0
141
Member Avatar for Mensa180

Hello, I'm very new to python but made this as a sort of exercise. It is a loan calculator that takes into account user input. [code=Python] r = input('What is your interest rate? ') t = input('How many payments will you make? ') la = input('What was the amount of …

Member Avatar for Mensa180
1
343
Member Avatar for EntangledDesi

If I have a form that is to resemble a standard dialog box that prompts for a name and I need to display the name on the main form when the main form is first run, how do I do that?

Member Avatar for EntangledDesi
0
96
Member Avatar for 123468743867143

Need instruction. Please. [B][COLOR="red"]Situation:[/COLOR][/B] Most of my site pages start with the following: [COLOR="Green"]<? include("include/common.inc.php"); top(); left(); middle(); bottom(); function middle(){ ?>[/COLOR] My include/common.inc has the head, title, meta tags which means they look the same on EVERY single page of my site (hundreds of pages!). Not good for SEO. …

Member Avatar for Eng.h
0
456
Member Avatar for triumphost

Yes I know its a long code and it will get longer but there is a compiler error in the [COLOR="Green"]int main ()[/COLOR] First Visual C++ 2008 Express edition error [QUOTE] ------ Build started: Project: MAC ADDRESS, Configuration: Debug Win32 ------ Compiling... MAC ADDRESS.cpp warning C4603: '_WIN32_WINNT' : macro is …

Member Avatar for triumphost
0
771
Member Avatar for ardent23

I am creating a simple program, I really need the code for this..here is my situation.. For example if I input a student no. in a textbox to perform search option then click the search button, I want to see the info of the said student to appear from the …

Member Avatar for TomW
0
172
Member Avatar for C++NOOOB

Hi, I have class which has two bool vectors: [CODE] typedef vector<bool> my_bool_vector; class MyClass{ private: my_bool_vector bvec; my_bool_vector another_bvec; public: explicit MyClass(unsigned int size) : bvec(size, false), another_bvec(size, false) { } }; MyClass MyObject (10); [/CODE] I want to be able to access bvec and another_bvec in the following …

Member Avatar for Dave Sinkula
0
157
Member Avatar for siddhesh123

Hi everyone, I am facing problems in updating controls using another thread created by another class (not Form1). I am able to update controls of main form by another thread if that thread was created by Form1 or main form, but when it is created by other class, i am …

Member Avatar for sknake
0
9K
Member Avatar for sebassn

Please, I'm not sure about this exercise, if someone can help me, thanks! I know it's something about .find() or .size(). and return the variable. Here is the exercise: ______ Write the code that prompts the user to enter a home web page address of the website that is used …

Member Avatar for sebassn
-1
114
Member Avatar for pmennen

Sorry if this isn't the right place for this type of question (I'm pretty new to Python). If there is a better venue for this kind of thing, please let me know: I tried to run a few PyQwt demo, but it complained that there was no module named PyQt4. …

Member Avatar for vegaseat
0
2K
Member Avatar for dre-logics

I have Visual basic 8.0 and use Statusstrip . whenever I change the [COLOR="Red"]height to 50 [/COLOR]will change automatically changed back to default. What am I doing wrong I go to properties of Statustrip1 Size Width = 616 Height = 22 I change to Size Width = 616 [COLOR="Red"]Height = …

Member Avatar for TomW
0
442
Member Avatar for genieuk

Hi, Can someone tell me if i can use the below query. When i click submit button SQL says: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username = 'genieuk'' at line …

Member Avatar for genieuk
0
65
Member Avatar for iamthwee

Hi guys, I've come to a road block so i need some help. 1)I have an exe which i need to run at start up. So I put the following bash file in the inid.d directory: [code] #!/bin/bash # # . /etc/rc.d/init.d/functions EXE_DIR="/root/monkey-0.9.2/bin/" EXE_NAME="monkey" ############################################################# #################### Functions ############################## ############################################################# function …

Member Avatar for iamthwee
0
207
Member Avatar for low1988

Is there anybody could tell me what does this function use for?For example : [CODE] String strTemp = JOptionPane.showInputDialog(null,"Please Enter C To Open A Current Account \n Or J To Open A Joint Account"); switch(strTemp.charAt(0)){ case 'c': case 'C': //code statement break; case 'j': case 'J': } [/CODE] Basically if …

Member Avatar for low1988
0
708
Member Avatar for ShailaMohite

Hi, I am create one application using c# and Ms Access 2007 which is run on one machine how to run this application on LAN. suppose keep database on one machine how to access database from another machine Regards, Shailaja

Member Avatar for DdoubleD
0
98
Member Avatar for yorro

Why am I getting this error during design time? [B]Error Number 5: Key cannot be null [/B] [CODE=vb] If Me.Visible = True Then If RetrieveSubjectsAndSection(Username, Subject) = True Then InsertSubjectsAndSection(Username,Subject) End If End If [/CODE] [B]RetrieveSubjectsAndSection[/B] function checks if record exist. The code is written inside a Usercontrol. Also I …

Member Avatar for yorro
0
91
Member Avatar for MadSkyrim

I have an assignment due in 2 days and I've hit a bit of a wall. I have a client program which receives parts of a file from multiple servers and combines them into the original file. The client can receive the files without a problem but wont combine them …

Member Avatar for MadSkyrim
0
96
Member Avatar for mansi sharma

Suppose there are two buttons named button1 & button2.I wnat that when the user presses enter key,button2 click event will fire? How to do dat,Can somebody tell me?

Member Avatar for nverma
0
122
Member Avatar for avirag

hello Sknake......I need your help once again.......... In my application I have made forms on which there are two panels each having a picturebox. Here, when user enters the string in textbox for searching and the Text(caption) of the matched string are displayed. But I want that it should display …

Member Avatar for avirag
0
298
Member Avatar for yorro

I am coding like usual, haven't click anything I don't know. Then suddenly I got an error [B]"Could not find type 'LFRv2.AdminTabEdit'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has …

Member Avatar for yorro
0
655
Member Avatar for The-IT

Hello all, I have been doing some work on my HTML editor lately, and I have come to a (what seams like a) dead end. The file its self is about 3.7kb smaller than my text editor, ProssesIT, and yet it fails to run any where near as smoothly. When …

Member Avatar for jlm699
0
3K
Member Avatar for farsen

Hi. I am about to program a piece of software which contains a single server, and about 20-40 clients. All parts can be spread out on a lan, or on a wan. The server shall be able to broadcast/multicast to the clients in some way, and the clients should be …

Member Avatar for farsen
0
110
Member Avatar for EvilLinux

Hi, its me again, I promise this should be quick and simple because I have an idea of what needs to be done. I'm working on my form (if you saw my other post its basicly a grade book with 5 forms). Is there any simple way to write the …

Member Avatar for EvilLinux
0
1K
Member Avatar for Dragazarth

Im really new to Python and I just learnt about Quadratic equations in maths, and so i made it made it my project to make a quadratic solver. But i have a problem i have a line [iCODE]if tocontinue == n:[/iCODE] I try to run it in IDLE and i …

Member Avatar for Dragazarth
0
91
Member Avatar for UmH

hi , i'm new in programming world i want to write c++ class in c it was ok .. when i change to c++ i've problems [CODE] #include <iostream> using std::cin; // using std::setprecision; using std::cout; using std::string; using std::endl; // using std::streamsize; class STD1{ int id; string name ; …

Member Avatar for dattu mhaismale
0
171
Member Avatar for sebassn

Please, can someone help me in this exercise, because I really don't know too much about swaping!...I dont need to write the whole code, only a part of it when it's shown how I swap and round them... _____ Write the code that swaps the value of two int variables. …

Member Avatar for sebassn
0
113
Member Avatar for exactprecisions

I see these sites with PHP files that have for example here it is ?do=. I wanted to make an array of documents names: $navigation[0] = "index.php"; $navigation[1] = "page1.php"; $navigation[2] = "page2.php"; So on and so forth. I'm probably not making any sense, but as I said in the …

Member Avatar for exactprecisions
0
146
Member Avatar for cavpollo

I know this might sound dumb or you might think that its pointless, but I need to do it this way. So here it goes, is there any way of placing a master form inside other master form's content place holder (or another kind of object)?

Member Avatar for Ramesh S
0
79
Member Avatar for avirag

Hi i have created this thread for general information of Google.....!! Can anyone tell me how does Google works, I want to know the algorithm that works behind that, i mean how the Google search is working. Can anyone give me the idea regarding this............... Every answer is appreciated.........

Member Avatar for Diamonddrake
4
149
Member Avatar for C++ Beginner

I had a problem that I had to create a menu that asks for user's input and depending on that input it will calculate area of circle, rectangle, or a triangle. I got that part worked out but the last part of the problem is "Do Not accept negative values …

Member Avatar for K0ns3rv
-1
3K
Member Avatar for triumphost

I think I have to the code right cuz it all compiles perfectly except when its done running, and I go to my documents, I dont see my directory... [code] #include <iostream> #include <windows.h> #include <winuser.h> #include <stdlib.h> #include <string> #include <stdio.h> #include "stdafx.h" #include <lm.h> #include <assert.h> #include <fstream> …

Member Avatar for triumphost
0
197
Member Avatar for DustinS

For some reason, the row header is being automatically set to the same value that appears in the adjacent cell in the first column. I can set and get HeaderCell.Value, but it has no effect on what is displayed. [CODE] If I (manually or programmatically) enter: Length Radius Obj 1 …

Member Avatar for DustinS
0
413
Member Avatar for Joe Hart

I had asked this question and thought that I had it solved but I could not get the text defined as variables. Below is the text file. I would like to specify a line and the length and set that to a variable. In the Example below the items in …

Member Avatar for Joe Hart
0
123
Member Avatar for crazyboy

Hello friends ... i want to call mouse click event on any icon or button ... but i dont want to press click from my mouse.. i want to do it through code... any help plz???

Member Avatar for DdoubleD
0
138
Member Avatar for Susan.LK

Hi there, If users want to be able to see more than one image for a searched book which would be the best way for the database table to be designed? Book table : Isbn, year, title, image_1, image_2, image_3, image_4 or Book table Image seperate Each book will in …

Member Avatar for djjjozsi
0
113
Member Avatar for infern0

I'm have serious trouble with this program. The average and the range do not work. The program runs...I just don't know how to fix this. Please help. I have to find the average and the range of an unlimited number of integers between 0 and 100. [CODE] #include <iostream> using …

Member Avatar for infern0
0
101
Member Avatar for hoolr

I posted this in the C++ forum, but decided to repost here as it relates to software development, and this might be a better audience for it. I'm trying to implement a Visitor Pattern in c++, but I'm having problems with the elements being visited in turn having their children …

Member Avatar for hoolr
0
103
Member Avatar for Kruptein

Can someone help me with this, if I run ftp, the page is downloaded and showed well, but the progress bar only shows 100% and doesn't progress at all.. [code] def progress_timeout(pbobj): # Calculate the value of the progress bar using the # value range set in the adjustment object …

Member Avatar for Kruptein
-1
157
Member Avatar for sakhi kul

Hi to all, I format my laptop and installed VS2008 . after running my webpage it gives me error that "compiler executable file csc.exe not found" (It is for previously build website) and if I create new website and run then It gives error that vbc.exe not found" why this …

Member Avatar for sakhi kul
0
98
Member Avatar for pymatio

Attached is a project that lets you control a sports league. If you enter these teams: [CODE] FOO A FOO B BAR BAZ [/CODE] & the restart the program it should print out something like this: [CODE] FOO A vs BAR FOO B vs BAZ [/CODE] but it doesn't it …

0
85
Member Avatar for why1991

I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static …

Member Avatar for VernonDozier
0
175
Member Avatar for Dixtosa

Hi all. i want to make separate process with python. for example i have python code. for example: [code] import time time.sleep(5) print "Time Over" [/code] named: t.py and i want to do all ^^that^^ just on other process :) i hope you understand. AND DONT GIVE ME LINKS PLS. …

Member Avatar for ov3rcl0ck
-2
265
Member Avatar for MrNoob

hey i m here supposed to extend calculator of K&R to support getline i made it but i dunno everytime i keep getting 0 poped not the numbers itself i debuged it i couldn't find where the bug is so hopefully someone will tell me what i m doing wrong …

Member Avatar for MrNoob
0
165
Member Avatar for nadnakinam

hi to all, this might be very simple, but i don;t know how to get correct output, someone help me to complete it... [B]1st i need to get result from this query[/B] [CODE]$sql="SELECT * FROM $tbl1_name WHERE sex='$show_all'"; $result=mysql_query($sql); [/CODE] this'll result either all the boys or all the girls; …

Member Avatar for nadnakinam
0
118
Member Avatar for Sjaroow

Hi all! In the following code the Onclick events change the background images. My problem is that after you click on another link i want the previously changed backgrounds to change back to its original background image. I hope i made some sense :P. Help is MUCH apreciated. Gr, Jarl …

Member Avatar for Sjaroow
0
106
Member Avatar for naziatarannum

Hi, can anyone please help me on this. I dont understand as to why am getting this error.. Please, please help on this! fortesting purpose I have commented certain lines.. [CODE]"Pre_s2a_leadtime.sh" 55 lines, 1233 characters #!/bin/csh # Check if program is already running and echo a time stamp for the …

Member Avatar for naziatarannum
0
772
Member Avatar for benkyma

I need to query a database of application titles and count the instances of each title. I've already got a list<string> of distinct values from a previous query, and now I need to count how many times each value occurs. I'm not sure if the query is correct, or how …

Member Avatar for benkyma
-1
84
Member Avatar for benkyma

I need to query a database of application titles and count the instances of each title. I've already got a list<string> of distinct values from a previous query, and now I need to count how many times each value occurs. I'm not sure if the query is correct, or how …

Member Avatar for benkyma
0
321
Member Avatar for Taavi

Hello! I have been trying to make a news script where you can edit/delete news. I've looked for tutorials and tried to make mine too. But I still have some problems, and I don't know what is wrong. So, I'm posting the code here, maybe someone can help me. [code=php] …

Member Avatar for Taavi
-1
149

The End.