199,112 Archived Topics
Remove Filter ![]() | |
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"] … | |
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 … | |
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 … | |
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 … | |
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 … | |
how i can check if text box value exist in data base or not plzzz helppp | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
![]() | 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 |
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 … | |
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 … | |
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 … | |
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 | |
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')); } … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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>'; … | |
What is inharitance in C++? And what are the types of inheritance? | |
<?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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
write a program that accept 3 numbers.print the smallest and largest number. how we write it by nested if condition? | |
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 … | |
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. … | |
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 … ![]() | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
#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 … | |
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 … | |
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; … |
The End.