64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for joshmac

I am not a jquery guru in any sense, so I am seeking some help with the below code. What I am trying to do, is populate two input fields, based on what is selected from a dropdown field via a database call. When I select a term from the …

Member Avatar for joshmac
0
977
Member Avatar for jelly46

Can some one help? I am looking for a **content slider that can hold images and text and has dot navigation**. I have searched for so many on the net but nothing that is simple. I would like it to look like this http://www.bbk.ac.uk/ but the content slides across **not** …

Member Avatar for pritaeas
0
189
Member Avatar for Reethu_1

Duplicate occurance of the same value has to be removed. If the (linked)list traversed from head contains sequence 3,2,8,8,8,5,2,3 after calling last = Node(3) head = Node(2, last) head = Node(5, head) head = Node(8, head) head = Node(8, head) head = Node(8, head) head = Node(2, head) head = …

Member Avatar for TrustyTony
0
811
Member Avatar for ourloop

The below code displays correctly, I need an "IF" statement that prevents displaying rows with 0% in the percent column and I've tried several conditions. None are working. I only want to display rows that has at least 1% in the percent column. Here is the code: $result = mysql_query("SELECT …

Member Avatar for minitauros
0
185
Member Avatar for martin.schmidt.9465

I am very new to python and I just created a program: a = input('10x2= ') if a==20: print ('Correct!') if a!=20: print ('WRONG! Try again') a = input('10x2= ') if a==20: print ('Correct!') if a!=20: print ('WRONG! Try again') a = input('10x2= ') if a==20: print ('Correct!') if a!=20: …

Member Avatar for martin.schmidt.9465
0
163
Member Avatar for ktsangop

Hello everyone! Is it possible to write a query which does the following : UPDATE db.table SET col1 = 1 WHERE col2='something' AND col3 IN ('a','b','c') ELSE SET col1 = 0 Meaning that the rows that don't match the where conditions will also be updated to another value. Note that …

Member Avatar for ktsangop
0
239
Member Avatar for andreiviziru

so i have followed this tutorial and i stuck into the activate section of this here's the tutorial. what went wrong? http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/comment-page-3/

Member Avatar for andreiviziru
0
1K
Member Avatar for de Source

Hi, i want to create a query which select three columns from a table on certain condition now i have got certain with three columns and i can bind this data to a datagridview but before this i want to add a column to dgv say col_new and fill its …

Member Avatar for M.Waqas Aslam
0
302
Member Avatar for guente

I have a project I currently working on. It's a management system that has forms for Sales, purchases and deaths(poultry birds). I place a menu strip on the main form and every thing seems to be right. But when try to load the purchase form, it doesn't load. I said …

Member Avatar for guente
0
2K
Member Avatar for Rahul47

I have this following question about different behaviour of result set for SELECT command and INSERT,UPDATE,DELETE command. My Script: //Part 1: $query="Insert into student values($roll,'$name')" ; $result=mysqli_query($con,$query) or die(mysqli_error($con)); if ($result) { $num=mysqli_affected_rows($con); var_dump($num); echo $num." rows affected."; } //Part 2: $query1="select * from student"; $result=mysqli_query($con,$query1) or die(mysqli_error($con)); if ($result) …

Member Avatar for Rahul47
0
2K
Member Avatar for reececropley

Hi, I have a extension in my opencart store that uses a .csv file to import data into products. The .csv file is a stock inventory list from a tyre manufacturer. The extension uses a string value of the image filepath that get inserted into the database. The issue I …

Member Avatar for reececropley
0
476
Member Avatar for lwin

Hello, I have one DateTimePicker and two textbox (txtHour and txtMinute) I want insert the value of datetimepicker (date) and textbox (hour and minute from two different textbox) to DateTime data type on my table, example: 2013-08-28 12:30:00 PM --> the value of 12 got from txtHour, the value of …

