120 Topics

Member Avatar for
Member Avatar for RigaConnectCom

This is working code $sql = "REPLACE INTO 2_1_journal (Number,RecordDay, RecordMonth) VALUES "; $insertQuery = array(); $insertData = array(); foreach ($_POST['row_id'] as $i => $row_id) { $insertQuery[] = '(?, ?, ?)'; $insertData[] = $row_id; $insertData[] = $_POST['date_day'][$i]; $insertData[] = $_POST['date_month'][$i]; } if (!empty($insertQuery)) { $sql .= implode(', ', $insertQuery); $stmt …

Member Avatar for RigaConnectCom
0
1K
Member Avatar for taekiewzz

I have a table called `DUTY` (columns: `dutyid, dutyname, staffid`) and a table called `STAFF` (columns: `staffid, staffname`) In order to be fair, each of the staff will be auto assigned to each duty entry (record). So what should I do whenever I would like to insert a duty entry, …

Member Avatar for pritaeas
0
250
Member Avatar for harbi.dayah

I'm new to php and dymanic web applications using PHP I'm tyring to read from table Id(primary key) to other form and save othe table as forign key. I appreciat for you help

Member Avatar for harbi.dayah
0
1K
Member Avatar for stanslous.mubaiwa
Member Avatar for sumeshpremraj

I'm learning PHP and MySQL, and I'm trying to create a simple online pastebin website. I want to create both anonymous and logged in user pastes. I created a 'user' table with uid, name and password columns, and a 'pastes' table with pid, paste and uid columns. In a viewpaste.php …

Member Avatar for sumeshpremraj
0
211
Member Avatar for Chesico

I'm using the statement insert into Oscar.MenuItem (idMenuItem, name, description, price, idCategory, code, sortIndex) select * from menItem; The result is: Error: Cannot add or update a child row: a foreign key constraint fails (`Oscar`.`MenuItem`, CONSTRAINT `fk_MenuItem_Category1` FOREIGN KEY (`idCategory`) REFERENCES `Category` (`idCategory`) ON DELETE NO ACTION ON UPDATE NO …

Member Avatar for pritaeas
0
241
Member Avatar for RubyRuby

[WinForms].I have 3 columns in a gridview - code,Qty,name.If a cell(Say Code), is in edit mode, pressing the arrow or tab keys will fire the 'CellEndEdit' event and after that,moves the selection to the next cell. I want to have different selected cell if it is an arrow key and …

Member Avatar for RubyRuby
0
810
Member Avatar for tumblinmonkeym

I have to write a program that creates a binary search tree from a file and output it and several other requirements. One requirement that I cannot figure out is how to find the search cost for each node. These are the instructions I was given Calculate the search cost …

Member Avatar for gusano79
0
650
Member Avatar for wlhj1

I am working with a tabbed form. On the first tab I have a datagridview with customers in it and a searching textbox. I have that working. On the second tab I am placing another datagridview with customer transactions and other data. The customer transaction table has a CustomerID Column …

Member Avatar for wlhj1
0
286
Member Avatar for tony75

How can I insert two row to supplier table? CREATE TABLE supplier ( supplier_nr NUMBER(10), supplier_id VARCHAR2(20) NOT NULL, price NUMBER(10) NOT NULL, CONSTRAINT supplier_supplier_nr_pk PRIMARY KEY(supplier_nr), CONSTRAINT supplier_supplier_id_fk FOREIGEN KEY(supplier_id) REFERENCES varugrupp(supplier_id) );

Member Avatar for tony75
0
291
Member Avatar for dinhunzvi

i have a php associate array and i want to convert it to a javascript array. how best do i do this

Member Avatar for code739
0
150
Member Avatar for zvjezdan.veselinovic

Hi everyone. My name is Zvjezdan Veselinovic and I am a student at Rasmussen College over in New Port Richey, Florida studying Game and Simulation Programming. For my student portfolio, I want to create a "tron-like"/ "snake-like" game called Colors and Explosions. I have so far arrow key movement. That …

Member Avatar for deceptikon
0
467
Member Avatar for crapgarden
Member Avatar for pritaeas
0
118
Member Avatar for arishy

I am attaching the saved html of a usage report. Basically, it gives you daily usage by date. I needed a better data like the accumulated usage for the month to date of subscription, AND the percentage of quota use ..etc.. I wrote jquery to do that. My first attempt …

Member Avatar for arishy
0
106
Member Avatar for LastMitch

Hi I can't access on **PHP** section for **25** minutes close to half hour now. It keep on saying **Disallowed Key Characters**. Are you updating the section?

Member Avatar for LastMitch
0
387
Member Avatar for JySysAdmin

I'm trying to connect to my Fedora machine using my SSH PEM Key. I've added the key to .ssh/authorized_keys and am still getting promted for a password. The machine can connect to other machine's with the key, but not my Fedora one. I've setup CentOS to accept SSH Keys but …

Member Avatar for rubberman
0
331
Member Avatar for javaprog200

Hello, I am unable to register the right key event from this program. Besides setting the focus of JPanel to the KeyListener, I am not sure what else can be done. I will be grateful for any help. Thank you! import java.awt.*; import java.awt.event.KeyListener; import java.awt.event.*; import javax.swing.*; public class …

Member Avatar for javaprog200
0
249
Member Avatar for tayyabatiq

This code is supposed to write everything the user writes, and keep writing until the user presses ALT key. do{ //declaration string A; getline(cin,A); ofstream file; ifstream file1; //file opening file.open("C:\\Dev-Cpp\\file.txt"); file1.open("C:\\Dev-Cpp\\file.txt"); //file input file<<A; file.close(); file1.getline(B,1000); file1.close(); //file output cout<<B; } while (wParam!=VK_MENU); The problem is, it says: wParam …

Member Avatar for tayyabatiq
0
202
Member Avatar for DrChocolate

Dear Everyone, I have a functional instant search (in draft at [Click Here](http://www.woofwoofwoof.org/is08/search.htm)). I want the search to function very similarly to Google. This will help sighted people figure it out, and bring me much more in compliance with accessibility standards. Unfortunately, I'm missing two "Google-oid" features: . 1) **How …

Member Avatar for Airshow
0
342
Member Avatar for jalpesh_007

Dear all, I have declared following two hashmap. `public static HashMap<Integer,String[]> m1 = new HashMap<Integer,String[]>();` `public static HashMap<Integer,String[]> temp = new HashMap<Integer,String[]>();` At starting point of my execution both map will contain key from 1 to 20 and mapped value with it. Means key value pair are same in both …

Member Avatar for NormR1
0
352
Member Avatar for poojavb

Hello All, I have a Java program which is using a JOptionPane in it. eg. Are you sure u want to close the application? Yes No When I click with the mouse on the No button it works correctly but if I select the No button using the TAB key …

Member Avatar for poojavb
0
405
Member Avatar for python1956

I am trying to sort by key, but it's not working because I don't think that the thing that I'm trying to sort on counts as a list (in fact I think it is an ndarray?): y = np.genfromtxt("1400list.txt", dtype=[('filename','S20'),('freq','S20')]) gives me y as something in the form: [('a070918_215953.SFTC', '1369.000') …

Member Avatar for Lardmeister
0
4K
Member Avatar for MonsieurPointer

Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) …

Member Avatar for Reverend Jim
0
255
Member Avatar for aero31aero

I want to make a program that analysises which key has been pressed the most as a part of my school assignment. I want that the key input be recieved by my program and later by the program it was intended for. Is there a way to do this? Please …

Member Avatar for WaltP
0
231
Member Avatar for aero31aero

I want to make a program that analysises which key has been pressed the most as a part of my school assignment. I want that the key input be recieved by my program and later by the program it was intended for. Is there a way to do this? Please …

Member Avatar for aero31aero
0
204
Member Avatar for aabi

HI GUYS .. im trying to make foreign key relation between whishlist_tbl(foreign) table and account_tbl(primary key) table both are integer data container ## scenario ## i have user deatail table that is account_tbl and whish list table i.e wishlist_tbl i want that when user make a wish book then he …

Member Avatar for aabi
0
459
Member Avatar for avidthrows

Hi, I want to implement a basic license key verification system into my software. I know the basics of python and pygame, etc, but I've never read anything about implementing this type of drm into my software. Quite frankly, I don't even know where to start. Yes, I understand that …

0
129
Member Avatar for rahulroshan

i want key code for b+n combined, so that function works only when first b key is pressed and then n is pressed happens. if only n is pressed another function should happen. Plz help thanks

Member Avatar for Taywin
1
145
Member Avatar for neokwazz

please i would like to know how i can get windows 7 home premium 32bit product key

Member Avatar for caperjack
0
200
Member Avatar for akashsinha123

I have a hashmap with key as unique word in string and value as count of duplicates word in string. I want to arrange the output by value. ex: String is "my name is my name and is my my". Output as: my 4 name 2 is 2 and 1 …

Member Avatar for pritaeas
0
102

The End.