199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yy886

It seem to be I have a problem on that code as this only go though the first one and then stopped...so other file extension is not allow... //Check the file extension if (($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/doc") || ($_FILES["file"]["type"] == "application/docx") || ($_FILES["file"]["type"] == "application/ppt") || ($_FILES["file"]["type"] …

Member Avatar for yy886
0
292
Member Avatar for Papa_Don

Hi Group! I suppose this should be titled, "Everything You Wanted to Know about ListViews, but were Afraid to Ask". Here are my questions(s): I've used ListView with "Details". This has been great when getting smaller bits of information to easily display and edit. However I'd like to use it …

Member Avatar for pritaeas
0
109
Member Avatar for mmonclair

I have a Drupal 7 question, related to extending a theme's regions. I've been to the official Drupal site, where this has been batted around with no solutions, on StackOverflow and a few other places. I'm continuing to troubleshoot it, but haven't hit upon a solution yet. I set up …

Member Avatar for mmonclair
0
190
Member Avatar for london-G

Hello, I have a set of fields which I need to save into my database, my problem is that the format with java and mysql doesn't match. I converted everything to String which works but I need to store the data as Date. As I will need to retrieve information …

Member Avatar for kieuvantruyen
0
4K
Member Avatar for mad5245

Hello, I am creating a GUI program with PyQt4 in python. The purpose is to be an efficiency tool for my company. I have a GUI, but put all the code in one thread. I have not dealt with threads yet and after 2 weeks of reading up, I still …

Member Avatar for mad5245
0
956
Member Avatar for HibaPro
Member Avatar for yy886

The connection and setting are fine as I can insert things into the same db with different tables. Long story short below is the value that I want to insert into the db but it give me no error and nothing insert. I have use the echo and checked every …

Member Avatar for pritaeas
0
288
Member Avatar for xxwikkixx

