199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Zain_2

Hi, I need to automatically submit button only once. the javascripts i have tried keep submitting the page in an endless loop so to fix the problem the auto submit part only needs to work once when the page is loaded. please help. Thanks

Member Avatar for JorgeM
0
121
Member Avatar for nadiam

So i have a table and a calculate button. the calculate button is responsible to selecting data from specific tables and then the selected data will be displayed and added together along with the calculation. but something is wrong with the process because it is not calculating correctly. table & …

Member Avatar for Lsmjudoka
0
354
Member Avatar for Indians

index.php coding <td><input type="text" name="slno[]" value="" size="2"></td> <td><input type="text" size="10" name="date[]" id="SelectedDate" onClick="GetDate(this);" readonly="readonly"/></td> <td><input size="24" type="text" name="particulars[]" value="" placeholder="Description"></td> <td><select name="noofnights[]" value="0"> <option value="empty"></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option …

Member Avatar for Lsmjudoka
0
6K
Member Avatar for yavindu

Is there good way to generate reports in php(Free software which can customize tables easy).I've used dompdf, but when table is big every thing gets mess up. Thanks

Member Avatar for Lsmjudoka
0
130
Member Avatar for FHUGE

hi good am, i just want to know how to make a simple anti virus using visual basic 6.0, i just want to ask the code for scan delete to detect a virus to automatic play the anti virus program thank you

Member Avatar for Ventor
0
210
Member Avatar for nadiam

My form has a 'save' button and 'select from previous month' button. what 'save' button does is insert all the values into my database. save button code: if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; if($basic&&$allowance) { require "connect.php"; $total=($basic + $allowance); $query=("INSERT INTO january (basic,allowance) VALUES ('$basic','$allowance')"); $janresult=mysql_query($query); } …

Member Avatar for Lsmjudoka
0
5K
Member Avatar for nancybrown1959

