199,114 Archived Topics
Remove Filter ![]() | |
I have an sql code that is retreiving a row with more than one line, Is there a way to make it combine those two lines into one line. select revertrsn from LN08PENm where aano in(754,870,1136,1138,1139,1140) the data coming in the row that I am retreiving is like this: As … | |
Hello Community, I was wondering if there is a way to goto the direct link of a file (eg. http://example.com/files/test.txt) and for it to download insted of loading and displaying the file. I want to do this for every file in the "files" folder and only that folder. | |
I have Two Sql Table. 1st Table name is **Allowence** and Columns are EmpId,Name,Basic Salary,Da,Ca,HRA. 2nd Table name is **Deduction** and columns are EmpId, PF,ESI,Others. I wants to display all these column to a DataGridView. also I want to calculate Gross Salary and display this Gross Salary value to DataGridView. … | |
Yesterday when I was working on php script I noticed that categories and subcategories works seperatly if I clicked on main category its show all articles under this main category and nothing imported from subcategories, now am working on somthing like this, so what should I do to avoid this … | |
HI i have many forms in my application.. when some one see any form so i want to show form as "Only readable form" means i want to use disable form.. when someone click edit button so my form should enable for editing.. how to do it? can anyone help … | |
Hi! I have the following table: <table> <tr> <th>Cost</th> <th>Quantity</th> <th>Sum</th> </tr> <tr class="txtMult"> <td class="val1">1</td> <td><input class="val2" type="text" name="txt/>"</td> <td><span class="sum">0</span> </tr> <tr class="txtMult"> <td class="val1">2</td> <td><input class="val2" type="text" name="txt/>"</td> <td><span class="sum">0</span> </tr> </table> What i want to do is to multiple row by row cells: val1*val2. I found … | |
Stock Recording System - I basically wants to see the data recorded in the table sql. yet this is not the case. mysql_query("INSERT INTO Produk FROM stock VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah FROM stock VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk FROM stock VALUES ('Tanggal_Masuk')"); Is that instruction not enough to record … | |
Please any one can help me to fix my last statement of code I'm traying to have a user input the temp and then convert ot either F or C. But my last if else statement doesnot engage well with the over all code. I'm beginner Java programnig. Thank you … | |
I've been trying to send email using php. But I've been getting this error since... **PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\www\IT3126Prac\Reservation\insertReserve.php on line 36** I know I have to configure something … | |
Given a comma-delimited file like this example: "92528","1","36","38280","51801","PLANT 5 - LINE 1","37", "92528","1","8","37450","51801","PLANT 5 - LINE 1","37", "92528","2","8","37896","51801","PLANT 5 - LINE 1","37", "92528","3","8","37450","51801","PLANT 5 - LINE 1","37", "92528","61","32","37450","51802","PLANT 5 - LINE 2","37", "92528","62","16","38721","51802","PLANT 5 - LINE 2","37", "92528","63","8","38722","51802","PLANT 5 - LINE 2","37", "92528","64","4","37450","51802","PLANT 5 - LINE 2","37", "92528","149","8","37450","51804","PLANT 5 - … | |
go through every combination ie(0,0,0,0),(0,0,0,1), .... ,(3,3,3,3) But in a general way such that it's always 0-3, but it may be 4 digits or it may be 5 digits or any other number? If I know the length I could do nested for loops, but since I don't...is there an … | |
Hi all, So I'm trying to learn how to do a hash table with separate chaining, but it is giving me several issues. The hash table I'm trying to make will hold instances of a class named Person and uses Person's data member phonenumber for the key. Currently, the main … | |
here is the slideshow styles, <style> body {font-family:Arial, Helvetica, sans-serif; font-size:12px;} .fadein { position:relative; height:361px; width:640px; margin:0 auto; background: #000; padding: 0px; } .fadein img { position:absolute; left:0px; top:0px; } </style> here is the javascript <script type="text/javascript"> $(function(){ $('.fadein img:gt(0)').hide(); setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 5000); }); </script> and here are the phps … | |
Hi guys, I'm working on a holiday scheduling app and I was wondering that if a person wants his holiday for example 10 days. id uid data1 data2 ore tip_concediu ts 7 244 2013-01-25 2013-02-05 3 2 2013-01-25 16:08:35 How would it be possible that I could track the holiday … | |
Hi, I am working on an assignment where i need to create controls dynamically in a Form and when i click "execute button" in the form it should generate a query based on the dynamic controls selection. Each dynamic control reflect one database column. The control's can be combo,textbox etc. … | |
Is anyone running Ruby on Rails on an Imac G4 or G5? Im on a tight budget right now and dont wanna spend more than I have to. Are either of these models working for anyone? If youre not using them, could I still use either one of these models? | |
I need to create chart for log Database fields are, *** host * pageurl * VisitPage * VisitorIP * VisitDate * VisitorTimeZone * VisitTime * browser * operatingsystem * referer** I need chart for **Toatl Visits, Uniquie Visits, Impressions, Online Users, Pageviews, %New Visits, % Uniquie Visits, %New Visitor, %Returning … | |
Hello all, I am working with a program to calculate the days in a given month. We are to use functions and bool. I have the below code, which worked until I tried to create the function. I continue to get an error about "numberOfDays" not being initialized however if … | |
HI Guys... I have jquery list menu box of sliding.. i want o use scroll bar..i have imported requrired files but when i import jqxpanel file so nothing show.. when i block jqxpanel file so lisemenubox shows but without scrollbar..i have also enable true scroll bar but its not showing.. … | |
I want to make a combobox that will grow or shrink according to the screen size any help? | |
hello this is a homework so please dont give me the answer to the problem. int num1, num2; for (num1 = 1; num1 <= 101; num1++) { for (num2 = 1; num2 <= 101; num2++) { if (num1 / num2 == 5) Console.WriteLine(num1 + "/" + num2); } } Console.ReadLine(); … | |
Problem : If ComboBox contains "x" display DialogBox1. Whats the code after it? | |
I am trying to print out a report for a 12 month interest summary. So far, I cannot seem to get the ending balance for the previous month to be the starting balance for the next month. Here is the code I have so far: #include <iostream> #include <string> #include … | |
hi, i have looked on net all over and cannot find an occupations table. basically for my application i need a table of occupations so if anyone has this in sql or excel please can you post up here? many thanks | |
hi, i have been struggling to find a good autocomplete script with mysql backend. i now have an easy to use one and all is working, however in my page after the search has been typed and user selected instead of the users name appearing in the search box i … | |
Private Sub RefreshGoSearchCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RefreshGoSearchCancel.Click If (AddressBar.Text = "") Then WebBrowser.Refresh() ElseIf (AddressBar.Text <> "" And "." And "") Then WebBrowser.Navigate("www.google.com/search?q=" & AddressBar.Text) Else WebBrowser.Navigate(AddressBar.Text) End If End Sub This is the code for The AddressBar to refresh when text hasn't changed, search … | |
Hi all, I am planning to design mibile app using c,c++ if possible.can any one please suggest me how to design it if possible. Please your thoughts regarding this and appreciate your suggestions. Thanks, Va. | |
Hi, I want to serialze an object. I use the binary formatter because it's a very complex object. I solved a lot of SerializationExceptions, but there are two that I don't understand or know how to handle. It says "The type "Ivi.Visa.Interop.FormattedIO488Class" in assembly "Ivi.Visa.Interop, Version=3.2.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1" is not … | |
All, Is this adeqaute to close all resources associated with clientSocket? public void readAll(String[] s) { using (TcpClient clientSocket = new TcpClient(host, port)) { NetworkStream clientStream = clientSocket.GetStream(); StreamWriter toOmega = new StreamWriter(clientStream); StreamReader fromOmega = new StreamReader(clientStream); toOmega.Write(readTemp); toOmega.Flush(); //Command is not sent until buffer is flushed s[0] = … | |
![]() | Hello guys, I am using connected architecture to develop an application. For every form am designing there requires to put the connection string to connect to databse. Is there any way that If I change connection string at one point it is automatically changed at other. Thanks |
Hi ALL, I want to analyze my data by a python script. The data are in multiple file and they are kept in different directories. Moreover, the name of the files in those directories are same but have different extension. I want to get my output just by providing a … | |
Hello Daniweb, I'm learning Python at the moment, and I'm starting by looking at automating some of my server tasks, namely things like backups, virus scans and checking for IP changes (being on a dynamic IP, automating this task will be very helpful). I've started by creating some code which … | |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace Dbconnection { public partial class Form1 : Form { public Form1() { InitializeComponent(); } SqlDataAdapter da; SqlConnection con; DataSet ds1; private void Form1_Load(object sender, EventArgs e) { con = new SqlConnection("Data … | |
I am looking for a C# editor and I am wondering what is the best one (hopefully for mac) and I noticed that Visual studios is good (but i believe it is windows only though)... I am wondering if anyone has any recommendations for an editor (unless Dreamweaver or Coda … | |
# Purpose: Tax input amount # #----------------------------------------------------------------------- # VARIABLE DEFINITIONS salesAmount= 0.0 salesTax=0.0 total=0.0 #----------------------------------------------------------------------- # CONSTANT DEFINITIONS #----------------------------------------------------------------------- # FUNCTION DEFINITIONS #----------------------------------------------------------------------- # PROGRAM'S MAIN LOGIC salesAmount = float (raw_input("Enter the sales amount:")) salesTax = float(salesAmount*0.08) total = salesAmount + salesTax print "The sales amount is $", salesAmount print … | |
hi guys, please post here some php tips, i need some help in php, thanks | |
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Drawing.Imaging; public class Program : System.Windows.Forms.Form { public Program() { Contoh1(); } private void Contoh1() { this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint); System.Threading.Thread.Sleep(2000); this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form2_Paint); } static void Main() { Application.Run(new Program()); } private void … | |
hello, I am working on a project that involves a bit of directory manipulation. Until now i only had to create create directories as per user input, so till now the commnad mkdir worked fine: mkdir("c:/test"); But now i have to do some manipulations on the string to get the … | |
Hey guy I'm wondering if there is a tutorial or example code for a C++ RPG inventory system. I've surfed the website and I only discovered to make two classes, item and inventory and to use each of them for item's detail and holding the items in a linked list. … | |
//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged … | |
$url=$_POST['url']; $ip = gethostbyname($url); $long1 = ip2long($ip) if ($long1 == -1 || $long1 == FALSE) { echo 'Invalid IP, please try again'; } else { print $url; echo $ip ?> bu this code i get ip address but i need the country name aslo with this ip address. is thers … | |
I need help to Write a PASCAL program that reads in ten values and then sort them using the bubble sort method | |
Hi, can someone explain me the entire working of jquery.filedrop.js? I have used the filedrop for a project but i am interested in knowing it fully in detail so that i could improve its functionality and modify the code according the reqiurements i get from my client. Thanks. | |
hi, i am a newbie to ajax. i have created 2 html file in the following :- <<< a.html >>> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <title>Admin Page</title> <script> function loadURL(cDiv, cURL, cGetPost, cParam) { var xmlhttp; if (window.XMLHttpRequest) {// … | |
i am developing a online chat application, for that i have a server with static ip. i want to give only small javascript to include in client website. here my requirement is obtain ip address and the location of the user of the website. websites my in in any language … | |
hello, i want to make a script in php that identify the pc. actually i want to make a script like antivirus software which can only install at one pc. if we want to install it on other pc it cant. and also if we install it on same pc … | |
Hi, I am new to Java and is working on code in java which i need to keep a static sql script in property file and passing variable to it through java code and then iterating that property file to pass the variable value and writing that generated script to … | |
i have search box,listview and 3 labelcaption namely: fname,lname and total. my database name is students and table name attendance. if i search particular student and display in listview, once i click the name on the listview automatically display on the labels, and display total number of records of that … | |
Yo. I am making a project in vb6. The backend is MS Access 2003. Data is entered into the form and stored in the database table. The code: With cnct .BeginTrans .Execute "INSERT INTO Employee_Info (EI_CNIC, EI_FirstName, EI_LastName, EI_Gender, EI_Birthdate, EI_Country, EI_Language, EI_MaritalStat, EI_Education, EI_Designation, EI_Salary, EI_ResdAddress, EI_ResdContact, EI_Cellphone, EI_EmailID, … | |
The End.