Hey everyone I was programing a small game and I am trying to figure out how to send an int value to a class and return a String from it. This is my code: This is my main.java class public class GamGUI { /** * @param args */ public static …

Member Avatar for riahc3
0
320
Member Avatar for arupface

Hi I do have XML as below: <?xml version="1.0" encoding="UTF-8"?> <library> <book publisher="Del Rey"> <series>The Lord of the Pings</series> <title>Way Station</title> <author>Clifford D. Simak</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The Fellowship of the Ring</title> <author>J.R.R. Tolkien</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The …

Member Avatar for gusano79
0
250
Member Avatar for kamil.metkowski

I want to update a colume using results from an select query but its not working :( my code: UPDATE goods SET goods.wagons_needed = (SELECT (goods.QUANTITY * WEIGHT) / max_payload as wneed FROM GOODS INNER JOIN wagon_type ON goods.wagon_type_id = wagon_type.wagon_type_id order by goods.goods_id) where goods.goods_id = goods.goods_id; Thanks for …

Member Avatar for IIM
0
215
Member Avatar for ytbyun

I am very new to python. I am making a program to see if certain part of current line is same as that of next line for example perter's age is 16 john's age is 16 Craig's age is 18 I want to see if people's ages are the same …

Member Avatar for snippsat
0
205
Member Avatar for zarnish

create a software using **object oriented programming** for a dentist that maintains data for his patients along with their history. application should be capable of storing, modifying and displaying data. provide a menu driven solution. plz frndz i need this code urgntl

Member Avatar for zarnish
0
324
Member Avatar for noor.beetna

I want to write a program in c++ language to define a class Bank_Account with the following members: Data member: - Accoount_no. - owner. - Balance. Member fenctions: - To assing intial values. - To deposit an amount. - To withdraw an amount after checking the balance. - To display …

Member Avatar for zain.imtiaz
0
136
Member Avatar for tony75

Hi Any one know how can I install pyHook module?I get just error Im using python 2.7.3 >>> import pyHook Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pyHook ImportError: No module named pyHook C:\Users\bt\Desktop\pyHook-1.5.1\pyHook-1.5.1>python setup.py install running install running build running build_py running build_ext building …

Member Avatar for tony75
0
11K
Member Avatar for zaphoenix

I am trying to install pyHook 1.5.1 for my windows 7 64 bit operating which has python 2.7 installed , but i get this error " python not found in registry" , when i try to type the python path,it does not allow me type into the modal gui ,please …

Member Avatar for tony75
0
3K
Member Avatar for aan_rwh

how to create animated figures 0 runs from the top left corner to the upper right corner and back again from the top right corner to the upper left in a row

Member Avatar for icmmovers
0
109
Member Avatar for AragornofAraton

i am a newbie to C# and ASP.Net programming, i have created a database which has 6 tables connected to each other by foreign keys. my problem is how do i insert data into all the tables at once considering the foreign keys they have. i just need a sample …

Member Avatar for annaharris
0
213
Member Avatar for Diogo Martinho

Hello, I'm currently developing an application that will have to support Globalization, meaning that it will have to support different languages. I've been doing some research since this all new to me and I want to take the best approach, and for now all I've been doing is following some …

Member Avatar for annaharris
0
547
Member Avatar for andymarin

Hi guys, I'm having trouble with my code and I'm kind of new in Java so I don't know what to do. I have to do a program with Buttons and each button has to take me to another class (I don't know if I'm being clear). For example if …

Member Avatar for andymarin
0
709
Member Avatar for ak47carbon

i want to redirect all .html file in subdirtories into root directory with .htaccess file,it does not manner that how much directory is complicated or long. example1: http://www.example.com/folder/folder2/folder3/folder4/main.html to http://www.example.com/main.html example2 http://www.example.com/folder/manyfolder/main.html to http://www.example.com/main.html

Member Avatar for pritaeas
0
172
Member Avatar for mogaka

function addUsers($params) { $fnameval = $params->getParam(0); $fname = $fnameval->scalarval(); $mnameval = $params->getParam(1); $mname = $mnameval->scalarval(); $lnameval = $params->getParam(2); $lname = $lnameval->scalarval(); if(mysql_query("INSERT INTO users(fname,mname,lname) VALUES('$fname','$mname','$lname')")){ $mess="data and synced successfully";} else{ $mess="data saved but not synced as required";} $response = array('response' => new xmlrpcval($mess, 'string')); return new xmlrpcresp(new xmlrpcval($response, 'struct')); } …

Member Avatar for mogaka
0
486
Member Avatar for rjony321

Hello Masters, I need help.I can't apply **WHERE** Condition clause in my Multiple selected checkbox value.like If i select 'accounitng' or 'php' then i want here use a condition like **WHERE** **("skill", "php")** here, skill table field name and php checkbox selected value.If i select a category 'PHP' so all …

Member Avatar for diafol
0
185
Member Avatar for cmps

Hello, I want to create tables in database (using SQL) and add foreign keys to each table refering to the other one. For example: CREATE TABLE ONE( ID INT NOT NULL, NAME VARCHAR(20) NOT NULL, TWOID INT NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (TWOID) REFERENCES TWO (ID) ON DELETE …

Member Avatar for pritaeas
0
365
Member Avatar for kubawpl

My friend didn't want to post this himself so I'm doing it for him. The creatures.size() returns wrong value! I don't know why i push back only two objects and sometimes its returns things like -89252... I'm using Mingw-g++ 4.7.2 . I tested it also on my linux and the …

Member Avatar for ravenous
0
151
Member Avatar for OsaMasw

Hello guys, today when I was try to install Joomla on my server it prevents me from continue because of Magic Quotes GPC = ON , so I red about this and saw many sites and PHP iteself recommended to shut this feature, my question is in my projects I …

Member Avatar for OsaMasw
0
250
Member Avatar for davy_yg

How to find the following information using php? Server Information Server OS Linux PHP Version 5.4.8 Server Handler fpm-fcgi Platform windows Admin Information IP Address 202.93.141.94 Browser Mozilla Firefox Version 20.0

Member Avatar for davy_yg
0
207
Member Avatar for davy_yg

Hello, I create this backend system. When someone click check box then press apply. This script suppose to delete all rows that are checked. How to do so? It seems like the script are incomplete. <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td><input type="checkbox" name="vehicle" value="Bike"></td>'; …

Member Avatar for davy_yg
0
153
Member Avatar for chrispitt
Member Avatar for ravenous
0
115
Member Avatar for pranavsai3

<?php session_start(); if(isset($_SESSION['is_user_logged_in'])) { $x=mysql_connect("localhost","root",""); $y=mysql_select_db("online_book_shop",$x); $n=$_SESSION['id']; echo "<html> <body background=modern-background-design.jpg> <div align=center> <h1 style=text-align:center;font-family:fantasy;color:red;font-size:36px> COMPLETE BOOK DATABASE</h1></br>"; $z=mysql_query("select * from books order by serial asc"); echo"</br><br/><br/><br/><table border = 4 bgcolor=white align=center>"; echo"<tr> <td> Serial number</td> <td> Name </td> <td> Price </td> <td> Quantity remaining</td> <td> Purchase</td> <td> Add to …

Member Avatar for broj1
0
135
Member Avatar for taekiewzz

I have a table called `DUTY` (columns: `dutyid, dutyname, staffid`) and a table called `STAFF` (columns: `staffid, staffname`) In order to be fair, each of the staff will be auto assigned to each duty entry (record). So what should I do whenever I would like to insert a duty entry, …

Member Avatar for pritaeas
0
252
Member Avatar for xLuFeT

anyone know about viewing an item from database but you only need to view is for ex. Name|Address| Juan|Juan Luna Benita St.| thats the table and item in your database NOW you want to see it from your dataGridview but the 9 letters only... ex. DataGridView1 Name|Address| Juan|Juan Luna| thats …

Member Avatar for xLuFeT
0
143
Member Avatar for revolter00

hi folks, i want to develop a desktop application which will continuously receive text commands from a connected mobile device, via bluetooth rfcomm protocol. i went through hundreds of code examples, including jsr-82 bluetooth & obex api demos; but cannot get what i wanted. one of the popular examples that …

Member Avatar for meghana.Nlknt
0
1K
Member Avatar for Ann95

I have a datagridview and I want to print my datagrid but the problem is I want to remove the horizontal line of the table. How can I do it? Here is my code Module DataGridViewPrinter Public DataGridViewToPrint As New DataGridView Public DefaultPageSettings As PageSettings = New PageSettings() Public WithEvents …

Member Avatar for Ann95
0
432
Member Avatar for waqas.zafar.125

hey guys ! i am new to graphics in c++ .. i have to develop an application called " paint " . i have to implement it using classes ( and inheritance in classes ) . For example i have to draw a line using mouse . All the graphic …

Member Avatar for rubberman
0
221
Member Avatar for alxanderajon

write a program that accept 3 numbers.print the smallest and largest number. how we write it by nested if condition?

Member Avatar for rubberman
0
94
Member Avatar for robinlrandall

It seems like a simple problem but I can't seem to find the solution. Basically I have a wx.TextCtrl on a wx.ScrolledWindow and I want to expand the TextCtrl to fill the window - a simple editor if you will. I have the "Proportion" as "1" and I've used a …

Member Avatar for robinlrandall
0
622
Member Avatar for rickdeckbar10a

Just some information about myself. I am a 42 year laptop technician returning to college majoring in an Application Development associates degree program at community college starting this summer 2013. I really need some information from the experienced programmers who have been in the job market market for a while. …

Member Avatar for rubberman
0
203
Member Avatar for xxmp

I have these databases h1 h2 h3 Where each database has the quantity of items that are available to be sold from shop1, shop2 and shop3. I want my data to be concurent. For example 2 users may want to buy the same item the same time and the manager …

Member Avatar for LastMitch
0
133
Member Avatar for angeeb84

I have been stuck on this problem for a while. I can't figure out why it is skipping over the last part of my program where it starts double totalMoviePrice. Here is what I have: import java.util.Scanner; public class OnDemandMovieHits_AngelaBrasley { public static void main(String[]args) { String[] movieName = new …

Member Avatar for angeeb84
0
329
Member Avatar for Varunkrishna

Is the following Code correct, for calculating Decimal to Triskaidecimal and Triskaidecimal to Decimal, I hope this code is not right import java.util.Scanner; public class converter { /* 1) Decimal To Triskaidecimal 2) Triskaidecimal To Decimal 3)Exit. */ public static void main(String ar[]) { int a, b; String s; System.out.println("Please …

Member Avatar for bguild
0
231
Member Avatar for xLuFeT

Guys, need some help this is my code Select * Table1 ORDER BY Date DESC My problem is I code in descending order but its not descending order because I try to add a Data instead of 5/6/2013 is the first item that i will see. 1/1/2012 can be appear. …

Member Avatar for xLuFeT
0
629
Member Avatar for Aerigon

Well at this point I think it's safe to say coding is not my thing, have another problem I am working on, have the code close to correct I believe, problem, when one of the radio buttons is selected, there should be another groupbox that shows (depending on which radio …

Member Avatar for tinstaafl
0
634
Member Avatar for xLuFeT

hello guys, This is my problem for example. My program is on my computer the image location of my picture is on my computer then i want to debug my program into other computer but the picture is not appear because the location path is changed this is my code …

Member Avatar for tinstaafl
0
187
Member Avatar for atikah8890

Hi. I'm creating a short-answer quiz. The questions has one text area each for answer. However, for each question there are several answer suggestions in the database. I'd like to compare the value post by the text area with the suggestions. $answers = explode(" ", $ans[$arr_ind]); //$ans[$arr_ind] holds answers from …

Member Avatar for atikah8890
0
185
Member Avatar for alice.cooper.18659

I am trying to make a histogram that represent the number of letter grades that are calculated. So the program reads in a csv file, pulls out the name, average grade and letter grade. From there it creates a histogram based on the letter Grades. Input: Alicia Marks,89,90,100,95,75,85,94,100,90,92 Bobby Ricks,98,79,87,79,9,98,7,19,98,78 …

0
100
Member Avatar for jose.a.rueda.5

Hi, I have this program in C that prints me a right character triangle but I created it in a way that it asks me for the number of rows I want to print, but what I actually want to insert is the letter that I want at the bottom, …

Member Avatar for tinstaafl
0
137
Member Avatar for Asotop

Hello again. Had yet another problem. This is the following log: Maalinger: Node: 1 Dato og KL: 2013-05-03 14:10:57 Puls: 554 Blodtrykk: 376 Kroppstemperatur: 20 Respirasjonsrate: 20$ Maalinger: Node: 1 Dato og KL: 2013-05-03 14:11:07 Puls: 554 Blodtrykk: 376 Kroppstemperatur: 20 Respirasjonsrate: 20$ Maalinger: Node: 1 Dato og KL: 2013-05-03 …

Member Avatar for tinstaafl
0
252
Member Avatar for SirMahlon

#include <iostream> #include <ctime> #include <cstdlib> #include <iostream> using namespace std; For all 6-digit numbers from 100000 to 999999, find the numbers that, if you add the top three digits to the bottom three digits, and square the result, it will equal the original number. For example, for 123456, you’d …

Member Avatar for SirMahlon
0
202
Member Avatar for Yustme

Hi everybody, I'm new in programming. Getting started with C. Im trying to do a few easy things like to uppercase a string. But i got stuck... This is what i have so far: [code] void toupper( char *text ) { char c[] = "testING"; } [/code] And im not …

Member Avatar for brcsur
0
9K
Member Avatar for wschamps42

I have a few code snippets from a tutorial Im reading my friend gave me to learn c++, and a lot of it is written in shorthand but I cannot fully understand the shorthand code. return c < Cnt ? &foo[c]:NULL;; this: return (cc > 0 && cc <= mCnt)?&foo[cc-1]:NULL; …

Member Avatar for wschamps42
0
177

The End.