Can anyone help me figure out how to fix these errors? Warning: mysql select db(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx /index.php on line 37 Line 37 is: mysql_select_db($conn, "yourmil_content"); ----------------------------------------------------------------------------- Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in/home/xxxxxx/index.php on line 247 Line …

Member Avatar for Lsmjudoka
0
435
Member Avatar for Lee_2

Hi basically I have been trying to set up the irrlicht engine with Visual Studio 2010 and after adding in the inlcude and library file paths it seems as though Visual Studio no longer recognises "stdafx.h" as a valid precompiler?? I know this has something to do with not being …

Member Avatar for Lee_2
0
272
Member Avatar for alon4963

How to set rand command, an integer from 3 to 50 (inclusive), but save it as a decimal number

Member Avatar for deceptikon
0
201
Member Avatar for rbeach1955

I am using FactoryLink SCADA HMI software and I need to lock the focus on a screen that automatically opens and needs operator to answer before it will close and allow the user to continue on the background screen. If anyone knows where I can find this answer I would …

Member Avatar for Begginnerdev
0
195
Member Avatar for nadiam

hey guys, so im trying to display data from my database into a table but i got this error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashFlow\balance_report.php on line 45 code: <?php require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query=("SELECT * FROM asset WHERE name …

Member Avatar for nadiam
0
217
Member Avatar for bad.boy.Vlad

My function brokes. It gives 0 errors but brokes when i run it... int findk(int a,int b, int n) { int m[1000]; int j=1; for(i=1;i<=b;i++) { if((pow(2,i)>a)&&(pow(2,i)<b)) { m[j]= pow(2,i); j++; } } int k=m[1]; for(i=1;i<j;i++)if(m[i]>k)k=m[i]; return k; }

Member Avatar for richieking
0
118
Member Avatar for suraj32

Hi, I've got this string when parsed a web page. string(41) "_result_ = {status:"OK", id:"30025", name:"John Doe", location:"India"}" I believe that this code is JSON. but when I use json_decode() , it returns NULL. Someone Please help me parse this string. Thank you. :)

Member Avatar for suraj32
0
189
Member Avatar for vampersie

/*Why i can't match the input with the constant string array? It always shows the record with -1 Thank you.*/ #include<iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <cstring> #include <string> #include <windows.h> #include <cmath> string stuname[3]={"Chan Tai Man, Peter","Ng Fat Tat", "Tsang Chi Wai"}; void searchStudent(){ string search; int …

Member Avatar for deceptikon
0
106
Member Avatar for SpottyBlue

I was practising the question before the final semester exam, and I have a problem. #include <iostream> #include <string.h> #include <cmath> using namespace std; int num; // A number needs to be entered int o_num; // Original number int r; string str1 = "", str2 = "", temp = ""; …

Member Avatar for deceptikon
0
113
Member Avatar for ddanbe

The test.txt file I'm using is: 1,2,3,Name1,Pizza,Pizza Hut,7,8,9 1,2,3,Name2,goose,my home,7,8,9 1,2,3,Name3,chicken,airplane,7,8,9 Most of the explanation can be found in the snippet. Some CSV(Comma Separated Value) files often contain as first line, a header. You could skip this, or threat it a bit differently. I had no header, so I leave …

Member Avatar for deceptikon
0
3K
Member Avatar for smart_virus87

I'm playing around on how to get last name in the string. Below is my current code and it is working. I want to know if there is another way to do it. strMsg = "John Doe" length = Len(strMsg) For i = 0 To length char = Right(strMsg, i …

Member Avatar for Jx_Man
0
235
Member Avatar for nouth

for example I don't know what this is called » `[('cat', 'meow'), ('dog', 'ruff')]` if I try `for l in [('cat', 'meow'), ('dog', 'ruff')]: print l` I am using l for lady luck lucy not I for I or the number 1 + maybe even | pipe for smoking it …

Member Avatar for vegaseat
0
250
Member Avatar for RAJESH.M

hello sir, my work is run version.sh file and collect the values of version and type in the output. i have around 500 servers,so i want to automate this process using pyhton. i had written sample code shown below, but it is not giving good results.will you please help me …

Member Avatar for rrashkin
0
172
Member Avatar for Karry.Stewart

Hi I've a website and it shows a strange urls on the search engine and it sometimes crawls or wont show in the search engines what to do should we keep a robots.txt file. and How to take away the strange url we see in all search engines as **www.website.com/?C=S;O=A** …

Member Avatar for cereal
0
304
Member Avatar for malkani.ji.73

Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot **error: illegal start of expression JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + …

Member Avatar for stultuske
0
261
Member Avatar for salesman91

hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Member Avatar for salesman91
0
2K
Member Avatar for saguni

Hi friends, I am having a doubt in insertion of data create table table1(name varchar(10)) In this table, when i insert the following record manually, it produces me an error that it cannot insert. insert into table1 values('asdfghjklqwe') But when I try to insert it with the procedure, it trims …

Member Avatar for ugi.nagesh
0
199
Member Avatar for frankenfrank

What are the things that a server side programmer should be aware of that a client side programmer should not? and what are the things that a client side programmer should be aware of that a server side programmer should not?

Member Avatar for ugi.nagesh
0
122
Member Avatar for DTSCode

so i want to set default error pages for my website, but im having trouble with setting the default 404 page (i havent done any others yet). i am running a lamp server, and put the .htaccess in the root of it (/var/www) and put in it ErrorDocument 404 /error/error404.php …

Member Avatar for TheJeffMatson
0
275
Member Avatar for madhura_1

hiii.. I got this strange problem.i m refreshing my jframe after every second.This jframe contains a button called addbutton.This addbutton opens another jframe.and that jframe contains a JComboBox .The problem is after every second the JComboBox is getting refreshed.I dont understand why.Before the user gets time to select any item …

Member Avatar for madhura_1
0
404
Member Avatar for sandesh.ps.9

I'm developing an application in which i want the software to be executed at any place. So i want the database to be placed in one computer. This is the scenario. All the computers will be networked. Can i do this in c#.net ? Please tell me the procedures. Thank …

Member Avatar for deceptikon
0
302
Member Avatar for strRusty_gal

Hi Everyone, I need help with my assignment but i only require assistance to give me some guidance on the issue. I need to write code in c linux programming, that can change directory [CD]. when you open the command prompt in the linux machine, you type cd .. or …

Member Avatar for strRusty_gal
0
240
Member Avatar for moon.fall.58

I seem to be having difficulty with my code, I have tried many different ways but I can't seem to figure out how to implement some things. I'm also not sure how to setup my menu so only certain functions are called. 1. Adding a if statement under ShowMenu to …

Member Avatar for tinstaafl
0
567
Member Avatar for Violet_82

Hi all, as some of you might know the API is my nightmare. I know it's important and therefore I am trying to use it as much as I can. Today I am looking at a program that uses buttons to change the font of some text. So, I have …

Member Avatar for Violet_82
0
161
Member Avatar for asaidi

Hi can i run a program on windows compiled under ubuntu... simply..the program was wrotten on c++ under ubuntu os thanks

Member Avatar for iamthwee
0
108
Member Avatar for Asan23

i am trying to pass and array to a function in a module so i can calculate the average with multiple entries and its not keeping the other entries only the lat entry. in the function i tried different way to see if i can get the private array and …

Member Avatar for G_Waddell
0
288
Member Avatar for tqmd1

Dear Sir, I have following codes <?php $country=""; $capital=""; if (isset($_POST['submit'])){ $country=$_POST['text1']; $capital=$_POST['text2']; if (empty($country) || empty($capital)){ die ("<script> alert('Please fill both boxes')</script>"); }else{ echo "<script> alert('The capital of $country is $capital')</script>"; } if (isset($_POST['clear'])){ $country=""; $capital=""; } } ?> <html> <head> <title>Result on same page</title> </head> <body> <center> <form …

Member Avatar for furqan219
0
121
Member Avatar for Lethugs

Hi, Im having a hard time figuring this maybe a simple query. This is my first time to use sql compact edition. How can I query a select statement inside a select statement which tables are not related at all. What i need to accomplish is to insert a logo …

Member Avatar for ugi.nagesh
0
584
Member Avatar for Maideen

Hi I have an issue to update data between two table. I want to update data from one table to another using Store procedure. My code is SELECT NoMonth,ACC_P,StartDate FROM dbo.tbl_Accural_Basic UPDATE WEB_tbl_Accural_Audit SET NoMonth=nomonth,ACC_P=ACC_P, StartDate=Startdate But Nothing happend. It will show the data in select command Pls help me …

Member Avatar for ugi.nagesh
0
201
Member Avatar for krunal1986

Hi all, i am passing comma separated values to my stored procedure. something like below: @id=1,2,3,4 @firstname='a','b','c','d' now if i write select statement then i want single data from @id and @firstname. something like below: id firstname 1 a 2 b 3 c 4 d thanks

Member Avatar for ugi.nagesh
0
158
Member Avatar for Ken1234

i have a problem in choosing data type for this column in SQL..can anybody help me??? result (tournament_id*, player_id*, round) i've done the first 2 columns, i'm confused about the data type of round=='...i wondered if it was cstring or text or numeric here's my code : tournament_id int, player_id …

Member Avatar for ugi.nagesh
0
272
Member Avatar for eos.paks

Good Day, I have a ASP website fully working and i want it to Deploy on Windows Azure? How can i do that im basically new this Azure of Microsoft. Your Immidiate Response is Highly Appreciated. Thank you, EOS

Member Avatar for pritaeas
0
132
Member Avatar for pranay.baba

<?php include("db.php"); $result1 = mysql_query("SELECT DATE_FORMAT(CURDATE(), '%Y-%c-%d %H:%i') "); $row=mysql_fetch_array($result1); $from=$row['0']; echo $from; echo "<br>"; $result2 = mysql_query("SELECT DATE_FORMAT(CURDATE() - INTERVAL 2 DAY , '%Y-%c-%d %H:%i')"); $row1=mysql_fetch_array($result2); $to=$row1['0']; echo $row1['0']; $result3 = mysql_query("SELECT * from pr where date between '$to' and '$from' "); $row3=mysql_fetch_array($result3); //$to=$row3['0']; echo $row3['0']; echo $row3['1']; ?>

Member Avatar for diafol
0
163
Member Avatar for MariannJ

How to Compare a radio Selection in JSP. I want to make radio selection unselectable depending on the another radio selection. Below is Jsp Code. The JSP Page is linked with some Java files where the retrieve and display is done from the database. Below is the link which contains …

Member Avatar for stultuske
0
178
Member Avatar for annyangel

i have a database (hello) and it has 2 tables 1. login_tbl and 2. users_tbl both contains the 3 fields id,username,password and id,first_name,last_name respectively. now plz help me to write the php code according to this which helps to search the users details in users_tbl and fetch all the records. …

Member Avatar for annyangel
0
170
Member Avatar for ansari.wajid

Hi friends Has anyone done a db for a multi-level compensation structure? I'm talking about a company that is MLM or a multi-level marketing network. Where distributors sign up under other distributors and the "downline" can go down many levels(but limited levels!). I need a sample MLM structure.Could anybody help …

Member Avatar for kingmakerram87
0
224
Member Avatar for jatinmca

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString()); // min = Int32.Parse(Session["tleft"].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); …

Member Avatar for Sathish_3
0
1K
Member Avatar for tbuchli

/* * File: main.cpp * Author: TBuchli * * Write a program that helps a real estate agent calculate an average price of *up to 20 homes. An array of data type double should be used to contain the *prices. The program should prompt the user to enter the number …

Member Avatar for richieking
0
282
Member Avatar for kau14

Hi, I need data table desgin for transaction table. I want transaction history for particular client having unique client_id but many having many transaction id's. transactions relate to credit, debit, transactor name and date. Regards Kaustubh

Member Avatar for ryanjayson
0
247
Member Avatar for TheFueley

I remember doing a class to handle rational numbers in one of my classes way back when. I decided to do it again. What I'm having trouble understanding right now is why do I even create a class when my overloaded functions are all friend functions? As I understand it, …

Member Avatar for TheFueley
0
681
Member Avatar for strRusty_gal

Hi Everyone, Thank you for the time you spend to look at the post. I am required to retrieve report based on a date field in the table. the date field filtering must be from the previous month of the 6th till this month of the 5th. For example, today …

Member Avatar for strRusty_gal
0
190
Member Avatar for GamerDJX

I am currently working on a project for class that reads in from a .txt file the names of a film, the year it was made, and the list of actors in said film, and sorts the info in a binary search tree. In the tree nodes, I have the …

Member Avatar for GamerDJX
0
252
Member Avatar for royi.navon

/* the thing is that i need to check if a given number (n) is a palindrome. i also used limits.h to identify if the number is is exceeding the limit. i came up with this beut it's no good. any ideas? */ #include <iostream> #include <stdlib.h> #include <limits.h> #include …

Member Avatar for tinstaafl
0
138
Member Avatar for nouth

Is there a way to make a [drop-down list](https://en.wikipedia.org/wiki/Drop-down_list) that lists all of the textfiles in the same folder as my webpage is in? I only want the textfiles because I have other filetypes in there but while typing this, it makes me wonder if I can read the webpages …

Member Avatar for pixelsoul
0
155

The End.