199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for joseph.lyons.754

Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks …

Member Avatar for GliderPilot
0
270
Member Avatar for maisara

I hve sme doubt in pseudo code I hve created da flow chart and c++ code but I need to create pseudo code I dnt no hw to create it Becz da flow chart hve 2 inputs such as cot=0, ans='y' And 5 option such as add inquiry , view …

Member Avatar for vmanes
0
283
Member Avatar for Auroch

Hello, I have the following problem: Entering coordinates of points on a plain with keyboard (as rows x,y). Analysing this coordinates. Replacing coordinates in vector (point - structure data type). Then calculating distance from the first point to all another points. I've written the code of this problem using arrays …

Member Avatar for Auroch
0
2K
Member Avatar for catastrophe2

hi so why isnt queue printing anything where it should? #include<iostream> #include<string> using namespace std; template<class ItemType> struct NodeType { ItemType info; NodeType* next; }; template<class ItemType> class Queue { private: int size; NodeType<ItemType>* front; // It points to the front of a singly-linked list NodeType<ItemType>* rear; // It points …

Member Avatar for catastrophe2
0
206
Member Avatar for Labdabeta

Hello, I have learnt a few assembly languages (MIPS/x86/ARM/MIX) and I have a question about the call stack. Each of those languages uses a different method for subroutine linkage, and the way I learnt them was not conducive to recursion. Granted, if I continue reading my copy of The Art …

0
177
Member Avatar for Fighter01

Hi, i have just started programming with python and i have beken given a task where i must create a python calculator. So far i have created the code (seen below) however i need help explaining it-e.g. saying what each part of the code does: from tkinter import * root …

Member Avatar for Fighter01
0
965
Member Avatar for Kristian_2

I have solved it... Shame... -------------------------------- I have problem with this code: cin >> str; smatch m; regex e("([[:w:]]+)@([[:w:]]+)\.com"); //<- Here was the error (it was regex e("([[:w:]+)@([[:w:]]+)\.com");) silly me :(( bool found = regex_search(str, m, e); cout << "m.size() " << m.size() << endl; for (int n = 0; …

0
149
Member Avatar for fheppell

As part of my web app, users need to be able to move multiple images from one album to another. I'm writing an UPDATE function, as the current album is stored with the image (helpfully, the albumid is the only value that needs changing). Here is the function: function imageUpdate($image_key_array, …

Member Avatar for diafol
0
121
Member Avatar for steevod

Hi All First post. PHP/PostgreSQL newbie... I'm trying to create a simple web page with a dropdown menu. The values for the dropdown menu are retrieved from a database table. The code I've got is... <html> <body> <select> <?php $db = pg_connect("host=hostname port=5432 dbname=dbname user=user password=password") or die ("Could not …

Member Avatar for steevod
0
1K
Member Avatar for Tinnin

Hi All, I'm trying to call data from a php script using getJSON. my php script, php/Validate.php: echo "Hello, World!"; die(); My getJSON bit: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("#ValidateButton").click(function(){ $.getJSON("php/Validate.php",function(result){ alert(result); }); }); }) </script> <input type="button" value="Validate" id="ValidateButton"/> I'm not having any luck getting anything output though. Could someone …

Member Avatar for Tinnin
0
3K
Member Avatar for sweta87

Hi, I have an drop downlist whic contains the products and a textbox for quantity. when i am selecting the dropdownlist and write the quantity value in the textboxes and click the Button1 textboxes are dynamically generating in the placeholder with labels according to quantity but when again i am …

Member Avatar for Joao_2
0
181
Member Avatar for Phanindra Reddy

Sorry to ask this one , but i am helpless to get it out. I am doing a site for my client and created a responsive menu. The font style for the menu is not working even though I marked it as important. My site url is. http://sparrowhair.softcorp.ca/ The style …

Member Avatar for Ajay Gokhale
0
348
Member Avatar for zubaer_ahammed

I have used Samsung Android Phone driver in Windows 7 previously. But now in Windows 8.1 I can't install it. I have tried the latest driver from samsung official site but didn't work. Please help me.

Member Avatar for Rakesh456
0
207
Member Avatar for yeshamarques
Member Avatar for Rakesh456
0
183
Member Avatar for Aman_5

import javax.media.*; import java.io.*; public class MP3Player { public static void main(String[] args) throws Exception { File file = new File("xyz.mp3"); MediaLocator mrl = new MediaLocator(file.toURL()); Player player = Manager.createPlayer(mrl); player.start(); } } }`` when i execute above program, it shows error : Failed to configure: com.sun.media.PlaybackEngine@ce124a7 Bad header in …

Member Avatar for JamesCherrill
0
358
Member Avatar for romdan94

How would I write this program: Wrte a program that will read a line of text that ends witha period, which serves as a sentinal value. Display all the letters that occur in the text, one per line and in alphabetical order, along with the number of times each letter …

