199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kssi89

Hello, While putting together a sticky form I got this error: Parse error: parse error in C:\wamp\www\base_ball\insert_player.php on line 175 The problem is that this line of code does not exist. The script ends at line 174. Here are the bits of code I have altered: [CODE] <?php if (isset($_POST['Insert'])){ …

Member Avatar for samarudge
0
102
Member Avatar for jtok

I am using Visual Studio 2008 developing a web app front-end for a T-SQL DB using asp.net and vb.net. I have a label inside a list like so: [CODE] <ul id="ul" class="class"> <li id="li"> <asp:Label runat="server" ID="label"></asp:Label> </li> </ul> [/CODE] I cannot access the label directly in my code-behind file …

Member Avatar for jtok
0
141
Member Avatar for 1newguy

[code] #include <iostream> #include <string> #include <iomanip> using namespace std; void getData(char marital, int numberofKids, int& exempt, int& numberofPeople, double& grossSalary, double& penAmt); double taxAmount(double taxIncome, int perExempt, double taxRate); int main() { double grossSalary; double penAmt; int numberofPeople; char marital; int numberofKids; int exempt; double taxIncome; double taxRate; getData(marital, …

Member Avatar for siddhant3s
0
94
Member Avatar for Rustynails

Hey there everyone, hoping I could get a little insight on my problem. When calling my function friend_list(), I'm getting an error that I do not understand nor know how to fix. Here is the code.. [code] function AsyncRequest(){ this.check=function(){ var xmlHttp=null; try{xmlHttp=new XMLHttpRequest();} catch(e){ try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");} catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");} } …

Member Avatar for ShawnCplus
0
107
Member Avatar for Newbie 123

Hi I have some code where the user inputs some stuff and then i would like it to get added to a database. The problem is dont know how to make it so that it only adds to the database when the user has submited it? Any ideas ?

Member Avatar for Newbie 123
0
184
Member Avatar for f.damati

I want to make a server (FTP) client in which the client request a photo from the server i can't find any reference that teach that i need a simple one since i am a beginner Thank you

Member Avatar for Ezzaral
0
109
Member Avatar for jakesee

Hi all, ok this is quite general in a sense but there's no other approperiate forum to put this so here goes: When thinking how the langauges resolve IP when given a hostname, am I right to say that client-side languages like javascript uses the local computer's host file and …

Member Avatar for martin5211
0
220
Member Avatar for Alv45525

helo guys...am doing my website in asp.net and its gonna be an ecommerce site with shopping cart and all..I learned that i will need to makke use of session in the login form and pass it to the other forms...can anyone help and gimme some explanation

Member Avatar for Alv45525
0
190
Member Avatar for bit9435

I have a homework assignment that I'm stuck on...i have to make a program that works like text messaging on a cell phone. It uses three classes, keypad, display, and texter. keypad - is the keypad. it allows the user to enter all alpha-numeric characters. the class handles input. it …

Member Avatar for Clockowl
0
111
Member Avatar for ning2009

Hi, there I have the code (from Jice) using List below [CODE=syntax] targetlines=["*beam section,section=%s, elset=%s, material=%s", "%s", "%f, %f, %f"] resultlines=[targetlines[0] % (dResult['SEC'],section_type,mat_data), targetlines[1] % section_data, targetlines[2] % (math.sin(float(dResult['ANG'])*math.pi/180), math.cos(float(dResult['ANG'])*math.pi/180), 0)][/CODE] , which worked well However when I modified it to [CODE=syntax] targetlines=["*element,type=b31, elset=%s", "%s", "*beam section,section=%s, elset=%s, material=%s", "%s", …

Member Avatar for ning2009
0
96
Member Avatar for bozkurt

Hi, I am new. I have two table like this [code] create table1( ID VARCHAR(10), CONSTRAINT PKeyt1 PRIMARY KEY (ID) ) create table2( ID1 VARCHAR(10), ID2 VARCHAR(10) ) [/code] I want to add foreign key to table2 which ID1 and ID2 is different but referenced same column ID and ON …

Member Avatar for Ramy Mahrous
0
104
Member Avatar for -obol-

Hey everybody im a real newbee at python and im just wondering how to split a string of words into pieces and print on separate lines for example: " sun is shining" to: sun is shining i know this might be a simple task for a lot of people but …

Member Avatar for jlm699
0
277
Member Avatar for veledrom

Hi, When try to validate the textbox generated by innerHTML, it returns "Undefined" for the textbox. Therefore, i cannot validate it. Thanks [code] <html> <head> <script type="text/javascript"> function validateForm () { if (document.form1.textContactname.value.length == 0) { alert ("ERROR"); return false; } return true; } function createInvoice () { document.getElementById("hiddenPayment").innerHTML = …

Member Avatar for veledrom
0
131
Member Avatar for xVent

Hello guys , i searched for over 2 hours how to add a messagebox when i click my button Visual C++ 2008 , in a windows app .. and i cant do it .. if any1 knows how to , please post and if anyone knows any guide or here …

Member Avatar for Ancient Dragon
0
187
Member Avatar for get2tk
Member Avatar for nav33n

Hi all ! I have been assigned a task to implement an insert query into table a [i] only if [/i] a record doesn't exist in table c. I have been scratching my head for past 2 days and even my best friend [i] google [/i] didn't help me much, …

Member Avatar for nav33n
0
1K
Member Avatar for Mearah

Hey, is there somebody who tried to use pyOpenGL with wxPython? I want to have a GUI, where I have a frame integrated, that shows a 3D image computed by an OpenGL algorithm build in the PyOpenGL environment. Mearah

Member Avatar for Mearah
0
683
Member Avatar for snta

i'm new programmer. can u help me , how to retrieve data from database(access) and display in combo box. the value in combo box will automatic display into text box example: dtbs=office.mdb table name= item field name=itemID,itemName itemID=M1; itemName=modem itemID=M2; itemName=repeater i want this combo box display all itemID in …

Member Avatar for choudhuryshouvi
0
156
Member Avatar for neha_p

hey, I have done my bachelors in Electronics (B.E in electronics)and was working in IT comapany in asp.net,VB .for 6 months.now i want to shift to java,j2ee . i now have to show 1 year experience in java ,j2ee but can u please help me as too wht should i …

Member Avatar for verruckt24
0
99
Member Avatar for fitse

I developed a forum in php that works only in English but I wanted to make it work in another language as per the user request can anyone please tell me how. thanx in advance

Member Avatar for cwarn23
0
208
Member Avatar for max.yevs

so i was trying to make a very simple counter (although not sure if that's what you call it) [code=python]import time a = 0 def main(): time.sleep(5) b = a + 1 print (b) del(a) a = b del(b) main() main()[/code] i know this is very unefficient and there is …

Member Avatar for adam1122
0
146
Member Avatar for leegeorg07

i have python 2.5 and 3 and i want to use 2to3 to convert all of my programs to python3 but i dont know how to use it, if it helps in the Lib folder of python3 it is called lib2to3. any help or examples welcome.

Member Avatar for leegeorg07
0
197
Member Avatar for praveen_dusari

hi all, i want a different views to display my products for users like in this site [URL="http://www.naaptol.com/buy-online/WO-shopping-best-deals-W6O/cameras/digital_cameras.html"]http://www.naaptol.com[/URL] in this site user can see different views like grid view,consise view and list view and also the page displays very quickely in this site,how can i acheive this if i use …

Member Avatar for praveen_dusari
0
126
Member Avatar for Benniit

Am using Vb.NET 2008 and SQL 2008. I have a problem, when the execution reaches daAdapter.Update(dtTable) then I receive this error ""String or binary data would be truncated. The statement has been terminated"" Then the record fails to update. What could possibly be the error? Below is the complete code. …

Member Avatar for Teme64
0
165
Member Avatar for Designer_101

Hi I'm doing a project for express and star delivery. I have a varchar field for a week in my database The name is of the field is [B]28-03-09[/B] It then lists how much each customer owes ID ---- Address ----- 28-03-09 ------ will 1 29 Broomy 1.20 1.2 I …

Member Avatar for martin5211
0
81
Member Avatar for ravikiran032

I have created a dos script which deletes files in "g:/documents and settings/ravi kiran/recent" where my OS installed in g: drive. when i run the script it is promting for Y/N. so I have given input from a file "kiran.txt" using input redirector.But it is not working. the code is …

Member Avatar for rm_daniweb
0
151
Member Avatar for danish_k12

Hi, I am in Urgent need. I want to develop a software in vb6[coz good in it] to split pdf files. There are few software available for that but my issue is i want to split pdf file according to the data. The files contain statements some are 1 pages, …

Member Avatar for vb5prgrmr
0
791
Member Avatar for mansterdom

I'm attempting to read in a user's weightlifting history from a database using a php file(viewworkout.php) to first run the query and then a js file to get the results from the query. the script below is all i have so far, and it [code] <script type="text/javascript"> <?php include("viewworkout.php"); echo …

Member Avatar for essential
0
103
Member Avatar for yasirfarid

hello, i am using picture box, and coding on form load P1.Picture = "D:\My Document\My Pictures\Display Picture\ICE.BMP" why it gives "TYPE MISSMACH" Error. plz reply soon. Yasir

Member Avatar for mizkhyz
0
356
Member Avatar for mizkhyz

hi, am new here i need ur help. How to load an image from web browser control to an image in a visual basic form? i am using vb6.0, an imagebox, web browser object. i want to know to load the image from web to my vb form thank you …

Member Avatar for mizkhyz
0
79
Member Avatar for aixing

Hello, I'm doing a school project in .JSP and I came across this syntax error while inserting data in my database. [CODE] DB Query: INSERT INTO MainApplicant (MainApplicantId,FullName, MaritalStatus, Height, Weight, Gender, AgeAsOfLastBDay, DateOfBirth, PlaceOfBirth, IDNo, CountryOfIssue, Nationality, Race, HomeNo, OfficeNo, MobileNo, Address, PostalCode, CorrAddress, CorrPostalCode, EmailAddress) VALUES [COLOR="Red"]('P-8915710B,[/COLOR]'Jaslyn ', …

Member Avatar for aixing
0
154
Member Avatar for k2k

hi, i have a JFrame... one menuBar placed on a JPanel.. and then two JPanel with different things (let me call them ActionPanelOne, and ActionPanelTwo). i put the JPanel (with JMenuBar) North of the JFrame, and menuIteam will call the 2 ActionPanel individually to come up. my problem is: Once …

Member Avatar for k2k
0
182
Member Avatar for guest7

Hi, I am getting "Segmentation fault" error in line number in the following function. [ICODE]deque <string> text; deque <string> text_1; int circuit::writetofile(int maxno,char *fname) { /* Before writing the clauses correct the line p cnf */ //deque<string> text; std::string s,t; /* Counting the number of original clauses in the file …

Member Avatar for nucleon
0
240
Member Avatar for txwooley

I have an assignment to: "Wrap this code in a function called compare(x, y). Call compare three times: one each where the first argument is less than, greater than, and equal to the second argument." So I came up with this: [code=syntax] def compare(x, y): if x < y: print …

Member Avatar for txwooley
0
111
Member Avatar for songweaver

Hey guys, I am working on a fraction program where you can add, divide, subtract, multiply, and divide and it uses addressing. Anyway I got it to work except when I added an error message if to make sure that the 2nd Numerator, 1st and 2nd Denominator are not zero. …

Member Avatar for songweaver
0
90
Member Avatar for weblover

hi all ..i'm working on php application .......and i need to insert data into a filed in my table but in a certain condition ......exp:(insert into users (posts) values(...) where ...) i can't do this .....what should i do ? please help and thnx in advance

Member Avatar for Designer_101
0
346
Member Avatar for halfnode

[CODE=Cplusplus]#include "STDAFX.H" #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cstdlib> using namespace std; class Subject { private: string code; int cu; char pf; public: Subject(void); void setCode(string); void setCU(int); void setPF(char); }; class Student { private: string name; int count; int totalCU; Subject subjects[4]; public: Student(void); void setName(string); …

Member Avatar for halfnode
0
196
Member Avatar for nightGoddess

Ok so here is the problem: i am working on a code that will read a date from the keyboard in MM//DD//YYYY format. and then determines if it is a valid date or not. So far I have gotten: [code] import java.util.Scanner; /** * Program: UseCheckDate * File Name: UseCheckDate.java …

Member Avatar for nightGoddess
0
118
Member Avatar for txwooley

I am trying to learn Python. I have browsed through a few tutorials and tried to follow them until they get too complex and I try to find another one to give a different perspective. I am currently trying (and very much enjoying) the very basic "How to Think Like …

Member Avatar for txwooley
0
105
Member Avatar for csharplearner

Hi all, i have this bbcode for a [URL] which is not working. Please let me know whats wrong with it. [code] // Perform URL Search $post = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="javascript:go('$1','new')">$1</a>', $post); $post = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="javascript:go('$1','new')">$2</a>', $post); [/code] Thank you.

Member Avatar for martin5211
0
514
Member Avatar for harrykokil

hi every one i created a slidebar in tkinter. as i move it forward the value of a variable increases. but as i move it backwards, the value also increases. it should decrease. do u guys have a simple slidebar implemeted and which affect the value of an attribute? thanks

Member Avatar for vegaseat
0
108
Member Avatar for Bladtman242

Hi, which C# enviroment (i like to keep compiler, editer and debugger in the same program) can you guys recommend?

Member Avatar for Bladtman242
0
168
Member Avatar for archiphile

I am not only new here, but, I am a complete newbie to programing. I was on the hunt for some beginner tutorials today on the web. I found what I thought would be a simple yet in depth problem. I spent the last hour making sure that I had …

Member Avatar for RayvenHawk
0
175
Member Avatar for ahmadjhoney
Member Avatar for Designer_101
0
84
Member Avatar for flip121

I am in an introductory cs course, and we have a project due in a couple of weeks. I have asked my instructor if I can ask for help here and he did allow me to post the code and ask. The project is to write a simple game where …

Member Avatar for flip121
0
1K
Member Avatar for KJATL

Hello, I do not know if I fully comprehend the use of post. My understanding was that because $_POST was a superglobal, the values set applied to all pages after having been set. Here is the problem I am facing. 1) User enters an id number into field to delete …

Member Avatar for meleo
0
117
Member Avatar for wowawiwa

Hi All, First of all, thanks for taking time! The problem i've got is the following: I am trying to do an update to a range of data in a field: I've got some products stored in database like this l-aa223221 l-aa2243232fe32 l-aa224322ddew23 I would like to transforms these multiple …

Member Avatar for mail2saion
0
92
Member Avatar for scarebyte

Hi guys, I have a question concerning the following code I have written for a final project in an entry level C++ course. My task requires 3 level hierarchy (which i have) and use of polymorphism. The program works in this state, but I dont think I am actually exercising …

Member Avatar for scarebyte
0
769
Member Avatar for ppushpa

i have a file like a1 0.7 a2 0.5 b1 0.6 b2 0.8 a2 0.4 b3 0.6 a1 0.3 a2 0.4 a3 0.7 i want to read a file data and add values if it has same variables.Ex; a1=1.0 a2=1.3 a3=0.7 b1=0.6 b2=0.8 b3=0.6 whats the concept used to done …

Member Avatar for Ezzaral
0
69
Member Avatar for Francis87

Hey Guyz, i hav a pretty simple task, i had got some text files of data, which are like scores. and i need to be able to edit the txt file to say change a charector A -> X or B-> R etc.. etc.. it would be great if i …

Member Avatar for ArkM
0
314

The End.