199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oussama_1

Hi I have access database with two tables With a Relationship i can insert records into the first table with no problems but when im trying to insert a record in the second table i got error message Error message : Syntax error in INSERT INTO statement. - Microsoft Office …

Member Avatar for oussama_1
0
6K
Member Avatar for pwolf

Yesterday while browsing the web, I stumbled upon a blog where the author had written a post regarding what a computer scientist should know, in that list he had given links for further reading. One of these links was to a website [nand2tetris](http://nand2tetris.org/) where the goal is supposedly to build …

Member Avatar for pwolf
0
476
Member Avatar for krystosan

import sys from PyQt4 import QtGui, QtCore class Example(QtGui.QWidget): def __init__(self, items=None): super(Example, self).__init__() self.items = items or {'India':['New Delhi', 'Bangalore']} self.initUI() def initUI(self): self.combo = QtGui.QComboBox(self) self.cbBox = QtGui.QComboBox(self) self.combo.addItems(self.items.keys()) self.cbBox.addItems(self.items[str(self.combo.currentText())]) self.combo.move(50, 50) self.cbBox.move(50,80) self.combo.currentIndexChanged.connect(self.onActivated) self.setGeometry(300, 300, 300, 200) self.setWindowTitle('Learning by practice') self.show() def onActivated(self): self.cbBox.clear() self.cbBox.addItems(self.items[str(self.combo.currentText())]) def main(): …

Member Avatar for krystosan
0
283
Member Avatar for dyea.marcello

I am running a PHP script, and keep getting errors like: *Notice: Undefined variable: result2 in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 *warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 Line 200 looks like this: `<?php while($row = mysqli_fetch_array($result2))` What do they mean?

Member Avatar for pzuurveen
0
165
Member Avatar for dannybarh

Hi all, i have a table in db which contain some pdf and docx files. Am trying to display it in a way, so that when the user click on it, it will load the pdf and/or docx file from db in another/same window. this is what i have done …

Member Avatar for pzuurveen
0
3K
Member Avatar for kyle.mace.35

Alright so I am trying to swap fstreams. I do not use c++11 so there is no swap function. Is there anyway I can swap the files 2 fstreams have open? Or is there a way to get the name of the file that the fstream has open?

Member Avatar for kyle.mace.35
0
197
Member Avatar for vivosmith

import java.awt.Point; import javax.swing.*; import java.awt.Graphics; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import javax.swing.JPanel; public class painttest extends JPanel { private int pointCount = 0; private Point[] points = new Point[1000]; public painttest(){ addMouseMotionListener(new MouseMotionAdapter() {public void MouseDragged(MouseEvent event){ if(pointCount<points.length) {points[ pointCount ] = event.getPoint(); // find point ++pointCount; // increment number …

Member Avatar for mKorbel
0
372
Member Avatar for woochoi24

I have to convert it to using for loop from while loop. I don't know how to start with it :/ import java.util.Random; //to use the random number generator public class DiceSimulation { public static void main(String[] args) { final int NUMBER = 10000; //the number of times to roll …

Member Avatar for JamesCherrill
0
3K
Member Avatar for weeraa

I'm developing a web appication using ASP.NET and VB.NET. In my application im using ajax control tool kit. this is what happned to me... I load data to my AJAX combo box. But when it dropped down, there is a gap between combo box and dropped down list. I search …

Member Avatar for JorgeM
0
966
Member Avatar for BlazingShadow

Ok, I'm starting a Game Developing Company [I]<<snip>>[/I] And we are making an MMORPG Engine for our online game, Gods Online. I need any help at all, I have Notepad ++ as a Compiler. I have seen it been done before in VB6 [I]<<snip>>[/I] Basically, a server - Client Port …

Member Avatar for llUGGIllCrisllChan12
0
262
Member Avatar for RHNation

def main(): print('Welcome to the Fast Freight Shipping Company Calculator for Shipping Charges') print() #constants for the shipping prices weight_one <= 2 weight_two > 2 weight_three > 6 weight_four > 10 weight_one_rate = 1.10 weight_two_rate = 2.20 weight_three_rate = 3.70 weight_four_rate = 3.80 #get the weight of the package using …

Member Avatar for Lardmeister
0
4K
Member Avatar for mavtcr

Friends,I have made a programme where master datas are entered and updated in an Access database. In the database there are several Branches with three digit codes.Under each Branch comes several families with a unique number.I want to generate this uniqe number automatically.. To explain further BranchA with code 100,BranchB …

Member Avatar for mavtcr
0
140
Member Avatar for ange1991

private void button4_Click(object sender, EventArgs e)//delete { conn.Open(); comm.Connection = conn; comm.CommandText = " DELETE FROM Table1 WHERE Fname =" + textBox1.Text + ""; dataGridView1.Update(); conn.Close(); } HERE AM UNABLE TU DELETE THE RECORD IN MY DB ..

Member Avatar for ange1991
0
122
Member Avatar for Benjamin_4

Please how can i insert into two different tables in mysql using java. i tried this and its only for one table. so how can i insert into branches and items table simultaneously in the same code? try{ String sql = "Insert into asset_update (Date_Acquired,Item_Code,Serial_Number,Cost_Of_Acquisition,Estimated_Useful_Life,Depreciation_Start_Date,User,Status,Disposal_Date)values (?,?,?,?,?,?,?,?,?)"; pst=conn.prepareStatement(sql); pst.setString(1, ((JTextField)date_aquired.getDateEditor().getUiComponent()).getText()); String …

Member Avatar for Benjamin_4
0
3K
Member Avatar for CodyOebel

**Sure hope your still around Ancient Dragon your a life saver, and a great teacher** What I'm after-->I am trying to send a message to a button on the parent window-- Ok here's my problem. I am trying to automate an install for various applications. For my first automation process. …

Member Avatar for Ancient Dragon
0
401
Member Avatar for rwe0

I am not sure how to do this, please let me know your suggestions. I want to have my python program be able to read the site I visit with a browser (firefox) separately. An example of useage would be this: In the browser log into my account (credit card, …

Member Avatar for rwe0
0
242
Member Avatar for bright.silva

@Gribouillis and other gurus in the house, i just did this code but seem i ssem to be having difficulties in modifying it to work the way i want it.Its a bit lenghty, pls pardon me because am still a beginner in python.This program prints out where a particular property …

Member Avatar for bright.silva
0
153
Member Avatar for Alvin_2

I am building an online-offline application. The offline applications db should be synchronized with online app db. What I have done so far is, built an offline app with sql ce as backend, and used timer to check whether internet connectivity is available in each 5 minutes. The issue I …

Member Avatar for deceptikon
0
167
Member Avatar for gahhon

protected void subString() { SqlConnection conSplit = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdSplit = new SqlCommand("SELECT Password FROM Member WHERE (Username=@username AND Email=@email)", conSplit); cmdSplit.Parameters.AddWithValue("@username", txtUsername.Text); cmdSplit.Parameters.AddWithValue("@email", txtEmail.Text); conSplit.Open(); SqlDataReader dtrSplit = cmdSplit.ExecuteReader(); if (dtrSplit.Read()) finalString = dtrSplit["Password"].ToString().Substring(0, 5); dtrSplit.Close(); conSplit.Close(); } protected void sendResetPass() { MailMessage mailMessage = new MailMessage(); mailMessage.To.Add(txtEmail.Text); …

Member Avatar for gahhon
0
236
Member Avatar for NardCake

Everything below is currently a concept I'm working on and beginning to write, asking for thoughts or suggestions. Hello! Recently I've been brain storming tons, my mind went back to web development this time around. So I thought about some issues or annoyances, and I thought of a few that …

Member Avatar for NardCake
0
247
Member Avatar for SAM2012
Member Avatar for masijade
0
92
Member Avatar for munchlaxxx

I'm trying to make a Palindrome program and this loop is giving me trouble: for (int i= 0; i < 79; i++) { character[i] = scan.next(); if (character[i] == ".") {break; } } The user enters a word, and when they are done, they enter a period, which is supposed …

Member Avatar for jwenting
0
289
Member Avatar for praba_web

how can i fix the width of layout for different resolutions.and also how it works on different browsers such mozilla,ie,safari,chrome

Member Avatar for LastMitch
0
93
Member Avatar for siva28

I need javascript for automatic city display when i click one state from list box. for example one list box i fetch karnataka, then automatically cities display whatever cities there in karnataka in another list box . Please reply..am newbee of script writing....

Member Avatar for sameer.javed.10690
0
445
Member Avatar for Flurps

So I am interested in making apps for smartphone, like little games etc I need help because I'm not really sure where I should start, what languages I should learn etc Please could you all help me? Thanks :)

Member Avatar for alexloxton
0
170
Member Avatar for chdboy

I had two versions of SQLEXPRESS on my computer earlier ,now I have uninstalled 2012 SQLEXPRESS from my computer Now when I try to attach .MDF file made in 2012 version it gives me error. TITLE: Microsoft SQL Server Management Studio ------------------------------ Attach database failed for Server 'My-PC\SQLEXPRESS'. (Microsoft.SqlServer.Smo) For …

Member Avatar for chdboy
0
292
Member Avatar for jmartzr1

Hey everyone, I'm doing a practice problem and I'm stuck. The question is "Given an array a of n numbers (say doubles), consider the problem of computing the average of the first i numbers, for i ranging from 0 to n-1. That is, compute the array b of length n, …

Member Avatar for JamesCherrill
0
235
Member Avatar for narenfomax

What point one should consider while choosing mobile application development company for business?

Member Avatar for narenfomax
0
107
Member Avatar for Seswing142

Our program must create a guessing game that asks the user what the range they want to game to be and how many guesses they want. Once that is done it askes the user to make a guess and based on the guess its supposed to say Hot if it …

Member Avatar for stultuske
0
514
Member Avatar for bavenbabu

I cant install cakephp.I had wamp installed me.But when i try to install cakephp i got the following errors CakePHP: the rapid development php framework Release Notes for CakePHP 2.1.1. Read the changelog Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your …

Member Avatar for kevinpatel
0
2K
Member Avatar for kevinyu

Since I am just experimenting on this, (only localhost) I may like to ask for some ideas(since nothing is really coming out of my mind) about letting a user, who is going to, for example, register to a mini-social-networking site, with a corresponding username/password, personal details, etc. I would upload …

Member Avatar for kevinpatel
0
242
Member Avatar for akasekaihime

[COLOR="Green"][B]can you please help me! i need a code for making a POS. have been looking but could not find anything. I am making a POS for a market stand. it is our project. could you please help me! I need it within next week......help me![/B][/COLOR]

Member Avatar for rishif2
0
470
Member Avatar for eukiandfhull

Hi! please help me..... i just want to know what is the code for time record using ADODB connection. im so tired to get the right code for time attendance please help me... this is for my thesis.... Here's the command: txtEmpID --- textbox cmdGetdata --- command Button lbltime --- …

Member Avatar for rishif2
0
527
Member Avatar for RaigaX9

Hello everyone, I'm having some issues with my rock, paper, scissors JApplet program. Of course I have it "extends Applets" from the beginning of my class and I realized that this wasn't the same as JApplet. After I changed "Applet" to "JApplet", when I ran it, it doesn't look like …

Member Avatar for mic0280
0
577
Member Avatar for kshahnazari

I have a ajax fucntion that gets a json array from the php , 8 numbers formed like this ["0","0","0","0","0","0","0","1"] , As I get this in a var called data , data[0] and this kind doesen't work , how can I access this numbers ?

Member Avatar for Bachu
0
355
Member Avatar for Nebil

Hi all, I wanted to load a listbox with items from the database.I just wrote the code using oop. But on the interface i'm not sure how to read and insert the items in the listbox. How can i access the items being read at the client side(interface). Public Sub …

Member Avatar for elie.karkafy
0
210
Member Avatar for chanchalrawat

I am writing a code of the consumer producer problem in python , so far I am almost ready but my code still not running.. Would you help me in any way to finish it, I am new in python and am not sure what I do wrong, any help …

Member Avatar for Gribouillis
0
357
Member Avatar for kyle.mace.35

Okay so I am working on an external polyphase sort/merge and I am using peek to look at the next value in a file, there is just one problem. My peek gives me the wrong number, but if i just read the value it gives me the right value. What …

Member Avatar for mike_2000_17
0
293
Member Avatar for logicslab

Dear friends, I am using the XML-RPC Server to implement a simple login authentication as a web service . So I wrote a function in wp-includes\class-wp-xmlrpc-server.php like function web_auth($host, $db, $dbuser, $dbpass, $username, $password) { $dbhandle = mysql_connect($host, $dbuser, $dbpass) or die("Unable to connect to MySQL"); $selected = mysql_select_db($db,$dbhandle) or …

Member Avatar for LastMitch
0
287
Member Avatar for Trekker182

Hello all, I'm trying to read in a group of letters each on a new line and have the user guess them depending on how many games they want to play. My program works fine but I've noticed while testing it that for any more attemps, fscanf just keeps the …

Member Avatar for Ancient Dragon
0
159
Member Avatar for lexaeterna

good day! im working on a migration tool for mysql to mssql. is there any references or codes that you guys can share to me to create databases and transfer data from mysql to mssql? ive just got this idea of using dump mysql files since they also have sql …

Member Avatar for Ancient Dragon
0
140
Member Avatar for rajathvk

Hi, Please tell me the c code for finding a basic solution to a system of linear equations!Please help me as I am messed with the Gauss-Jordan Method.I am not getting the correct idea to do this in my project. Please help me soon.

Member Avatar for rajathvk
0
10K
Member Avatar for iwanna4get

This isn't really a help me how to program something this is where should I start I am currently watching thenewbostons c++ tutorials it is great and easy to follow I have knowledge of other programming language and I heard that c++ is quite different and a little complicated. Right …

Member Avatar for rubberman
0
202
Member Avatar for ncis_sg1

I have an assignment that I have been working on for the past few days that is making me go crazy. The instructions are as follows: Write a PHP script that tests whether an e-mail address is input correctly. Verify that the input begins with series of characters, followed by …

Member Avatar for ncis_sg1
0
1K
Member Avatar for Kleon

I want to writ a jscript code that asks user to type (example) his name and than that name to be stored in variable x. this is what i have done so far, i am very new on jscript se please somebody can correct me with this. var x = …

Member Avatar for JorgeM
0
154
Member Avatar for samuel terngu

My UPDATE vb.net code below displays this error message:conversion from string "UPDATE tblstaff SET fName='name' " to type 'integer' is not valid.Microsoft.visualBasic conn.Open() If conn.State = ConnectionState.Open Then com = New OleDb.OleDbCommand("SELECT *FROM tblstaff ") com.Connection = conn Dim cb As New OleDb.OleDbCommandBuilder(da) da.Fill(ds, "Eeestaffinfo") Dim sql As String = …

Member Avatar for samuel terngu
0
853
Member Avatar for overclocking

Hello, I am new to VBscripting and hope someone can help clarify the split options. I just started learning VBscrpiting a few weeks ago and Im trying to figure out how to do something. I haven't learned anything other than the basics so this question might seem super simple. If …

Member Avatar for overclocking
0
286
Member Avatar for mcoliver88

HI I have created a button called "start" , when the user clicks on it the buttons name changes to "reset". How can i write an if statment to say if the user clicks on the button = "reset" then do this. if (button = to "reset" and clicked) { …

Member Avatar for mcoliver88
0
111
Member Avatar for Start4me

Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be …

Member Avatar for Start4me
0
1K
Member Avatar for Paraborn

Hey guys, I'm new to this website as well as Python and well, programming in general. Anyway, I would like some feedback on this program I wrote, its purpose is to take a credit card number, which the user inputs and determine whether it is a valid or invalid credit …

Member Avatar for woooee
0
243

The End.