Member Avatar for JamesCherrill
0
277
Member Avatar for ibpet11

Dear all, I need help on programming Mifare cards. I want to be able to read and write to a 1k mifare card. I bought a ACR1281U dual reader and also have some documentation but have not understand how to read data and write data to Mifare cards. I did …

Member Avatar for ctrah
0
3K
Member Avatar for sweta87

i have four columns in a gridview .Every field is a template field with checkboxes.I have a button. when i check the check boxes and store it in database the checkbox value is storing. but after clicking the button the checkboxes unchecked. how to make the checkboxes checked . public …

Member Avatar for sweta87
0
830
Member Avatar for Gurjot_1

Hi, So I am working on a drink machine simulation. I have a text file that holds the prices, names and inventory. My problem is It won't let me set my prices at 1.00 or higher. Ex: I set the price to 1.50 in the text file then when the …

Member Avatar for nullptr
0
256
Member Avatar for ray100

This is the project I need to finish. I am fairly new to php and this project has got me confused. Any help would be greatly appreciated I am trying to do a Web form that is taking an online order form! This is What I have so far: This …

Member Avatar for veedeoo
0
286
Member Avatar for nadiam

hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> …

Member Avatar for nadiam
0
660
Member Avatar for ruhestorer

I have huge csv file that i need to load into database using sql loader. In the file, there are columns enclosed by ", but some of them is not and in these columns there are single quotes and I would like to know how to deal with them (I …

Member Avatar for rch1231
0
2K
Member Avatar for tony75

HI I need to copy .dll files in C:\Windows\system32\ which is found or match in my my_file.txt file to C:\tools folder. my code not work and need also to found words that can match my_file.txt. so for example I have RICHED20.dll in my my_file.txt if the same file name"RICHED20.dll" exist …

Member Avatar for snippsat
0
1K
Member Avatar for sunny@123

