199,114 Archived Topics
Remove Filter ![]() | |
Hi I am populating my combobox with table's data (example table name is "ITEMS" and table is having only one column and that is displayed as combobox items). In my form i am having i combobox,button and textbox. I will enter a new item in textbox and if i click … | |
Hello, I have two requests to my server. The first one gets categories and the output to URL is something like this: doomain.com?category=1. The second request is meant for sorting the data in that specific category. This request outputs something like: domain.com?sort-by=name. What I need is something like this: domain.com?category=1&sort-by=name. … ![]() | |
My program is nearly done.But my function SumN doesnt print the correct output. SumN have to output the Sum of numbers that belong to the interval [a;b]. Example: input a=1 b=10 1 4 13 45 10 output sum=15 but im getting 60 and in should be 15. Can sameone help … | |
Hiii I have two tables 1.category_sub sub_id category_id category_name description event image 2.category category_id category_name my query is that how can i get both values category_id and category_name in category_submy code is that like <?php include("connection.php"); $query_1 = "SELECT distinct(category_name) from `category` "; $result_1 = mysql_query($query_1); $category_name=""; $subcategory_name=""; $description=""; $event=""; … | |
I am populating datagridview(10 columns) with dataset.I am changing 7th column from textbox to comboboxcell at run time if some value(say caste) in database table for row is null. If caste field is not null in database, then comboboxcell should display that value for that particular row.Below is the code … | |
hi fellas out thiere im having a headache right now in sending email with attachment..im using ftp in storing the file in my dirctory and sending it to my email...i can upload the file and send it but the prolem is when i try to dowload the file from the … | |
how can i take 1's complement in making a java program? | |
how to get values from other table to update table ![]() | |
| |
| |
Hi frnds, I need to seperate keys based on valuee. Please check the below array. Array ( [0] => 10:00 to 10:15, 10:30 to 11:00, [1] => 10:00 to 10:15, 10:30 to 11:00, [2] => 10:30 to 12:15, [3] => [4] => 10:00 to 10:15, 10:30 to 11:00, [5] => … | |
I am trying to get some xml data into my web page using php. When I am placeing the url into a web browser it is showing some xml data. But when I am doing that from inside a php page it is returning some empty data. The link is … | |
I am developing a code where im getting the interval of two dates for example DTLeavePayFrom = 1/1/2013 DTLeavePayTo = 1/14/2013 since 1/1/2013 is tuesday and 1/14/2013 is monday, the date diff of both date is 14 but how can i exclude the count of 2 sundays, i have an … | |
My site is www.jeremyspence.net78.net. As you scroll down I want to make the main menu dissapear(the one menu you see now) and another smaller menu (kinda like the apple menu from apple.com) appear on the top that is fixed, I was thinking about making a sticky menu, but I want … | |
I need to convert a DWORD into 4 bytes to send to serial RAM. All the examples of using SPIRAM, EEPROM and FLASH use `*variable` to send and receive. I can break the DWORD down into bytes which I stuck in a `char[3]`. I don't, apparently even with all my … | |
Hello Community, Is there a way to make it so a cookie will expire after the user has been inactive for 10 minutes. Please Help... | |
I have a problem. It is to generate a C code Please tell me how to display a image file on the screen in C? If u r kind to me, send the code | |
Hi everyone - I am helping to build a website for a good friend of mine & we are adding into the website an easy to read conversion rate. The only problem we have at the moment is the value is being displayed incorrectly. for instance - If the website … | |
Hi I have a datatable which i can save easily as xml using the following code. My problem is that i also have a textbox which i would like to save with this datatable. How can i save a datatable + textbox value as one XML file. Many thank for … | |
i want to make this string , "'basic@yahoo.com'" like this "basic@yahoo.com" in asp.net , via .Repalce function, ![]() | |
All, I'm trying to use a RichTextBox to display the revsion history of my program, and I can't figure out how to format the text (bold, italic, etc.). I'm using the String Collection Editor in the Lines Property. Anyone know how to do this, or if I should be using … | |
hi i m new to vb with sql.i made login form.but after that on main form some feature will be disbleed for ordinary user and that feature will be only enabled to admanistrater.so on main form a button will be enabled with specific password that is in backend so i … | |
As an exercise to help learn JS, I wrote a short bit of code that defines an array of random integers and then randomly logs one of them. Here's the code: var turkey = true var crud = [] for (i=0;i<10;i++) { j = abs(Math.random()* 10); crud.push[j]; } while (turkey) … | |
I wrote the following script to try and get validate if a date was valid or not. I think I've about got the script done but I'M having some trouble getting the values from the array. When I input 11291985 into the program I'M getting "29 is invalid" I can't … | |
// hi-low guesser #include <iostream> #include <string> using namespace std; const int NUMBER_OF_GUESSES = 5; int main() { string firstName; int computerGuess; int numGuesses = 5; char answer; int min; int max; cout << "please think of a number between 1 and 100, and I will try to." << endl; … | |
Hey all, Looking for some quick guidance, Trying to make it so that I can have a field which presents how many customers the database has. E.g This is the DB: http://prntscr.com/o2vuf This is my php: <?PHP $id_customers = "SELECT id FROM Customers"; $Customeramount = mysql_query($id_customers) or die(mysql_error()); echo $Customeramount; … | |
can someone help me with a code for a cinema program in C++ using linke lists? i tried this but there just too much errors.urgent,pliz... #include<iostream> /*#include<stdio.h>*/ #include <stdlib.h> #include<string.h> using namespace std; typedef struct{ char name[30]; char booking_ID[3]; int seats; }seat; //xxxx typedef struct{ int t[20][50]; struct bloc *&suiv; … | |
Hello, I am fairly new to c and i am finding it hard to spot why a part of a program I am making is not working. The program lets you work out the area and circumference of a circle. This is the code: #include <stdio.h> #include <math.h> int area() … | |
Please can someone know how to trim this code. Any help will be appreciated If Range("D8") = "EBU 2" Then If ComboBox1.Text = "Level 4" Then Sheets("Main").Range("C9") = Sheets("Main").Range("C9") + 1 Sheets("Main").Range("D9") = Sheets("Main").Range("D9") + Range("K8") ElseIf ComboBox1.Text = "Level 5" Then Sheets("Main").Range("E9") = Sheets("Main").Range("E9") + 1 Sheets("Main").Range("F9") = Sheets("Main").Range("F9") … | |
Dear all, This example is compleet ,but wont load the file. Can anyone help me with puzzle?hier is the code: Class ATMWindow import java.io.IOException; import javax.swing.JFrame; public class ATMWindow { /** * @param args the command line arguments */ public static void main(String[] args) { if (args.length == 0) { … | |
HI peeps, I have a question about the following program: TempScale.java: public enum TempScale { CELSIUS, FAHRENHEIT, KELVIN, RANKINE, NEWTON, DELISLE, R�AUMUR, R�MER, LEIDEN }; Temperature.java public class Temperature { private double number; private TempScale scale; public Temperature() { number = 0.0; scale = TempScale.FAHRENHEIT; } public Temperature(double number) { … | |
Hi, I hope someone can help me with a problem that I am currently stuck on, basically I am trying to create a file archive utility which can archive 1 or more file each specified in a command line into a file. My problem which I am currently stuck on … | |
#include<iostream.h> #include<fstream.h>//header file #include<string> #include<stdlib.h> void main() { fstream pasca; pasca.open("C:evaluate.dat",ios::out); fstream display; paparan.open("C:evaluate.dat",ios::in); int lecturer_code; int course_code; char gred1, gred2, gred3, gred4, gred5; float point1, point2, point3, point4, point5; float total_point1, total_point2, total_point3, total_point4, total_point5; char user; if(!pasca || !display) { cout<<"File cannot open"; exit(1); } cout<<"Enter Lecturer code … | |
AFter asking for name, it doesn't ask for other things, just gets to the end where it says "game has been developed by.." Kindly guide me what i am doing wrong. i am a beginner, trying to learn. Thank you! Here is my code: #include<iostream> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<time.h> using … | |
Inside FileTwo.h #ifndef FILETWO #define FILETWO #include"FileOne.h" class FileOne ; class FileTwo { public: int Test(FileOne One){ return (One.var1+One.var2);} FileTwo(void); ~FileTwo(void); }; #endif Inside FileOne.h #ifndef FILEONE #define FILEONE #include"FileTwo.h" class FileTwo ; class FileOne { private: int var1 , var2 , var3 ; public : friend int FileTwo::Test(FileOne One); … | |
Hi everybody, I am in the process of building a small web application which will hold around 10 pieces of information for every person inserted. Due to data protection the majority of this information must be encrypted. Using the CodeIgniter framework and the CodeIgniter encryption class I can encode the … | |
Hi again everyone.. Happy New Year. Hope yours was as good as mine. Would anyone know if Javascript can be used to create complex search queries. I see that you can bring up a Java Console in web browsers such as Chrome and Firefix and I was thinking that with … | |
Hello, Happy New year please help me senior bro,I can't insert mulityple selected checkbox value into my databse.When i click SUBIT then it show me below error: *Error Number: 1054 Unknown column '0' in 'field list' INSERT INTO `tbl_course_offred` (`0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `user_id`) VALUES … ![]() | |
Hello, I have a tcplistener and a tcpclient. If the client computer went down for some reason, what would be the best way to handle disconnections. Thanks in advance, Minko | |
Hi all. For 3 days I have searched the web to find out how it works, unfortunatelly with no success. I need to compare the encrypted haptcha code with my text, both of them sent by a form. if(!isset($_POST['my_text'])) { $view = new Zend_View(); $captcha = new Zend_Captcha_Figlet(array( 'name' => … | |
> QuoCAtted Text Here Actually I'm passing connection Parameters by calling class Connection.Here what i cant understood is what is the way for passing the value in $link(which can declare as protected).when i want to use this connect class in other page how can i use this class. <?php class … | |
Im using VBA build inside excel is there a way to find if ComboBox has a value? for example i have 80 ComboBox and i want to check if they have a value like "A", "B", "C" and "D" and if the value is blank like "" then stop the … | |
I have installed Eclipse Juno. I want to run jsp and servlet program using Eclipse IDE. But while adding new Server of Tomcat, i am unable to do so. In the add new Server option it does not show apache nor do other servers. Please help me how to sort … | |
//for my final project i have to reserve a 1kb memory to write data on,then defregmant that memory to be ready to take new data and repeat this process until i say so or the memory is full.Finally clear this memory.the data types are :real<as in float>, integer<as in int> … | |
Hello All, I am reading the Effective C++ book by Scott Meyers. Regarding new, he mentions the following: > this additional bookkeeping data can more than double the amount > of memory needed for each dynamically allocated object (especially if the class contains no virtual functions). This is in reference … | |
Hey everyone! Happy New Year! I am trying to hone my programming skills by writing simple applications. I created a very simple currency converter program (hard-coded exchange rates....so nothing special). I first created it as a console app, and then in WPF. Anyway, I ran into an issue with the … | |
I'm using the Visual Basic that comes with Visual Studio 2012 Utlimate, and everything I find online doesnt ever work. I am simply trying to make it to when a button is clicked the rows that are checked get deleted. Do While TodaysTrans.SelectedItems.Count > 0 TodaysTrans.Items.Remove(TodaysTrans->CheckBox.Equals(true)) Loop | |
<?php session_start(); include "dbConfig.php"; if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page // Header("Location: login.php"); } echo "<p>User ID: " . $_SESSION["valid_id"]; echo "<p>Username: " . $_SESSION["valid_user"]; $sql = "SELECT tbl_subject.SubjectID, tbl_subject.SubjectDesc, studentsubjectgrade.Finals FROM tbl_subject INNER JOIN studentsubjectgrade ON tbl_subject.SubjectID=studentsubjectgrade.SubjectID INNER JOIN academicyr ON studentsubjectgrade.SubjectID=academicyr.SubjectID WHERE … ![]() | |
This my error massage : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\test\loginproc.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\loginproc.php:16) in C:\xampp\htdocs\test\loginproc.php on line 24 ======================================================================================================== <?php require_once('Connections/kgcrmis.php'); ?> <?php // Inialize session session_start(); // Retrieve … |
The End.