199,114 Archived Topics
Remove Filter ![]() | |
Private Sub cmdAdd_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection Dim rsAdd As ADODB.Recordset Set rsAdd = New ADODB.Recordset Dim Query As String con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Asus\Desktop\VBTHESIS_liel2\ListofMembers.mdb;Persist Security Info=False" con.CursorLocation = adUseClient rsAdd.Open "SELECT * FROM census WHERE ID ='" & strId & "'", con, adOpenStatic, adLockOptimistic 'If textboxes … | |
On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically … ![]() | |
ok so here is my code: <html> <body> <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_DB", $con); //Get all the data from the table $result = mysql_query("SELECT * FROM Vehicles") or die(mysql_error()); echo "<table border = '1'>"; echo "<tr><th>ID</th><th>Year</th><th>Make</th><th>Model</th> <th>Milage</th><th>Description</th></tr>"; //keeps getting the … | |
Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_two', 'testOne', 'testTwo', 'test_one'] but the without considering the special characters and case it should be … | |
I'm trying to go thru a file with product codes and rateband prices and quantities (productcode, pricea, qtya, priceb, qtyb, pricec, qtyc, priced, qtyd, pricee, qtye). For a certain group of up to 4 productcodes I need to sum up the values of the price cells after testing the qty … | |
Hi guys. Feels great to post back on DaniWeb. Hope everyone is doing great! I am currently playing around with the google websearch api. They have a javascript example where they created a "hello world" page. https://developers.google.com/web-search/docs/ This code only returns 8 pages of each type of search. I was … | |
Hello, I have the following Python Code. I would like to replace the block2=(letter1<<16) + (letter2<<8) + 32 using array module. ANy help is appreciated! for letter1 in range(65,90): for letter2 in range(65,90): ptext=chr(letter1)+chr(letter2)+chr(32) block2=(letter1<<16) + (letter2<<8) + 32 ctext=pow(block2,e,n) table[ptext]=ctext | |
Hi there, Please check my program. When i compile it i am getting error. Cannot find default constructor to initialzie base class. #include <iostream.h> #include <conio.h> class Parent { protected: double num; public: Parent(double n) { num = n; } void sub() { num -= 2.0; cout << "num … | |
I am using a wordpress template, and being that it's written in php, which I'm not so familiar with, I want to know the following: Is there a way for me to add code to the index.html of my template? What I want to do is make a solid white … | |
Hi, Everyone, i'm here with another problem, I'm working with a windows form where i am adding Panels programmaticaly. With same time when its busy with adding Panels to form I want to work, like- **Loading another form or do another command in another form**. plz help, here is my … | |
Hello developers, I have written this code which walks through the html files in a directory and fetches event and date information and print it on screen. I want this data to be stored in a database. I have installed mongodb and pymongo module. How can I insert the output … | |
Hello Developers, I am a beginner in python and need help with writing a regular expression for date and time to be fetched from a html document. In the following code I am walking through the html files in a folder called event and printing the headings with h1 tag … | |
hi every one i have create a table with name upload id int notnull name varchar notnull type varchar notnull size varchar notnull content varchar not null and my code is the follwing but instead of iamge it show garbage value <form method="post" enctype="multipart/form-data" action="image.php"> <table width="350" border="0" cellpadding="1" cellspacing="1" … | |
Hello, I have products table like below Table products { -product_id- -categories- 1 2,4,5,6 2 1,4,3 4 3,5 } Table categories { -category_id- -en_label(catname)- 1 cat1 2 cat2 3 cat3 4 cat4 5 cat5 6 cat6 } i want to display categorynames using sigle query productid en_label 1 cat2,cat4,cat5,cat6 2 … | |
I have some text in a mysql table, stored as text and taken from an html <textarea>. For example of some text. Hi this is Glens webpage When I display this on my web page it comes out as Hi this is Gles webpage. How do I get it to … | |
hi all i update guestinfo all are update but the gender and martial status is not updated which is in comobox here is the button code private void button7_Click(object sender, EventArgs e) { guests myguest = new guests(); myguest.Guest_id = Convert.ToInt32(guest_id.Text); myguest.First_name = first_name.Text; myguest.Last_name = last_name.Text; myguest.Gender_status = Convert.ToString(gender_status.SelectedValue); … | |
I have a working bulk mail script which is supposed to be sent to thousands of users. I have started sending the mails but needed to abort because there was something wrong with the message body. How do I resume the mail from where it left off? Assuming it was … | |
Hello I am really scratching my head around this ,i want to create a class function with more than one option Someathing like I don't really know for what to look for (basically a class whithin a class whithin a class and so on)... so i'll give an example: Events.add.coord(); … | |
Hi I am currently working on a project where I have to find the most frequently occurring word in an imported file. I have imported the file and can display what it says, but Im having trouble with this part: [COLOR="Green"]"Create a Word class that has a string and a … | |
private void getCount() { SqlCommand cmdCountPenalty = new SqlCommand("SELECT PenaltyID FROM Penalty", conOOC); SqlCommand cmdCountBill = new SqlCommand("SELECT BillID FROM Bill", conOOC); SqlCommand cmdCountPayment = new SqlCommand("SELECT PaymentID FROM Payment", conOOC); conOOC.Open(); SqlDataReader dtrCountPenalty = cmdCountPenalty.ExecuteReader(); while (dtrCountPenalty.Read()) { ++countPenalty; } dtrCountPenalty.Close(); SqlDataReader dtrCountBill = cmdCountBill.ExecuteReader(); while (dtrCountBill.Read()) { ++countBill; … | |
hi Guys...i have two jquery functions.first one is showing data in grid and we can also update data in grid.. 2nd one is filtering data like if we want to see data of 'farhad' so it will bring data according to 'farhad'; i want to merge both functions in one … | |
So my teacher gave us this file #include <stdio.h> #define MAXVALS 100 /* max number of values we can process */ int tableFill(double a[], int max); void tablePrint(double a[], int num); double tableAverage(double a[], int num); int tableMatchingElements(double a[], int num, double target); int main() { double table[MAXVALS]; /* array … | |
I wanna know how i can make a .net form with textboxes allow me to enter variables and have them trasnfer to a webpage's.. For example i have a form with textboxes for say name, last name, birthdate, password. I wanna enter those variables on the form and have them … | |
Hello I am slowly learning more and more about C++ and more importantly programming technique and I have reached the wall that I am sure quite a few before me have probably hit - refrences/pointers and management of the heap. Whilst I try and familiarize myself with the above, I … | |
 # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a … | |
hi plz try to solve method of deduct fees that chrges$2.5(using withdraw method)for the forth transaction and resets the number to zero how to resets the transactioncount zero in child class checkaccount #include <iostream.h> #include <conio.h> #include <string> class bankaccounts { protected: double balance; public: bankaccounts() {balance=0.0;} bankaccounts(double b) {balance=b;} … | |
Hello, Is it possible to have sub menu to an item in combobox as shown in the picture? thanks | |
Hi everyone. I've been struggling with a quicksort implementation here. I think - scratch that - I know i'm overrunning an array (erm, vector) based on how it explodes, but I honestly can't see it and I have no debugger. I slept on it but fresh eyes didn't get me … | |
Hi There. I joined here some three years ago when i created my ONE and ONLY Python program that actually functions as intended *YAY*, it's a little ugly and i've decided to return and learn more, improve it and maybe start up some new projects. I'm a little confused as … | |
Hello buddies, I have question about pagination am using this code $tbl_name="items"; //your table name // How many adjacent pages should be shown on each side? $adjacents = 2; /* First get total number of rows in data table. If you have a WHERE clause in your query, make sure … | |
Hey! Just wondering how you make the code keep asking for a correct file input until a correct file is inputted, rather than just exiting the program when incorrect? f = input("Enter a file name: ") try: infile = open(f, "r") except: print("File not found:", f) text = infile.read() print(text) | |
Hello there I have question about how to update multi row in MySQL database, I used while function but this do the job with more time and no indecator when to finish the work, is there any efficient way to update like 1000 row with one button and make indecator … | |
Hi I have variables set in the head of the page as they are used for other parts of the page. I have a problem where by I am trying to get the variable to echo out in the result. I have tried several ways but either ther eis an … | |
when i copy and paste text from a webpage to a txt file and have perl open it, i get these strange boxes where there should be spaces. how do i use perl to replace them? | |
How to show image for the drop down list? have tried a few alternative but dont work. Thanks <tr> <td class="label"><label for="kelas">Kelas:</label></td> <td class="field"> <select id="kelas" name="kelas" > <option value="Pilih kelas" selected="selected"></option> <option value="1 Tekal" >1 Tekal</option> <option value="1 Tekad" >1 Tekad</option> <option value="1 Tekun" >1 Tekun</option> <option value="1 Tabah" … | |
this program is 2 classes and it has 2 JLabels, 2 JTextFileds, and 2 JButtons... it convert temperatures from Fahrenheit to Celsius and from Celsius to Fahrenheit.. Class 1: [code] // Author: Helen Toma import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JTextField; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; … | |
Hi All, firstly thankyou for taking the time to read this, and in advance thanks for the help :) im a newbie to this site, and also to programming. my project is a BMI calculator, so far, i have coded the (input) textboxes, made it switchable from metric to imperial … | |
I develop a project that consist of many tables. In admin menu table names shows dynamically in a dropdownlist from a database. Pls help me to do this | |
Hi folks.. I had a problem and looking for the answer..The exact question of mine is [this](http://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account) Sorry that i dint typed the entire question here but i'm afraid that i may not able to explain well if I type that entire thing. But that was my exact question which … | |
i'm trying to modify a java code. I have a jSpinner where the user have to choose a number like minimum 0 and after this step the user can continue by clicking the OK button and continue his steps... So here what i want is when the user didn't enter … | |
Hi, i try to handle a Neagtive number exception in my code. i tried this but it shows "illegal start of type" why please? Here is my code: public class JPanelTemporal extends javax.swing.JPanel { public JPanelTemporal() { initComponents(); } public void setDuration(int duration){ this.jSpinnerDuration.setValue(duration); } public Time getTime(){ Time time … | |
Hi, I've been given an assignment to write a java program that determines if a random given number is Prime OR not. But we also have to make comments in each lines, explaining the function/purpose of each lines to this java coding. So far, I've gotten the program corrected! All … | |
Good Morning Ladies and Gents, I am having the following issue. I have implemented a captcha widget to my downloads page since there were a log of spam files that were coming through. After hours of working on this I have finally gotten the Captcha app to work and forward … | |
hi... i want to insert data from array using mysql from php..and now i using this code : for ($i = 0; $i < count($data1); $i++) { $insert_sql = sprintf("INSERT INTO detail_paket (id_paket, menu_paket) select paket.id,'\"%s\"' from paket where paket.nama_paket='$nama_paket'",%data1[$i]); mysql_query($insert_sql); } data1 is the array.. what is the correct … | |
>Hi guys,..i've two arrray data1 and data2 then i do intersect to get same value between data1 and data2, and >use count to get total same value,..how to ARSORT count result from intersect array multidimensional? <?php $data1 = array( array( '7' => 'chelsea everton', '8' => 'everton villa', '9' => … | |
Hi guys, I have created a gridview which is supposed to display 3 columns: | view | Name | Position | The gridview becomes visible based a a selection of a dropdownlist. When I load the gridview from the dropdownlist however, the grid view appears as such: | view | … | |
My problem with my TIC TAC TOE game is that it does not save end the game when someone has won if they have more than four moves. THe method of my code to check if someone has won is that it goes over a list of list. The list … | |
hi folks,basically i am facing a problem importing a package, dir structure is like src |---com |---example |---model |---BeerExpert.java package com.example.model; import java.util.*; public class BeerExpert { public List getBrands(String color) { //code goes here } } src |---com |---example |---web |---BeerSelect.java now in BeerSelect.java i am importing the BeerSelect … | |
I have a project developed in PHP in the Windows platform and it is running well. I am now trying to run it on LINUX (Red Hat and CentOS). It isnot going beyond the index page. I have zeroed in on line where where it is getting stuck. It is … | |
Imports MySql.Data.MySqlClient Public Class Form1 Public sConnection As New MySqlConnection Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If sConnection.State = ConnectionState.Closed Then sConnection.ConnectionString = "SERVER = localhost; USERID = root; PASSWORD =; DATABASE = vb;" sConnection.Open() End If LoadPeople() End Sub Public Sub LoadPeople() Dim … |
The End.