199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Xufyan

php mysql simple form help whats wrong with my code ?? every time i refreh my page a new field is created in database 'example' i want my code to create new field in database only if something is insert in text field here is my code [CODE]<?php $name=$_POST['name']; mysql_connect("localhost", …

Member Avatar for Xufyan
0
153
Member Avatar for Shankye

Hi friends .. I have a mailing_list file .. I wanted to check whether the visitor entered Email already exists in file? Is there any standard function for it ?

Member Avatar for Shankye
0
164
Member Avatar for twohot

I'm looking for ways to create variables in python3 as needed. E.g book1 = book(name1) # book is a class book2 = book(name2) book3 = book(name3) book4 = book(name4) book5 = book(name5) : : : V book-n = book(name-n) I have the names of the book in a list but …

Member Avatar for twohot
0
261
Member Avatar for dos_killer

hey ... im a new member of this community i have started developing python scripts for my phone i made a voice messenger for laptop using pyaudio in python and using sockets to transfer data [CODE] self.pin=pyaudio.PyAudio() streamin=self.pin.open(format=self.format, channels=self.channels, rate=self.rate, output = True, frames_per_buffer = chunk) global wf while 1: …

Member Avatar for dos_killer
0
163
Member Avatar for philmetz

For the following code I have a problem. When i fill in the form and submit it inserts a new database value. But when I refresh the page it does it again automatically with the same data, and keeps doing it whenever i refresh. How do i stop this? [CODE] …

Member Avatar for ErlendHL
0
3K
Member Avatar for nccsbim071

I have beed using CodeDom to generate codes. I was generating property using CodeMemberProperty. Can anybody tell me how to generate property like this: [code] get; [/code] instead of [code] get { } [/code]

Member Avatar for nccsbim071
0
290
Member Avatar for dipanjanpal

I am currently running Windows Vista Servicepack1 amd I am using C-Free4.1 compiler. plz check the C code...[CODE] # include <stdio.h> # include <windows.h> # include <winreg.h> main() { HKEY hkey; RegOpenKeyExA(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_ALL_ACCESS,&hkey); RegSetValueExA(HKEY_LOCAL_MACHINE,"Testing",0,REG_SZ,"HELLO",5) ; RegCloseKey(HKEY_LOCAL_MACHINE); } [/CODE] Plz help me with this code or suggest me some good codes in …

Member Avatar for ckoy
0
227
Member Avatar for surajitsweet021
Member Avatar for WaltP
0
153
Member Avatar for mihirpatel83

Hello everyone, I am new to PHP to so please bear with me. I need suggestion to achieve a task. I have to make a form where in initially there will be a combox box. Depending onthe selection ie value1, value2, value3 etc.......a sub form should open below the combo …

Member Avatar for diafol
0
135
Member Avatar for BigDeveloper

Hello, Can anyone make sure the two functions are correct? First, this is function should return true if all of the nodes are positive.otherwise, false. [ICODE]bool AllPositive(Node * h); { node* current= head; while (current !=NULL) { if (current < 0) { return false; } else { return true; } …

Member Avatar for BigDeveloper
0
118
Member Avatar for vedro-compota

Hello )) please tell me - where's the bug in this code - [ICODE] main() { short int n = 0; n=[U]getdet[/U] ( **m , n); } [B]short int ** [U]getdet[/U] (short int **m , int n) /*вычисляем определитель матрицы*/ { short int c=0; if (n==1) return **m; }[/B][/ICODE] compiler …

Member Avatar for vedro-compota
0
189
Member Avatar for solfinker

I'm trying to calculate the standard deviation from data in a grid, but sth goes wrong. I have tried with variable declarations inside and outside the function and the result stays the same. It seems to me that the loop doesn't work properly. Can you take a look at the …

Member Avatar for solfinker
0
173
Member Avatar for Naveed_786

Dear all, Please help me i want to check record already exists in database please modify this code please help [CODE]Private Sub txtempno_KeyPress(KeyAscii As Integer) On Error Resume Next If KeyAscii = 13 Then btncalculate.SetFocus rs2.MoveFirst While rs2.EOF = False If Val(txtempno.Text) = rs2.Fields!EmpNo Then txtsub.Text = rs2.Fields!subjects txtempname.Text = …

Member Avatar for AndreRet
0
205
Member Avatar for hunt4me619
Member Avatar for svatstika

Hi everyone! I'm trying to creat a class calling INT, which is equivalent to type int. I think we must creat every operator for this class like: +, -, *, /, %, pow(x,y),... I've never seen how does type int look like? May someone give me a introduction to type …

Member Avatar for mrnutty
0
214
Member Avatar for Unhnd_Exception

This should be easy. Haven't writen a C++ app in over 10 years. Trying to delve back into it. Will someone be kindley enough to show me a sample Function and Procdure Name the function AnyFunction that returns and integer. Name the procedure AnyProcdure Heres my .h and .cpp [code] …

Member Avatar for Unhnd_Exception
0
182
Member Avatar for I am a beginner

I have this code here but it doesn't seem to work; int answer1[10]; int answer3[10]; char answer2[11]; char answer4[11]; answer1[i1]= answer2[i2] - '0'; answer3[i3]= answer4[i4] - '0'; answer2 and 4 are numbers except in charactor state. answer1 and 3 doesn't equall to answer2 and 4; Can some one help;

Member Avatar for jonsca
0
95
Member Avatar for tcollins412

I have a login script that people use to register and login. I also have a contacts page where people can add contacts. Now how do i make it so the people that are logged in can add their own contacts that nobody else can see, only them when they …

Member Avatar for diafol
0
106
Member Avatar for mrcpp

Hi, I tried doing Project Euler #27 today, which asks the following: [QUOTE] Euler published the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 40^(2) + …

Member Avatar for mrcpp
0
310
Member Avatar for samaitaben

Can any one please assist with code for two objects coming from different direction. Subsequently, collide after intersection. The objects should be moving at 80km/h. And collision should happen shortly 30 minutes after take off

Member Avatar for tamiruu
0
286
Member Avatar for Kuroshi

Lets say I need to compare the x position of a ball with the x position of a rectangle to see if they have collided. Wouldn't it be easier to just declare x in ball as public so I can use ball.x instead of ball.getX()?

Member Avatar for mrnutty
0
95
Member Avatar for ziggazam

Hi i am new to programming and i decided to go straight to C++ and i am starting to grasp it. so i am trying random codes using my current knolage(Bad spelling) to make them. But i am trying an if else statement using my name and my brothers name. …

Member Avatar for ziggazam
0
108
Member Avatar for allen2663

I am writing a program to store data and want to make the main page uneditable I have an edit button that will allow editing from another form but I don't want to change stuff by accident. I have disabeled all of the boxes but don't like the way it …

Member Avatar for allen2663
0
76
Member Avatar for like_bilal02

Dear Freinds I want to help regarding datagrid. i want that when i select any value from combobox of datagrid( value in combobox come from databse) the textbox of same datgrid show the value of slecete combo box no from same databse simply i select a item no form database …

Member Avatar for ShahanDev
0
136
Member Avatar for goldmn480

I’ve been told to convert a standard C++ program into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. I would appreciate any help // Purpose // A program to demonstrate the application of a simple digital filter // // Overview // A sequence of data items and …

Member Avatar for Kanoisa
0
123
Member Avatar for Kanoisa

Hi guys, I have been away from programming for a while and i started back today now that i have some time again. However i have run into a bit of a brick wall. im trying to impliment a queue with a simplified interface for holding messages. What I have …

Member Avatar for Kanoisa
0
167
Member Avatar for dos_killer

hey .. i intend to make a bittorent client of my own .. preferably in python ( although im also open to java or C ) .. i have worked in making a download manager but never with p2p connections... i need advice for beginning...as in which modules would help …

Member Avatar for Schol-R-LEA
0
279
Member Avatar for redzbor

can anyone help me pls am using turbo compiler. Write function which will sort string argument in alphabetical order. You may assume that the strings contain only lower case letters, optionally,and no blanks or other non-alphabetic characters.

Member Avatar for SoulReaper1680
0
126
Member Avatar for dreamer_lek91

Is there any ways to allow the text box in a report to show the lastest date from the database? For example: 24/2/2007 15/4/2009 21/6/2009 14/7/2010 13/10/2010 i want the text box to have 13/10/2010, which is the lastest date out of the 5 date(which I have more in my …

Member Avatar for boblarson
0
140
Member Avatar for churva_churva

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JHelloFrame extends JFrame implements ActionListener{ JLabel question= new JLabel("What is your name"); Font bigFont= new Font("Arial",Font.BOLD,16); JTextField answer= new JTextField(12); JButton pressMe=new JButton("RressMe"); JLabel greeting= new JLabel(""); final int Width=175; final int Height=225; public JHelloFrame() { super("Hello Frame"); setSize(Width,Height); setLayout(new FlowLayout()); question.setFont(bigFont); …

Member Avatar for Akill10
0
281
Member Avatar for Imratzio

Hi all :), at the moment im programming a drop down list of a petstore and going through chapters from the php my dummies book. I show you my example. [CODE]<?php // Program name: buildselect.php // Description: Program builds a selection list from databse require_once("config.php"); $query = "SELECT DISTINCT * …

Member Avatar for Imratzio
0
85
Member Avatar for dreamer_lek91

I have these few dates in my database and I would like to have the latest date to be shown at my report footer. 03 dec 2001 15 may 2010 08 mar 2007 14 jan 2004 29 sep 2009 can any kind soul plz help me?=) thx alot in advance=)

Member Avatar for boblarson
0
360
Member Avatar for dreamer_lek91

[B]how can i disable the save function. The database that I am making now is being shared by many users and i do not want them to mess up with my design and programming stuff that i had done. I have tried making the file into ACCDE format but it …

Member Avatar for boblarson
0
187
Member Avatar for dan76

Hi Guys, I am working on developing a simulation program that tracks multiple vehicles entered by the user and copy the current location of that vehicle in the specified text file. For example, If the user inputs 3 then the program must generate 3 text files for each vehicle and …

Member Avatar for myk45
0
219
Member Avatar for DiamondCiara

Hi all, New here and hoping you can help me. Here's what I'm trying to do: I have a database table full of customers and their master records, with fields for their ID number, email, name, address, etc. I have another table for store credit, which contains only the customer …

Member Avatar for DiamondCiara
0
209
Member Avatar for frankvw

Hi, Firstly, I am quite new to python so hopefully this could be quick answer for any kind sole who give help. I am trying to connect the data files created from one piece of equipment to another process that require similar, but not the same, data .txt files. The …

Member Avatar for frankvw
0
103
Member Avatar for jackmaverick1

I am trying to make a card class that has a bunch of functions to make it possible for the AI to judge what cards can be played. The card game I am working on at the moment is Rummy by order of my brother. I made a 3 pointer …

Member Avatar for jonsca
0
284
Member Avatar for dynamyt3

Hello.I'm a begginer in C++. I'm trying to make an algorithm that will shuffle randomly the elements of a matrix[4][3],but i don't know how to start... Can someone help me with the algorithm ? I think is something like this but i'm not sure : [code]bool test=false; int x; x=rand()%4; …

Member Avatar for dynamyt3
0
1K
Member Avatar for xamonix

Hi I'm trying to modify a Shipping module for an online shop but I'm not getting it to work...I want to put two options on that, if customer chooses first option he gets one price for the shipment if he chooses second option then he gets a different price. The …

Member Avatar for diafol
0
931
Member Avatar for newbie14

Dear All, I have a scenario where I notice in my log file for few different instances there is one query running and another one is called and kills the former running query.My application is based on C# and using .net connector.I have attached two sample cases but I have …

Member Avatar for newbie14
0
195
Member Avatar for novice20

telnetlib is helping me to connect to remote host and do the user login. but, when i try doing the super user login, it hangs ............... .............. ............... User="abc" Password="abc" Superuser_id="yyy" su_passwd="xxx" #-- establish a telnet connection to all the remote hosts in the list except the host running script …

Member Avatar for Simplified
0
174
Member Avatar for xbox221

Hi, this i'm trying to make a loop that would read a list of character (including numbers) that you type in terminated by a period and that would only write the letters and ignore the other characters. How would i do this?? Thats the code ive been doing but there …

Member Avatar for xbox221
0
970
Member Avatar for sunwebsite

I have data value of a table column. I want to know in which database and in which table and in which column the data value appeared in mysql.

Member Avatar for smantscheff
0
1K
Member Avatar for vivi288

Hey guys, I'm trying to normalize a database for a friend, who has a car database. I'm trying to separate the database by having one table for the car brands (BMW, Honda, etc), one table for the car types (SUV, car, sports car, etc), and the final table for the …

Member Avatar for smantscheff
0
282
Member Avatar for satiss7pwr

Hello, I have one asp.net application at server side, having oracle database, Now my question is what is minimum requirement at the client side i.e, should i install oracle at client side to access database from client side? Thanks

Member Avatar for Ramesh S
0
158
Member Avatar for emongs

can some one help me w/ codes in making picture editor. that allows the user to use the following: Picture ToolBar Color Picture Color BackGround Effects Insert Text Alignment of Picture Resize thanks for the help

Member Avatar for AndreRet
0
142
Member Avatar for 54uydf

I'm using VS 2010 and I don't have CrystalReportViewer in my toolbox. under Reports I only have "pointer" and "ReportViewer". after I clicked on "show all" I see the CrystalReportViewer and few other new things but it's not clickable (gray) I checked on the web and I found this answer …

Member Avatar for 54uydf
0
176
Member Avatar for Ender330

Help!!! Ok I have been on this problem all day. Searching and Searching and just when I thought I had it...the script didn't work as it was supposed to. My URL looks like this: [CODE]http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678 [/CODE] I need to parse the email, username and password from the url into the …

Member Avatar for Airshow
0
218
Member Avatar for libathos

I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?

Member Avatar for libathos
0
109
Member Avatar for Ritesht93

My teacher gave me a program which will maintain the attendance of some class daily , i have made it fully , i use eclispe IDE -JAVA SE , there are a lot of swing components in it like textfields,checkboxes,JList etc so there are Listener classes for the components. constructor …

Member Avatar for Ritesht93
0
205

The End.