Using the sample BUBBLESORT program with CHARACTERS given in class do the following: Enter 10 words (does not have to be a phrase or sentence..you may use some digits, caps, and special characters like punctuation. Have each of these words including punctuation entered into a character array. Print out the …

Member Avatar for Ancient Dragon
0
286
Member Avatar for nurul_1

hello, I have some problem with this code. Jacasript used in AJAX: var xmlHttp; function showUser(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="getuser.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("txtHint").innerHTML=xmlHttp.responseText; } } function …

Member Avatar for nurul_1
0
430
Member Avatar for junaid_5

Its image gallery website . I have 5 main categories and each main category has 3 sub category. how can i implement this in a form by selecting the the main category 1st and then sub-category from mysql database and also input today date ? and then update/create the record. …

Member Avatar for diafol
0
953
Member Avatar for azdonald

I'm learning knockout.js and i trying to get data from a rest API. The rest API has two end points 1) '/posts 2) '/posts/<id> When i use the first endpoint, nothing happens and there is no error in my script. As a matter of fact, looking at the firebug console, …

0
123
Member Avatar for miguelusas1

I am trying to do a Page to PHPExcel to user fill an Html Page and send to PHP and it will: Open my default Excel Page and after fills the Excel Page with information send by Html What i dont know is how to do it read if is …

Member Avatar for miguelusas1
0
519
Member Avatar for stokie-rich

Hi Guys as I have mentioned before I'm having problems with connecting my website to a sql database, config.php <?php ini_set('display_errors', true); // change to false when you go live error_reporting(E_ALL); //Mysql Connect | mysql_connect("host= 3306","username",""); //Below example to connect in localhost //$a=mysql_connect("localhost","root",""); if($a == false) { die("Connect failed: ".mysql_error()); …

Member Avatar for pritaeas
0
400
Member Avatar for Jake_4

Hello, I am trying to create a tone, then another tone using this code. It currently only plays one of them. Is there something missing or am i going about this wrong? for(int n = 0; n < num_samples; n++) //where n is the step |start of for loop { …

Member Avatar for pritaeas
0
187
Member Avatar for rstringer

Hello All, I am working on an Access 2010 application. I would like to click on a command button and open a Adobe PDF document. The code for the On-Click event is: Set shell = CreateObject("WScript.Shell") shell.Run """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe"" SourceFile" When the Shell.Run line executes, Acrobat returns an …

Member Avatar for Ancient Dragon
0
362
Member Avatar for Jake_4

Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one second using a loop similar to this // loop to generate audio samples for(int n = 0; n < num_samples; …

Member Avatar for phorce
0
321
Member Avatar for bc090200540

sir i am doing my project and i am using session array to save some variables that can be accessed at any page but i am unable to access the values saved in session array <html> <head><title>student home page</title></head> <body bgcolor="lightblue"><h1>well come to student login page</h1> <form name="f1" action="" method="post"> …

Member Avatar for bc090200540
0
127
Member Avatar for staffmbm

I'm trying to show data from mysql database in JSF, but getting error: javax.servlet.ServletException: /index.xhtml @16,70 value="#{userBean.getUserList()}": The class 'com.dev.UserBean' does not have the property 'getUserList'. javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) I'm using http://www.devmanuals.com/tutorials/java/jsf/database/viewdata.html tutorial UserBean.java package com.dev; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; …

Member Avatar for stultuske
0
1K
Member Avatar for syasya

Please help me I cant answers these questions at all . Question b Suppose a class named FootballClub is to be definêd. i. Suggest THREE (3) data members for the class' ii. suggest TWO methods other than accessors and mutators for the class' iii. code the class in Java based …

Member Avatar for syasya
0
137
Member Avatar for trantran

I am reading the (otherwise excellent) The C++ Programming Language (4th edition - Hardcover) (Stroustrup) and I cannot understand about 4 pages of it despite a lot of attention to it. It's section 27.4.1 Composing Data Structures starting page 767. After reviewing obviously unsatisfactory alternatives on page 767 for a …

Member Avatar for trantran
0
823
Member Avatar for dag25

i am trying to Upload and Store an Image inside a MySQL, for some reason i got a broken image when photo is submitted . i know its a bad idea ti store images in using database i am doing this for testing purposes. please help <!DOCTYPE html> <html> <head> …

Member Avatar for dag25
0
896
Member Avatar for Begginnerdev

If you are browsing this forum, it is a safe assumption to believe you know of the [Fibonacci Series](http://en.wikipedia.org/wiki/Fibonacci_number). After having a couple of minutes, and some random thoughts, I put together a little piece of code that will print this series out to a file. Private Sub FibWrite(ByVal iMax …

Member Avatar for Reverend Jim
0
282
Member Avatar for Labdabeta

Hello, I recently took a course on assembler/compiler construction. In it we covered parsing algorithms such as LL(n), LR(n), LALR(n), and SLR(n). I understand how these parsing algorithms can be used to determine **if** an input string follows a context free grammar (CFG). At some point I also understood how …

Member Avatar for Labdabeta
0
303
Member Avatar for Ancient Dragon

I'm using VS 2013. I want to use the system.numerics.biginteger structure but VS says there is no such namespace as system.numerics! According to MSDN there should be. What am I missing? Imports System.IO Imports System.Numerics '<<<< error Module Module1 Sub Main() Dim OneLightYearInches As BigInteger = 372469703661417000 End Sub End …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for maxpaine69

I all as anybody tried, passing a pdf tha is in memory stream and so it directly on a div, without the creatio od a file?? Best Regards

Member Avatar for LaxLoafer
0
2K
Member Avatar for henryz_box

I am wanting to create a card game that will have 1 to 7 players plus the dealer. Currently I have 1 player and the dealer. Each player will have a listbox that contains an index for each card in the player's hand. As the cards are dealt each player …

Member Avatar for henryz_box
0
331
Member Avatar for RohanSpi

Can any one help me to convert wildcard pattern into regular expression pattern using c#.Net...?

Member Avatar for RohanSpi
0
183
Member Avatar for catastrophe2

hi so i have to make a copy of a linked list i made last week and this time i just have to update it with a deep copy concept thus making a copy of that list i made. here is my code: #include <iostream> #include <string> using namespace std; …

Member Avatar for catastrophe2
0
302
Member Avatar for andi-dev

public class NumFormat { public static void main (String [] args ){ int quarter = 2; int dollars = 3; double total = dollars + quarter * 0.25; final double TAX_RATE = 8.5; double tax = total * TAX_RATE ; NumberFormat formatter = NumberFormat.getNumberInstance (); formatter.setMaximumFractionDigits (2); System.out.println ("Totali:$" + …

Member Avatar for Doogledude123
0
132
Member Avatar for Halkawt.Papula
Member Avatar for castajiz_2

Does anyone here know what programming languages does the military usually use to make sumbarine softwares? If anyone can point to some links because i wasn't able to find anything on the net.

Member Avatar for rubberman
0
914
Member Avatar for mwnt2014

Wordpress plugin permalinks not working If we add ? at the beginning of wordpress permalinks then its working. Give the solution.

Member Avatar for ravi142
0
303
Member Avatar for asaidi

Hi i m trying to make a combobox that user can choose a value from a table this value then it is saved i have the code really i m stucked on combobox.. import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; //The API for …

Member Avatar for asaidi
0
2K
Member Avatar for martuspatatus

Hello, I need a litle help here. I am creating a program that finds a specific sentence in a word path and replaces it with a given value. Specific sentence: l="600" And it has to be changed to : l="300" This is not to dificult and works fine: Public Class …

Member Avatar for martuspatatus
0
2K

The End.