199,124 Archived Topics
Remove Filter ![]() | |
I've written a simple program in Visual Basic 6 pulling data from a database into a table. My program starts out with "Dim db as DataBase" and "Set rs as RecordSet" and then goes on to pull up the data. It runs fine on my computer. However, when I try … | |
i have a label input & i want to show image base on label input string to show the picture with picture file name. | |
I have a LogIN form - usertxt and passtxt and a button, and what I want to know is how to call the values of the fields user and password in the database access to open the MAIN FORM..I am connected using DATA1.RECORDSET..Is it possible instead of using ADODC?.... | |
hi guys is it posible to generate numbers using array and link list in data structure? example generating number 1 to 5000, can you give me some examples? | |
this is my login code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php session_start(); $year = time() + 31536000; if(isset($_POST['remember'])) { setcookie('remember_me', $_POST['email'], $year); setcookie('remember_me2', $_POST['pass'], $year); } elseif(!isset($_POST['remember'])) { if(isset($_COOKIE['remember_me'])) { $past = time() - 100; setcookie(remember_me, gone, $past); } } ?> <head> <link rel="stylesheet" href="css/validationEngine.jquery.css" … | |
Hi All, Interfaces cannot be instantiated. Could you please explain why the following is valid: interface MyInterface{} MyInterface[] myInterface = new MyInterface[]{"a", "b"}; Cheers! | |
unable to insert values into mysql table, only showing blank page. but after commenting mysql query code it's displaying echo $success part and not throwing any error message. code: if(!empty($_POST)) { // keep track validation errors $first_nameError = null; $last_nameError = null; $mobile_number1Error = null; $addressError = null; $magent_cityError = … | |
Do I have to wait to post code? My phone is on desktop view and I do not see a tool bar to post code. | |
I have the following code to login in my php page. Whenever I enter my username & Password & hit login, I get the following error. Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\fyp\qmc-login\login.php on line 59 here is my code: <?php session_start(); ?> <?php include_once("../includes/connection.php"); … | |
Write a shell script, guess.sh that implements a simple number guessing game. When run, the shell script prompts the user to guess a random number between 0 and 100. If the user guesses incorrectly, the script prompts the user “Guess higher” or “Guess lower” as appropriate and allows the user … | |
I am defining the following variables inside a bash script (note: I ultimately want to pass these values to the bash script from the commandline but I haven't gotten that far yet): OFS=',' INPUTFILE='~/data.txt' OUTPUTFILE='~/delimited.txt' FIELDWIDTHS='1 10 4 2 2' Next, inside the bash script I'm attempting to call an … | |
I tried dreamincode but the mods there are pretty mean so i have come here to humbly beg for help. First off let me start by saying I'm a new programmer and I am frustrated and cofused by the class i'm in prg 420. I need to pass this assignemn … | |
Hello, I am struggling at trying to get custom fonts working in my application. I have added the font file to the project's resources via the 'Add Existing File...' option, and setup the following code... > FontFamily standard; Font wt; > [DllImport("gdi32.dll", ExactSpelling = true)] private static extern IntPtr AddFontMemResourceEx(IntPtr … | |
How to update multiple data in listview | |
Define a function named isDivisor that has two parameters of type int and returns a value of type bool. A call to isDivisor(m,n) should return true if and only if (iff) m divides n. For example isDivisor(6,24) will return true but isDivisor(5,24) will return false . Note that every number … | |
This question relates to another thread. I want to hide a div and keep a div hidden whether it's before or after the DOM loads. I can use hide() to hide the div, the div that is suppose to be hidden, will be hidden behind a div that is half … | |
Define a function int getRoots(double a, double b, double c, double & s1, double & s2) that solves a quadatic equation with coefficients a, b and c. If there are no real roots than the return value will be 0 and the values of s1 and s2 will be left … | |
Define a function void order(int & a, int & b, int & c, bool ascending) that places the values in ascending or descending order, depending on whether the last parameter is true or false . For example, if x, y and z contain the values 3,1, and 2, respectively, then … | |
Hi! I have this code from the internet but it didn't work well. I want to set the margin of the Report Viewer during runtime. Because I have this form to fill up. Instead of handwriting it. I programmed it. But there are certain positions of the textboxes in which … | |
Hey, So I am trying to add a new row to the database populating it with information from user input on my form..at the moment its only adding one row and updating it everytime I enter new information instead of adding new rows each time? I think I havae to … | |
*hi guys..i have a problem with my php code..i have use onchange event..but it's not working! i don't know why! :'( *let me explain first.. - i want if i select a state then next the branch will appears auto if related..but only the related branch will appear..not all branch … ![]() | |
Hello Friends, Pls I need your help. I am designing a website that has to do with customizing items and ordering for the items. Am example of this is http://www.moonpig.com/uk/Product/Customise/1/LL896 I know this has to do which jquery, ajax & javasctipt. I am a php developer. Pls which scripts do … | |
hello i want to convert my all videos in .flv format while uploading is there any other way except ffmpeg to convert all format videos in flv format??? can anyone help me its urgent | |
Right now I'm having a problem getting my program to run, it compiles with no errors. The only previous error I had was that it stated reached end of file while parsing which I think I fixed. Can anyone help me? import java.util.Scanner; public class Payyroll2 { public static void … | |
I have to use inheriantce and polymorphism to calculate the force required to pull (at a constant velocity) and the weight of material that can be carried by a train consisting of many different types of cars. The weight ( *W* ) and rolling friction coefficient (f) can be used … | |
Hi, everyone please i wanna know how calculator and pc's could calculate the square root of a number and please explain the algo behind the sqrt() function in cpp for example !! :) | |
Ok so I found this code online and though it looked interesting so I ran it but can someone tell me why it doesn't work? I have scapy installed btw #!/usr/bin/env python from scapy.all import * from scapy.error import Scapy_Exception m_iface="wlan0" filter_message="http" count=0 def pktTCP(pkt): global count if pkt.haslayer(TCP) and … | |
Hello I am doing maintenance on a web server, and have several js files present which I need to categorize. However, I am faced with the dilemma of identifying between clientside js files and severside ones. Is there a distinct way to identify between these files? | |
Hello, I will make a program with c++ about binary tree, how to implement this structure tree to C++ [Click Here](http://1.bp.blogspot.com/-LyRoy4Vg5D4/UzFIproOq5I/AAAAAAAAAe4/UapVUA_7ZPA/s1600/tree.jpg) | |
Define a function bool isWin(char board[][3], char target); that returns true if character target has a winning position on this tic-tac-toe board. That means three occurences of target in a line, column or along either diagonal. For example if target is 'O' and if board[0][2], board[1][1] and board[2][0] all equal … | |
Hello, I want to open and dialog box on onclick of image. for that , i had written below onclick code to call function and pass parameter to it. this $skills_id is unique. What I want next is, using this $skills_id, I want open dialog box which fetches and shows … ![]() | |
Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); … ![]() | |
i've 3 files 1) search-installment.php 2) pay-installment.php 3) update_installment.php first step enter card no into search-installment.php posting value search_cardno to pay-installment.php then updating particular installment row clicking pay button in that row which opens form in modal window after pressing submit button it's updating data in table, but while refreshing … ![]() | |
Hello, I am having website error that I still do not know what causes it. In several of my users browsers (firefox), some words in the website content that I build turn into a blue link and also there is a Java ads in it. Another one, index.html turns into … | |
Hi Dw I know this may not be popular to many people but it a standard for financial industry. I'm developing a WOSA XFS app, I've developed the part that deals with calculating denominations, determines how many CU can be dispensed for each CU denomination. Now the problem is that … | |
Hi everyone, First time here, my early days in c++, will really like to be mentored(the experts) | |
I want to identify xml nodes that does not have specific attribute. Below is the sample xml. I want to retrieve nodes that does have the "response" attribute. I found atricles that help identify node that has a specific attribute but not my requirement. <top node> <viewentry position=1 children = … | |
Hi, am interfacing gps tracker TK106 with our online platform. The data we get from gps device is in this format (06667778889-9BP05000066677788899140815A0533.8206N00009.7045W000.0165936157.6200000000-L0000F51C) Instractions form [this site](http://sourceforge.net/p/opengts/patches/1/) explains the variours data sets in the string above, for example the first 11 digits 06667778889 is the device's programmable ID ,used in placed … | |
from xml.dom import minidom dict[1] = "country" xmldoc = minidom.parse('TestStep.xml') itemlist = xmldoc.getElementsByTagName('TestStepBody') print len(itemlist) print itemlist[0].attributes['Author'].value itemlist[0].setAttribute("Author",dict[1]); for s in itemlist : print s.attributes['Author'].value dict[1] value will be changing dynamically, So i need to dynamically change the attribute value of the Author in python. I this possible? if so … | |
Hello I use MinGW 4.8.2 and Qt IDE i tried to use `gprof`, I added the following flags QMAKE_CXXFLAGS_DEBUG += -pg QMAKE_LFLAGS_DEBUG += -pg to `.pro` file and extarcted the `gmon.out` file but i don't know how to convert it to a `.txt` file. the document say gprof options [executable-file … | |
# query1 # > reply 1 > reply 2 *your reply with button and textbox option* # query 2 # > reply 1 > reply 2 *your reply with button and textbox option* # query 3 # > reply 1 > reply 2 > reply 3 *your reply with button … | |
I would like to break up a list into sublists of 3 elements each. I have this code, but it will give an index error when the length of the list is not divisible by 3. mylist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] … | |
For reference: http://en.wikipedia.org/wiki/AVL_tree I remember having touched these briefly in my CS Fundamentals 3 class, now some 5 years ago. Haven't touched them since. Does anyone use these on a semi-regular basis and in what context? | |
Hi i need help with the code ive done in java, iv got a project im doing and i get this when i run my program. --------------------Configuration: <Default>-------------------- Usage: java [-options] class [args...] or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a … | |
Hi! I'm having hard time where to put the system.out.print code in my assignment. please check my codes, I'm still new and learning in java sorry If I have mistakes :) here: import java.util.Scanner; public class SelectionSort { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter … | |
Inspired by violent python and some of the scripts in there, I would like to make a http request sniffer to sniff http requests on a network. In the book violent python there is a tutorial for a section to make a google keg logger (gets what people search on … | |
i am doing attendance monitoring system for student only not for staffs and only concern lectures have the privilages to mark the attendance (if one staff taking the class then another one cannot mark the attendance for same period so help me to design er-model and data base design and … | |
Hello, This is the first time I've attempted creating controls at runtime, and I'm not sure why the following code isn't working; private void Popup_Load(object sender, EventArgs e) { Panel panel2 = new Panel(); panel2.Size = new Size(1280, 720); panel2.Location = new Point(20, 20); panel2.BackColor = Color.Red; this.Size = new … | |
/*Ok so I have this code and it works fine but the problem is that it gives an out put like this one: 2014 June 2014 August Supposedly I would like to have august just below June...I tried putting the Group by Year(Postdate)..and it almost gave me the solution but … |
The End.