199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sahil_4

Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not …

Member Avatar for pritaeas
0
136
Member Avatar for ankit1122

hello, i want to show mysql query results into a table on a web page...but can i pass variable values from html tp php script i wanna show as it is important for my project

Member Avatar for mattster
0
230
Member Avatar for Raymond_5

public class Receipt public static void main (String[] args) { // Calculate total owed, assuming 8% tax/15% tip System.out.println("Subtotal:"); System.out.println("int.Subtotal:=108"); System.out.println("Mystring = Mystring.Replace(38+40+30,Subtotal)"); System.out.println("Tax and Tip:"); System.out.println((("Subtotal")*.08)+(("Subtotal")*.15));) System.out.println("Total:"); System.out.println("Subtotal"+("Subtotal")*.08 +("Subtotal")*.15); } } On line 10 it's giving me the ; expected error but when i put it in it gives …

Member Avatar for stultuske
0
190
Member Avatar for sankubha

I am Developing an Client Server socket application .Am reading Strings in server side for multiple clients inside run(override) method and I getting EOF Exception at readUTF. I Dont know why the error is comming and how to rectify it. while (ss.compareTo("true") == 0) { System.out.println("Waiting for port " + …

Member Avatar for sankubha
0
394
Member Avatar for Jake.20

Greetings guys can you point to me what is the problem here? This is the code that produces the error. That is in my views: <h7 id="header-label">Welcome, {{ $fname }} |</h7> This is the controller: class ProfileController extends BaseController { public function showProfile() { $items = DB::table('item_tbl')->get(); // Auth::check(); // …

Member Avatar for Jake.20
0
3K
Member Avatar for chaitu11
Member Avatar for mattster
0
131
Member Avatar for silvercats

How to draw a convexthull and a polygon around the hand in this tutorial. I found this tutorial in JavaCV how to detect a hand gesture. But it doesn't show how to draw the convexhull or a polygon around the palm. Can someone tell me how to do that in …

Member Avatar for Hiroshe
0
248
Member Avatar for nirmala lakshmi

i am in need to retrive content from acess with date/time datatype as constraint and its checking value is from datetimepicker of vb.net. i have set both format of date as short format but getting datatype mismatch error in expression. my coding: dim bdate as date bdate = datetimepicker_oneday.Value.Date sSQL …

Member Avatar for Begginnerdev
0
306
Member Avatar for Mike_H

I am trying to update the field id_key which is an unique value using uniqid() function. When I print to the screen the value for uniqid() [$id] is different for each record. Which is correct and is what I want. However when I go inspect the table all the values …

Member Avatar for Mike_H
0
196
Member Avatar for Silfro

Hell sadly I dont understand much about memorypool so I tryed to use a memorypool from other sources. My problem: The gameserver always crash and the debugger shows the following error: `Unhandled exception at 0x01034a65 in GameServer.exe: 0xC0000005: Access violation reading location 0xcdcdcdd5.` First the first memorypool with which everything …

Member Avatar for rubberman
0
104
Member Avatar for christinetom

Hello there everybody.. I am just trying to understand something in relation to bitshift operations. With reference to the small program below. I have tried to keep this as simple as possible. I understand that by doing this (integer << x), a temporary variable is formed to contain the result …

Member Avatar for rubberman
0
426
Member Avatar for infoitmanoj
Member Avatar for rubberman
0
239
Member Avatar for sahil_4

Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not …

Member Avatar for rubberman
0
204
Member Avatar for Saboor880

Hi to all!. I have wrote a program which converts character numeric value into integer numeric value by using function atoi(string). For example if i write 45 then it gives output :"after conversion from ascii to integer, value is 45." or if i write 4521 it gives output:"after conversion from …

Member Avatar for NathanOliver
0
152
Member Avatar for AliGulSoomro1

How to get only numbers and - in the text box? How to get only Alphabates and . in text box? How to get uppercase alphabate in Text box?

Member Avatar for Reverend Jim
0
406
Member Avatar for dani_boy

I have made a simple game that I want to add sound effects to. I have the short clips and can get them to work with the following command: import os os.startfile("filename") It plays fine, but the problem is that it plays the file(s) with windows media player: effectively taking …

Member Avatar for HiHe
0
3K
Member Avatar for kaziraja

can u please help me with this code in charp in need to update bulk data . if t1.cola=t2.cola t1.colb=t2.colb from tab1 t1 and tab2 t2 where t2. colc is not null then, set t1.colc=t2.colc else set t1.colc=t2.cold where t2.colc is null

Member Avatar for kaziraja
0
113
Member Avatar for amith_ami

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar for amith_ami
0
221
Member Avatar for harley.roberts.56

Hi there, i am a novice coder and i'm trying to comprehend the addhandler function. on my current form, i have two pictureboxes, that i am trying to use in an addhandler with a loop, so when they are highlighted, the sender will change image. Public Class Form1 Dim i …

Member Avatar for harley.roberts.56
0
183
Member Avatar for Learner010

hello i want to create a chat application. i will design it once i get the idea of how it works.the chat will be based on ip addresses. is it possible to create a chat system which uses ip address for chat communication?how can i do that ?i am unaware …

Member Avatar for Mr.M
0
248
Member Avatar for rathiikk

hello sir,i have created vb.net software and i try to use in my laptop ,in my lap there is no vb.net software ,when run that application it showing the error as .net framework needed ,what is this error means ,then how can i give my apllication to other users

Member Avatar for Mr.M
0
179
Member Avatar for erabxes

I have a form like the one below which is posted to processForm.php, and the user can dynamically add more with jquery. <input type="text" name="subject[]" /> <input type="text" name="grade[]" /> <input type="text" name="year[]" /> <input type="text" name="subject[]" /> <input type="text" name="grade[]" /> <input type="text" name="year[]" /> <input type="text" name="subject[]" /> …

Member Avatar for erabxes
0
361
Member Avatar for jakizak

Hi everyone, For a social system I am working on, I am in desperate need of being pointed in the right direction for how to create a live ajax feed which calls data from a database. Urgently needed, any help much appreciated! Cheers! Jack(Scaasiboi)

Member Avatar for dean8710
0
2K
Member Avatar for nadiam

hey guys. im trying to copy the value of a text box to another text box on button click. what i have are 2 tables: `add-guest` and `guest-list` and a left button(<) and a right button(>) in between those 2 tables. In table `add-guest` names are populated from database into …

Member Avatar for AleMonteiro
0
438
Member Avatar for DavidB

I am working with dynamic arrays which have been created using **<vector>**. For convenience, I have created a typedef : typedef vector<double> C1DArray; In the main program, several variables are created using this definition which, at the moment, means working with arrays of size 30. main() { . . . …

Member Avatar for mike_2000_17
0
348
Member Avatar for amraam

The idea is to have an HTML page that looks like this: PROJECT1 Send what goes into the web form below to a python script! _________________________________________________ ____ | Input some text! | | GO | |_________________________________________________| |____| When the user hits "GO", the text somehow goes into script.py that does …

Member Avatar for amraam
0
6K
Member Avatar for Siick7

import java.util.Scanner; class EmployeeInfo { private double wage; private double hours; private String empName; public EmployeeInfo() { wage = 0.0; hours = 0.0; empName = ""; } public void setwage(double wage) { wages = wage; } public double getwage() { return wages; } public void sethours(double hours) { hours = …

Member Avatar for Slavi
0
157
Member Avatar for vivosmith

I tired installing this code on alpenami.michiganhotelsguide.com , but to no avail. The company said that I needed to message them in order to activate tracking. I sent them it, and it is still not working, at which point I assumed it was a problem with the code. Any thoughts? …

Member Avatar for vivosmith
0
313
Member Avatar for toxicandy

By default the page after login.php is authorize.php which just checks the information then sends it off to index.php. From index.php I cannot get to my page 'volunForm.php', it just redirects me back to the login page. This is my first ever login system and my first time using sessions. …

Member Avatar for toxicandy
0
197
Member Avatar for psichoman5

Help! UnboundLocalError: local variable 'B' referenced before assignment. Thanks! if a >= 3: A = (3 ^(int(log((a/3), 2)* 3))) if b >= 3: B = (3 ^(int(log((b/3), 2)* 3))) if c >= 3: C = (3 ^(int(log((c/3), 2)* 3))) if d >= 3: D = (3 ^(int(log((d/3), 2)* 3))) if …

Member Avatar for woooee
0
468
Member Avatar for davy_yg

Hello, Can anyone help me troubleshoot this problem: This code suppose to work in someone else server, but when I place in my own server this code doesn't work I wonder why? I am using smtp.gmail.com and port 587. contact.php <!DOCTYPE html> <html lang="en"> <head> <!-- Basic --> <meta charset="utf-8"> …

Member Avatar for mattster
0
257
Member Avatar for scaiferw

I'm converting old MySQL code to MySQLi, and running into some questions. When selecting data from the database, is it necessary or strongly advised to use prepared statements, or can I safely escape my user-derived parameters like the sample below? In a perfect world I'd have all the time I …

Member Avatar for scaiferw
0
239
Member Avatar for chaitu11

I want to display 3 images at a time in a slideshow(testimonial)..but remaing images also getting display's at the bottom of slideshow..i have attached image please chaeck.... <div class="row"> <div id="carousel-reviews" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="item active"> <?php $sel = mysql_query("select * from alumini"); $output = ''; $x …

Member Avatar for chaitu11
0
145
Member Avatar for HuePig

Hi, I'm trying to figure out the basics in state design. I don't quite get it. Say I have an `enum GameState{ MAIN, ABOUT, ADVENTURE, QUIT}`, how do I proceed from there? class Game{ class state *current; public: Game(); void setState(State *){ current = s; } void Main(); void Adventure(); …

Member Avatar for rubberman
0
310
Member Avatar for mind_1
Member Avatar for ankit1122

hello, i wanna know whats the best way to show query results from mysql onto a webpage.. some says this can only be done in form of table.. but nowadays table less design is preferred..tell me teh most demanding way if somebody knows..

Member Avatar for ankit1122
0
236
Member Avatar for sairam1592

Hello Friends, I am new to DANIWEB. I am from chennai,India. I am trying an android app(UI is over, this technical part alone is kinda complex because i am just starting my android app development) to fetch the place names i provide in textbox and show the distance between them …

Member Avatar for peter_budo
0
467
Member Avatar for myk45

Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different …

Member Avatar for NathanOliver
0
2K
Member Avatar for bradly.spicer

Hey guys, I have a Table which utilises Twitches API where the offset needs to be in increments of 25. I want to make it so everytime you click next in a table of data it reloads the query but adds +25 to the offset. Here is what I have: …

Member Avatar for bradly.spicer
0
213
Member Avatar for naju
Member Avatar for mokshi

Hi i need to use the below query in PHP to generate PDF but its not displaying what are all the supporting files i need to put for running the below (XML path) query in php,Its running successful in sql but when i put in php its not working can …

Member Avatar for mokshi
0
280
Member Avatar for Boby Smith
Member Avatar for RikTelner

http://pastebin.com/6xbfquFz It answers with: ID is: . Resulting is: 1 Redirection failed. Please redirect yourself to main website. Redirection isn't a problem. I disabled auto-redirect so that I can see error at work.

Member Avatar for veedeoo
0
184
Member Avatar for Pablo149

Hello to all who read this: I have been reading many of the posts here, where there are so many different levels of expertise. I am hoping that some of you may be able to provide me with some answers. I have read over and over again how formal training …

Member Avatar for stultuske
0
3K
Member Avatar for harley.roberts.56

I am trying to insert a filled picturebox when my form loads. My current code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Seatimage As PictureBox = New PictureBox() Seatimage.Name = "Seatimage" Seatimage.Location = New System.Drawing.Point(419, 134) Seatimage.AutoSize = True Seatimage.Size = New System.Drawing.Size(65, 23) …

Member Avatar for Minimalist
0
170
Member Avatar for Slavi

Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. …

Member Avatar for Slavi
0
146
Member Avatar for radostin.angelov.370

I have a page with ul generated by handlebarsJS. It's like: <ul> <li><a href=#>asd</a></li> </ul> but with more li's. I want to change the background color of a li element when it is clicked to one color and change the previously clicked li's background color to another. All of the …

Member Avatar for hericles
0
423
Member Avatar for berserk

i have an issue with this new form im using based roughly on a design template that i found online, it looks great for the purposes that i need it for, but the problem is i cant seem to get the input data from the form to pass to the …

Member Avatar for berserk
0
432
Member Avatar for HunainHafeez

I am receiving a Code in sms like "yyyy/mm-digit" (digit increments with every message). so i want to ensure that the code sent by user is exactly in that format otherwise another action. So how ? Here is my code to check but it always execute else block, why ? …

Member Avatar for adam_k
0
194
Member Avatar for R0bb0b

I am building a selenium test suite which pulls a list of tests to run and then forks those tests to multiple parallel processes. Each process needs its own connection to the database because of two reasons: one, when the child process ends the connection is closed and two, when …

Member Avatar for veedeoo
0
285

The End.