199,114 Archived Topics
Remove Filter ![]() | |
Hi , I want to copy the selected fields, eg:SELECT * FROM table1 where flag='1'; to another table ,table2 can anyone plz help me | |
Hi Guys, I tried searching on the net for a code to compress/zip files in VB.Net, but could not find any solution. Can anyone help me with this - I do not like that one of using 3rd party components to do this. Alternatively, I need a code that will … | |
I got the following error, please help me to resolve this problem.. ui.h:10: error: âloginâ has not been declared db.h:7: error: âloginâ has not been declared controller.cpp: In member function âvoid control::casino_game()â: controller.cpp:15: error: âloginâ was not declared in this scope controller.cpp:15: error: expected `;' before âloâ controller.cpp:34: error: âloâ … | |
[CODE] #include<stdio.h> main() { int array[100], n, c, d, swap; printf("Enter number of elements\n"); scanf("%d", &n); printf("Enter %d integers\n", n); for ( c = 0 ; c < n ; c++ ) scanf("%d", &array[c]); for ( c = 0 ; c < ( n - 1 ) ; c++ ) … | |
i'm working on visual studio 2008. I'm trying use fopen to open txt files and it does not give any errors but its not doing the required task either. i've to submit this project on monday! please help here's part of the code: [CODE]#include <stdio.h> #include<iostream> #include <conio.h> #include <string> … | |
//Payroll Program Part 2 package payrollprogrampart2; /** * * @author Zach */ import java.util.Scanner; public class PayrollProgramPart2 { public static void main(String args []) { System.out.println("Welcome to Zach's Payroll Program"); Scanner input = new Scanner( System.in ); String employeeName; System.out.print("What is the employee's name?"); boolean stop = false; while (!stop) … | |
How 1000 10,000 1,00,000 number converting in php? i mean splitting numbers like 100 1000 10000 100000 [B]to [/B] 100 1,000 10,000 1,00,000 with ' , ' thousand, lack, crores... | |
Hi all, I'v just installed SQLServer 2008 RC and concurrently it installed Visual Studio 2008 automaticlly. But I got a problem, when I creat a new project in Visual Studio 2k8, there were only 2 Project types : "Business Intelligence projects" and "Visual Studio Solutions". It's different to what I … | |
I'm making an SIC 2 pass assembler in C++. And I'm not very good at files in C++. The following code segment is supposed to read LABEL OPCODE OPERAND from the input text file . All it has to do is to identify each of those based on the tab … | |
Dear Experts, Your Help is always Appriciated Scenario: OS.server 2003, VB +ASP.NET VS2005 My application is developed in 2003 on vs2003, now validation error while checking in design mode. This application is using two classes with if condition. Error 36 Cannot switch views: Validation (Internet Explorer 6): Attribute 'class' can … | |
Hi Friends, Am developing a project for a college with all basic module of creating department , Course details , Student Attendance etc....My question is I need to store Daily attendance for final report , So how can i store those data rather going to sql databse ? Is it … | |
Aim: I am learning pointer of C,now I want to write a function to change the value of a variable . [CODE]#include<iostream> using namespace std; void change (int * k) { if (*k==1) *k==0; else *k==0; } void main() { int a=1; cout<<a<<endl; change(&a); cout<<a; }[/CODE] I thought that n … | |
[CODE]#include<iostream> #include<cmath> #include<fstream> using namespace std; void readfile(int arr[][9],int s) { ifstream in; in.open("file.txt"); if(!in) { cout<<"File Not Found"<<endl; exit(1); } for(int i=0;i<s;i++) { for(int j=0;j<9;j++) { in>>arr[i][j]; } } } void possibilities(int arr[][9],int s) { int pos[9]; int x=0; bool check=1; int power=0; for(int i=0;i<3;i++) { for(int j=0;j<3;j++) { … | |
[CODE] <?php //email(to,subject,message,headers,parameters) $to="swissknife@gmail.com>"; $subject="Hi"; $message="Hello my friend"; $from="swissknife007@gmail.com"; $headers="from:".$from; mail($to,$subject,$message,$headers); echo" mail sent"; ?>[/CODE] This is a very simple php script to send an email. However ,it is not working for me and I am getting the error. [CODE] Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" … | |
anybody can solve my problem?????Access denied for user 'ODBC'@'localhost' (using password: NO)[ICODE]Access denied for user 'ODBC'@'localhost' (using password: NO)[/ICODE] | |
I don't know javascript very well... I have a form with the name register_group and a radio button for pc_parade_float with yes/no options. I want to display a different comment depending on if they clicked yes or no in the radio button. The code I have is as follows: [CODE]<script … | |
This is what I currently have so far. The script needs to Add, Edit, Search, and View the address_file. Any help would be greatly appreciated. [code] trap "rm ./f 2> /dev/null; exit" 0 1 3 addressfile=~/address_file loop=x while test $loop = "x" do clear tput cup 3 12; echo "Address … | |
Hi, So I have a very simple server/client program using winsock. In C++. Using MingW as a compiler. This is the code part which does the connecting: [CODE]for(;;) { if(Connect = accept(Listen, (SOCKADDR*)&Server, &size)) { std::cout<<"\nConnection was reached"; } }[/CODE] How can I send and receive simple text from server … | |
This code is based on code from series of programs [URL="http://www.ferg.org/thinking_in_tkinter/"]'Thinking in tkinter'[/URL] This code is not perfect, especially it does not recognize key release when mouse moves out of button area during push. Leave event could also be captured for that to stop the event in that case. | |
Prekė.h [CODE] #include <string> using namespace std; class Prekė { private: string pavadinimas; double pagaminimodata; int kiekis; double kaina; double vartojimolaikas; public: Prekė(); Prekė(string pavad, double pagam_dat, int kiek, double kain, double vart_laik); ~Prekė(); string ImtiPavadinimą() { return pavadinimas; } double ImtiPagaminimoDatą() { return pagaminimodata; } int ImtiKiekį() { return … ![]() | |
I am having some difficulty finding good, current information about how to correctly install FFMPEG-PHP in XAMPP on a Windows 7 machine. If anybody knows where to find such information, please post the URL here and I would be very grateful. Thank you very much. Happy Holidays! | |
Hello all I need a little help finishing my assignment. I am given a text file that contains information about vehicles in an auto dealership. The vehicle records consist of the following fields: VIN, Make, Model, Year, Color, Date of purchase, Cost, Date of Sale, Sale Price and Revenue. The … ![]() | |
Hello, Anyone know how to get a session var. from a while loop. Here is some code: [CODE]<form id="form1" name="form1" method="post" action=""> <p>Age: <select name="age" id="age"> <option value="0">Select Age</option> <?php $i=1; while($i<=100) { echo '<option value="1">'.$i.'</option>'; $i++; } ?>[/CODE] It's from a drop down menu. Here is the code for … | |
I am having trouble compiling an exe. I tried both py2exe and cxfreeze with similar results, I made an exe but it didn't work. I figured out that I needed to send the image files and sounds with it (should have thought of that to begin with). Now that I … | |
wen i open mdi through the login form, the forms inside the mdi child forms dont seem to execute.pleez help me. | |
I need to read in instructions from a file, then with those instructions, insert the names and scores below the instruction into a linked lists. I've tried using getline, and >> and I keep getting errors. Here is what I have so far: [CODE]#include<iostream> #include<fstream> #include<cstdlib> #include<string> using namespace std; … | |
i m making a blog using my own code .. i m not using wordpress or any sort of thing .. i m doing it manually. i want to show related posts section which would contain at least 4 links of another posts which are related to that particular post. … ![]() | |
Well, i am making a blog in which i have to show images and links in my every post.So i have to use <a> & <img> tags in my post. but I m also using htmlentities function for "post" string variable ( like this -- <?php echo htmlentities($post); ?> ) … ![]() | |
how trigger an event on specific time of day pls suggest code | |
I was writing a makefile for a web interface program that installs the cgi scripts to a (Linux) OS. The makefile works fine, but it needs to be able to install to different directories for different distributions (Fedora, Ubuntu). On Fedora, the scripts need to go to /var/www/cgi-bin and on … | |
where i can but the servlet APIs ? to compile java class from bat file | |
I have several strings that I want to split using different delimiters such as ",{}() [CODE]$ppl[0] = "Balko, Vlado \"Panelбk\" (2008) {Byt na tretom (#1.55)}"; $ppl[1] = "'Abd Al-Hamid, Ja'far A Two Hour Delay (2001)"; $ppl[2] = "'t Hoen, Frans De reьnie (1963) (TV)"; $ppl[3] = "1, Todd \"5 Deadly … | |
![]() | Im doing a Contact form for a client and my php is limited. I need to make everything in this required. Here is the code: [CODE] <?php ob_start(); if(empty($_POST)) { $status = ''; $display_form = true; } else { $fname = $_POST['fname']; $lname = $_POST['lname']; $pname = $_POST['pname']; $email = … |
[CODE]<?php $current_date = strtotime('now'); $due_end_date = 60*60*24*7; // Number of seconds for 7 days $sql = "SELECT * FROM sre_log WHERE current_date >== '$due_end_date-$current_date' ORDER by vtype"; $due_end_date = mysql_query($sql); //echo "$current_date"; while($a < $sre_log_num) { $id = mysql_result($sre_log_result,$a,"id"); $vtype = mysql_result($sre_log_result,$a,"vtype"); $due_end_date = mysql_result($sre_log_result,$a,"due_end_date"); $current_date = mysql_result($sre_log_result,$a,"current_date"); } echo … | |
[CODE]class Newthread implements Runnable{ String name; Thread t; Newthread (String threadname) { name=threadname; t=new Thread(this,name); System.out.println(t); t.start(); } public void run() { try { for(int i=5;i>0;i--) { System.out.println(i); Thread.sleep(1000); } }catch(--------){ --------} } } class A{ public static void main(){ new Newthread("one"); new Newthread("two"); new Newthread("three"); try{ Thread.sleep(10000); }catch(){} } … | |
So I'm writing a code that imports pygame to play files of music notes. I set each note to a button, 24 notes for 24 buttons. However, the program will also have four more buttons: "Record", "Stop", "Playback", and "Quit". when the record button is clicked, it will append the … | |
This is CURL Ready function , to use it just call do post if the page you are calling has post variables , or get if it has get variables :) | |
[code]void display_list() { shoes_node *current_ptr; current_ptr = head_ptr; // move current_ptr to head of list if(current_ptr == NULL) { cout<<"\n\t\t\tNO RECORDS TO BE DISPLAY \n"<<endl; } else(current_ptr != NULL); { cout<<"\n\t\t\t ****************************\n"<<endl; cout<<"\n\t\t\t SHOES RECORDS \n"<<endl; cout<<"\n\t\t\t ****************************\n"<<endl; do { cout<<"\n\t\t\t SHOES'S ID : "<<current_ptr->idkasut<<endl; cout<<"\n\t\t\t SHOES'S BRAND : "<<current_ptr->jenama<<endl; … | |
Hi! I'm making a console game with cars. I am stuck trying to make the enemy car approach. If you have any thoughts or ideas, let me know! I'm thinking of using classes, but i dont know how to make them :) Is this legal? It probably isn't but here … | |
Hi everyone, I have made a script which logs the users ip into a table. Here is the table: [CODE] ID - PKEY A.INC IP - VARCHAR ENTERED - TIMESTAMP [/CODE] What I would like to happen is that after a row has been inserted, I want to set up … | |
Hello, I've had a good search to see if anything else was posted in relevance with this, but can't find anything that suits my exact needs. I've been given a Java assignment to take in a file, and read how many characters it has (omitting white-space and new lines) and … | |
Hi All, I am very new to PHP and still learning lots... :) I am using the below code to populate a drop down list from my database. But I am not sure how to display/send the results back to the same page. The fields in my Database are: Base, … | |
how to sorting this, i've problem to sort by *jum_nilai* from the highest until smallest void lihatData(void) { if(pertama==NULL) printf("Data tidak ada !!!"); else { printf("%3s %-20s %-12s %-5s %-7s %-7s %-5s %-5s\n","No","Nama","Jenis K","N Mtk","N B.Ind","N B.Ing","N IPA","Jumlah"); printf("--- -------------------- -------------- ------- ------- ------- ----- -----\n"); sekarang=pertama; do { printf("%3d … | |
I have been trying to send email for 2 days. using php I have tried different methods but to no avail . I am sure I am making some small mistake. Please can someone give step by step procedure of sending mail using Xampp? | |
Hey everyone, I was doing an exercise from Java book and I didn't get how this code works.. I know how the switch statement works. However, I don't understand why they pass a number to the Random class and also to the .nextInt() method on rand. And also, I am … | |
[CODE] <html> <head> <title>search</title> </head> <body> <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Keyword <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["txtKeyword"] != "") { $objConnect = mysql_connect("localhost","lafamosa_kermis","lafamosa1980") or die(mysql_error()); $objDB = mysql_select_db("lafamosa_mystore"); // Search By Name or Email $strSQL = "SELECT * FROM … | |
![]() | I am trying to create a walker that goes through directories. Here are the inputs and outputs which I have partly working. I am using a test directory but I would like this to be done on any directory which is leading to some problems. [CODE][IN]: print testdir #name of … |
hi just finished my first project and it was quite a journey (hahaha, considering its my first time to do it. Just wanna ask, with this code:..... [CODE]Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintiTicket.PrintPage e.Graphics.DrawString("COUNTER 17.Your number is " & iTicket, TextBox1.Font, Brushes.Blue, 50, 50) … | |
Hi everyone I am using IMAP to retrive msg from the mail.I need to know about how can we split up the readed and unreaded mail regardingly.For example we need to fetch only the unread mails how can we do this... Thanks | |
Dear Team, I have a question regarding LINQ 2 SQL and data integration with textbox: I have one textbox and button on my form, one stored procedure and LINQ 2 SQL class file in my project, I want that when I hit button, my store procedure run the SQL query … |
The End.