Member Avatar for Hazuan Nazri
0
2K
Member Avatar for Aiedail

Hello, So I am a php novice. The company I work for has been getting a lot of spam via our contact form lately so I need to secure it, which I have done with adding a hidden field that if the form is autofilled it will not send. But …

Member Avatar for diafol
0
1K
Member Avatar for ourloop

I have a MySQL database with a table that has a field/column labled "user8" (which is the field for users' state). I have this PHP call and its working fine if I call all states individually and I only want numbers of rows. <?PHP mysql_select_db("freeskat_promail") or die(mysql_error()); $result = mysql_query("SELECT …

Member Avatar for ourloop
0
20K
Member Avatar for Rahul47

A simple login script that won't be much trouble for members in here. But query within is getting fired up for wrong credentials. My Script. <?php require("C:\wamp\www\Onex\connect_db.php"); if(isset($_POST['login']) && !empty($_POST['login'])) { $uname=$_POST['uname']; $pass=$_POST['pass']; $login_query="select * from register where username='$uname' and password='$pass'"; $result=mysqli_query($con,$login_query); if($result) { echo "Login granted. <br>"; while($row=mysqli_fetch_array($result)) { …

Member Avatar for broj1
0
214
Member Avatar for nitish.mohiputlall

Write a program that converts numbers to words. For example, 895 results in "eight nine five." here are my codes: #include<stdio.h> #include<stdlib.h> int main() { printf(">>This program converts numbers to words :)\n"); int value; printf("Enter value: "); scanf("%d",&value); switch(value){ case 0: { printf("zero"); break;} case 1: { printf("one"); break;} case …

Member Avatar for Rahul47
0
216
Member Avatar for razree

Hi all, I'm struggling with a simple little program which I would use for a test to (for example) sell footbal tickets. So I have a for on which user selects a game from combobox (combobox populates from text file) and number of tickets in a numericupdown field. On "Save" …

Member Avatar for razree
0
181
Member Avatar for NitsPatel

hello images not display in live server when uploading from localhost to live server. It is properly work in local server thanks in advance

Member Avatar for bradly.spicer
0
160
Member Avatar for MasterHacker110

I am writing a very simple boot and kernel in asm and c++. The thing is my development system is windows and I cannot use cpu interupts on windows, or can I? I dont think that my newly created kernel will be able to understand invoke ConsoleA or an of …

Member Avatar for Schol-R-LEA
0
204
Member Avatar for Dili1234

Dim startdate1 As String = DateTimePicker1.Value.Date Dim enddate As String = DateTimePicker2.Value.Date myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim insert As SqlCommand = New SqlCommand(" INSERT INTO Client_Details (Contract_Name ,Client_Name ,VAT_No ,Cilent_Address,Start_Date,End_Date ,Contract_Value,Telephone_No) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & …

Member Avatar for khair.ullah
0
159
Member Avatar for srikanth2321

Hi, I have a problem of modifying Jtree font. No matter what I do or make changes in code I'm unable to change the default font. I got the TreeCellRenderer code from some website. Any suggesion on font change would be really helpful class MyCellRenderer extends JEditorPane implements TreeCellRenderer { …

Member Avatar for mKorbel
0
872
Member Avatar for lionaneesh

[B][I][U]Introduction [/U][/I][/B] [COLOR="Red"]Hey everybody welcome to a tutorials on classes in PYTHON. The purpose I made this tutorial for is that when I was learning classes in python I dint found any good tutorials on Classes. Maybe I was wrong. But here's my tutorial.[/COLOR] [B][I][U]Layout[/U][/I][/B] In this tutorial i'll be …

Member Avatar for mail2sanjay
1
879
Member Avatar for ss125

Friends I have a login form. After successsful login, I have to redirect the user to welcome.aspx. While doing this, the URL will be http://www.mangabooks.com/welcome.aspx but I need the URL to be encoded like http://www.mangabooks.com/sdDFREdsfefrvgrwghWr34r How can i do that? Any help will be appriciated... TIA.

Member Avatar for ss125
0
369
Member Avatar for Fatima_110

I'm just a beginner please help! BlueJ accepts my code - there are no compilation errors. But when i want to run the program it doesnt do what i wanted it to. It allows the user to answer the questions about the product and price but the skips to the …

Member Avatar for Fatima_110
0
118
Member Avatar for winky

[LIST=1] [/LIST]Hello again :), I am writing a code that will recursively write a string in reverse. The problem is in my recursiveReverse function. I feel like the idea is right, but the implementation is incorrect. My thought process was that I could start the loops at the beginning and …

Member Avatar for Joshua_3
0
1K
Member Avatar for sujan.dasmahapa

I am trying to enter user name and password from command line. user name is 'example@gmail.com' and password is 'Example$319'.....When I am printing this values I can see the password is wrong. I am typing Example$319 but it is printing 'Example19'. $ and 3 are discarded.....Please help me what is …

Member Avatar for almostbob
0
4K
Member Avatar for Kingcoder210

Hi! I am using crystal report to make my report. But problem is that I cant use same SQL Command there in report parameter because its different. I am going to show you my code so that you can understand it. I have a report & a form where I …

Member Avatar for sandybriones
0
2K
Member Avatar for montjoile

hi I had a question in an exam that asked for the code of a trigger that cancels a transaction if a query result doesn't meet a condition in oracle database. is it possible? I am googleing but I can't find an answer thanks

Member Avatar for montjoile
0
464
Member Avatar for MasterHacker110

I am trying to read user input from console using Scanner but it only reads my first input, and then on my second input it closes my program. Here is my code: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.security.KeyPair; import java.security.KeyPairGenerator; …

Member Avatar for IIM
0
604
Member Avatar for ehpratah

Hi i have this query that search data between two date range `select RA, Name, Model, Plate, Service, Grand_total, Payment_type from advance WHERE SDate BETWEEN '" . $from . "' AND '" . $to . "' ORDER BY Payment_type` which is working great but i need to alter it so …

Member Avatar for ehpratah
0
166
Member Avatar for kal_crazy

Is anyone familiar with the CPUSIM 3.6.9 Wombat Machine 1.1 ? I need help on how to make a loop with machine language.

Member Avatar for kal_crazy
0
181
Member Avatar for Gerryne

Hi. Our homework is to use try...catch block in our calculator applet. I don't understand why the "catch" does not work. It will always go straight to the "finally". Here's the code: import java.applet.*; import java.awt.*; import java.awt.event.*; import java.awt.Label; import javax.swing.*; public class clsCalculator extends Applet implements ActionListener { …

Member Avatar for stultuske
0
435
Member Avatar for 3e0jUn

Is there any way I can execute a block of code in a loop, like so: [ some code goes here ] Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.: [the user can create another loop[]] I am creating a parser for a language …

Member Avatar for 3e0jUn
0
141
Member Avatar for azurekite

PROBLEM DESCRIPTION A battalion is a military unit with 300 to 1200 soldiers usually consisting of seven companies commanded either by a lieutenant colonel or a colonel. A particular training that a battalion undergoes is the training to maximize the battalion's "carrying capacity" whenever they are to carry cargoes from …

Member Avatar for azurekite
0
135
Member Avatar for timmyjoshua

**Pls, somebody help me on writting a code to create word file from my c# form...**

Member Avatar for saguni
-2
364
Member Avatar for andrew.mendonca.967

Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The coefficients of a quadratic are the a, b and c of an expression of …

0
112
Member Avatar for andreiviziru

so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* …

Member Avatar for andreiviziru
0
249
Member Avatar for vinodvinu

Hi there, I like programing very much. Fortunately or unfortunately my sujects in collage was arts, because i hate maths. Visual basic is my favourite language. I have learned it partially. But it didn't support my native language. I need some menu button text in my native language, but it …

Member Avatar for vinodvinu
0
197
Member Avatar for james.lu.75491856

def mu_cache(func,maxsize=128): "Most Used Cache decorator" cname = "__"+func.__name__+"_Cache" rname = "__"+func.__name__+"_Rankings" exec("global "+cname) exec(cname+" = {}") #here exec("global "+rname) exec(rname+" = {}") def wrap(*args,**kwargs): cache = eval(cname) rankings = eval(rname) try: res = cache[(args,kwargs)] except: res = func(*args,**kwargs) cache[(args,kwargs)] = res else: try: res = rname[(args,kwargs)] except: res=0 rname[(args,kwargs)] …

Member Avatar for sepp2k
0
349
Member Avatar for aarviii

hi i want to show my 2nd form then close the 1st form. here's that simple codes and i can't do it right. please help Private Sub btlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btlogin.Click form2.show() me.close() End Sub

Member Avatar for aarviii
0
139
Member Avatar for PratikM

Hi there, so I have a project idea for Java but I have no idea how to start it and was hoping that some of you could point me in the right direction. So I got this idea based on a need that my mom had in her business. I …

Member Avatar for somjit{}
0
183
Member Avatar for jelly46

I am working with some code that works fine in jsfiddle but not locally, here is the [jsfiddle link ](http://jsfiddle.net/c2webdev/DVPaa/) this is quite confusing here is the local code <!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=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> …

Member Avatar for Troy III
0
1K
Member Avatar for GlenRogers

Im trying to pass a session variable $_SESSION['id'] form one page to another. But in the page im trying to pass it to I get this error Undefined index id The pages are in different dirs but in the same parent dir obviously, would this have anything to do with …

Member Avatar for mmcdonald
0
171
Member Avatar for azapovjednik

Hello all, I hope you can help me.. I got one assignment: to modify the existing website made of .asp pages. So, I got the working folder, with all the subfolders and files that make one website.... now, in order to start working on it, I need to get it …

Member Avatar for azapovjednik
0
471
Member Avatar for Jake_1

Hi, I was wondering how I could create a MUD (Multi-User-Dungeon) game using Python. It would be a dream come true if I could make one on my own so I was wondering if there is any reading material (pdf) that could teach me. What functions and commands would I …

Member Avatar for james.lu.75491856
0
462
Member Avatar for phorce

I'm working on a project that generates roughly between 13x512 values in which I compare at run-time. So the program outflow will be sort of as follows: - Program executes - Extracts (1) 12x512 - Extracts (2) 12x512 - Compares (1) to (2) - Extract (3) - Compares (3) to …

Member Avatar for Moschops
0
235
Member Avatar for Ahmed.C

Hi. I was just wondering if there is a simple way to get the file size of a selected program. The thing is that if i select a word document or etc the file size should be 2.34MB not like 2355.2 in KB or B. If the file size is …

Member Avatar for Ahmed.C
0
183
Member Avatar for PratikM

Hi there, I'm back again and this time I have another question: So I figured out that I have to use Array Lists for my last question, but now, I have another problem: How do I get all the user inputs separated into different strings so that the user may …

Member Avatar for JamesCherrill
0
485
Member Avatar for ehpratah

Hey guys im here again with another question on how to solve this specific problem i have, Whic is also releated on my last thread which is http://www.daniweb.com/web-development/php/threads/461702/cant-combine-two-sql-statement .. so the question now is i have this table Name Payment_type Service_charge test 1 Cash 10 test 2 Cash 20 test …

Member Avatar for ehpratah
0
189
Member Avatar for Rahul47

Here is what i coded for a simple binary to octal converion. If no of digits in binary are multiple of 3 then it works fine but get crashed otherwise . . . . am not able to figure our how to pad up for the grouping of 3 when …

Member Avatar for somjit{}
0
370

The End.