64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BrickZ28

Ok so this is gotten me. Im trying to get a sql insert to work only if 2 varibles do not equal each other. So easy right just compare the 2 varibles and if they arent equal do the code. Well even if the 2 are equal the code runs. …

Member Avatar for BrickZ28
0
307
Member Avatar for pucivogel

I have a script that uploads documents, it uploads them in the destination folder, but not the info about the document. Pleasa help i need this as soon as possible. No errors show. <?php $UploadDirectory = 'C:/wamp/www/agenda1/uploaddok/uploads/'; //Upload Directory, ends with slash & make sure folder exist $SuccessRedirect = 'http://localhost:8080/agenda1/index2.php'; …

Member Avatar for broj1
0
411
Member Avatar for csss

private void decrypt_Click(object sender, EventArgs e) { v = Convert.ToDouble (txtencrypt.Text); t = Math.Pow(v, d); msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n)); txtdecrypt.Text = Convert.ToString(msg); } This is the code im doing for decryption in rsa algorithm but i got a problem in power operation. For a small power value,the power operation …

Member Avatar for TnTinMN
0
255
Member Avatar for michelleruth

Write java program to do the following:  Write a METHOD to input an array of type LONG that stores the value of all the powers of 2 from 0 to 63 (i.e. 2^0 to 2^63 )  Output the contents of the array screen (what happens if you try …

Member Avatar for michelleruth
0
2K
Member Avatar for pucivogel

How can i make an ajax request through a link, i mean when i click on link <a href=.... it sends an ajax request to a php file which shows in my case a table?

Member Avatar for JorgeM
0
398
Member Avatar for alek.mieczkowski

Hi all, Im writing a program, that takes the a, b, and c from an equation, and uses them to find x using the formula: [http://www.purplemath.com/modules/quads/qform01.gif](http://www.purplemath.com/modules/quads/qform01.gif). The problem im getting, is that when I plugin the equation 1x^2 +3x +4 I get x = -Infinity and x = infinity instead …

Member Avatar for M4trixSh4d0w
0
248
Member Avatar for AARTI SHRIVAS

<html> <head> <title>PHPMailer - SMTP (Gmail) authenrication</title> </head> <body> <?php require_once('class.phpmailer.php'); $mail = new PHPMailer(false); // the true param means it will throw exceptions on errors, which we need to catch // - - - - - - - - - Email Configuration - - - - - - - …

Member Avatar for LastMitch
0
6K
Member Avatar for achinthaadd

hi, i want a get msgbox(" Time Out") , when click some button then after 10 days ago, it may be close my application and it can not affect to time ( 10 days), i dont know how it code, please help me. tks,

Member Avatar for achinthaadd
0
116
Member Avatar for Alexkid

Hi there, I was wondering if anyone could help me, I’m trying to send various packets of data over network via UDP. I’m using the sendto() function in winsock2. I’m trying to send different data types over UDP, for example; I have positional data such as: int time; float LAT; …

Member Avatar for mike_2000_17
0
6K
Member Avatar for chdboy

I have two tables Employer Employee Employer Table: I have one field EmployerID (pk Key assigned to it) Employee Table: EmployerID(pk Key assigned to it) IDEmployer(fk key assigned to it,and Allow Nulls:Checked) Now my question is how to relate two tables ,that I will now that who works for who? …

Member Avatar for Reverend Jim
0
199
Member Avatar for lukas.vandendijssel

Hello, I know I shouldn't use mysql_. So I have a mysql_query which updates my table (for a hit counter). However, when I open the page, I get to see this: > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for lukas.vandendijssel
0
186
Member Avatar for joshfizzle

This is my first program apart from the infamous "HelloWorld" one. The purpose of this program is to simulate a lottery number generator. The program is printing numbers which is great, but it isn't behaving like how it should. It's supposed to print 100 number combinations and it only prints …

Member Avatar for joshfizzle
0
230
Member Avatar for naphets

I have a bash script that executes @ init level 3. I would like to "wrap" (for lack of better word) this bash script in a php script. Use the power of php to supress any output from the bash. Also display only the splash logos (like what you see …

Member Avatar for naphets
0
457
Member Avatar for kimangel

hi experts, i have problem saving my logout entry could not be saved on database. Password & username textbox is in the login form on form 1 and lbldate & lbltime is on form 2. Log-out click is a Menu editor on form 2. Pls help me check my code. …

Member Avatar for AndreRet
0
180
Member Avatar for meetjatin88

which one should be preferable from the following two nested for loops: 1. for(i=0;i<100;++i) { for(k=0;k<10000;++k) { <lines of code> } } 2. for(k=0;k<10000;++k) { for(i=0;i<100;++i) { <lines of code> } } why?

Member Avatar for mike_2000_17
0
192
Member Avatar for IT_Techno

hi every one, iam try to build aconnection to sql database using sql string inside my c# class, but i cannot use ConfigurationManager i donot know why ? iam beginner in c#. i have read in enternet, i need Configuration Manager dll file but it doesnot work with me. what …

Member Avatar for IT_Techno
0
103
Member Avatar for smurfy

Dear Daniweb Members, First of all sorry my english writing. I installed JavaJDK 7u13 with NetBeans 7.2.1 and db-derby-10.5.3.0-bin.zip on a fresh OS. Then i set the environment variables according to their relative paths as seen below. By using ij the test database and the test table created, records inserted …

Member Avatar for stultuske
0
2K
Member Avatar for Dani

As many of you know, DaniWeb now has an API. It (optionally) uses OAuth 2.0 and it supports both server-side and client-side implementations. The server-side method I have down pat. However, I had to hack together the clientside implementation, and although it works, I'm not sure it's done "correctly". I …

Member Avatar for Dani
0
911
Member Avatar for triumphost

http://i.imgur.com/kWrBizl.png In the above Image, I generator a Sudoku Matrix of 9x9 values. Is there any way I can allow user to enter individual values by moving around the caret and typing? Basically, I want them to just be able to change the values displayed on the screen by moving …

Member Avatar for tinstaafl
0
173
Member Avatar for Sci3nc3F1cti0n

I'm writing a program that will keep track of every Anime/Manga I watch/read(I'm an avid fan). I'm trying to make a database in order to keep track of all of the titles of the Anime/Manga. My problem is that when i try to add a new title to the existing …

Member Avatar for Sci3nc3F1cti0n
0
226
Member Avatar for hwoarang69

i dont understant why its not going inside "error_01 or error_02" if statment? if user enter username and hit sumbit than it goes in "worked" if statment but if user dont enter any thing in usrname it still go in "worked" if statment. <!-- login form --> <form method ="POST" …

Member Avatar for M4trixSh4d0w
0
194
Member Avatar for pucivogel

So, i want to display data from a table in my db (Mysql), i click the buttonto get the data, it sends request via Ajax and Ajax calls getdata.php file. The table which is supposed to return the data returns in everyfield the written code like "$head" and "$value". I …

Member Avatar for AleMonteiro
0
245
Member Avatar for meetjatin88

Hello Everyone i am trying to write a program for printing all the combinations of a string.I do not want any help regarding the algorithm but i need help figuring out why this program is giving the error message "First-chance exception at 0x761bc41f in word.exe: Microsoft C++ exception: std::out_of_range at …

Member Avatar for meetjatin88
0
244
Member Avatar for Helianthus

Ok, so I am working on the hangman game for a school assignment. I have everything doing what I want except for one issue: No matter how many letters are in my word, the number of dashes is always one more than I need. For example: say the word is …

Member Avatar for Helianthus
0
868
Member Avatar for wids101

Please enter your starting balance: 200 What would you like to do? B...Show Balance D...Deposit W...Withdrawal Q...Quit B Your balance is 200.000000 Press any key to continue . . . i put my set precision to 2 and it's printing 6 zeros. how come?

Member Avatar for vmanes
0
99
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
229
Member Avatar for pucivogel

I get this error Notice: A non well formed numeric value encountered in C:\wamp\www\agenda\index2.php on line 178 on th following line : echo ' <b><a href="engine/changedate.php?date=' . date("Y-m-d", $dtime) . '">' . date("Y-m-d", $dtime) . '(' . $days . ')</a>:</b><span title="' . $recordSet->fields["description"] . '">' . $recordSet->fields["title"] . '</span>'; any …

Member Avatar for pucivogel
0
160
Member Avatar for castajiz_2

I m having a problem when sending my c# projects to a friend via e-mail. Before sending i use WINRAR to compress it however when the other side gets the mail and when it tries to open it, it get s an error ouptut saying: "application not found". When going …

Member Avatar for TnTinMN
0
4K
Member Avatar for Ayesha.Shahnawaz

Ok, so my form displays an error saying "run time error. could not find installable ISAM." everytime i run it. And its pointing at "conn.Open" part of the code when i run it. heres my code: Dim conn As ADODB.Connection Dim rec As ADODB.Recordset Dim rec1 As ADODB.Recordset Dim rec2 …

Member Avatar for AndreRet
0
2K
Member Avatar for homeboy

Hello, I created a dynamic object but I do not know how to use it when the instanciation of the object is finished. I would like to call some methodes from Class Base by an objet that I created dynamically. Can you explain me, pls? Thank you This is my …

Member Avatar for homeboy
0
237
Member Avatar for Jake.20

Greetings everyone i really need some help about this error. If (maleRbtn.Checked = True) Then gender = 0 ElseIf (femaleRbtn.Checked = True) Then gender = 1 End If If (dietRbtn.Checked = True) Then purpose = 0 ElseIf (BDrbtn.Checked = True) Then purpose = 1 End If Try sqlCmd = New …

Member Avatar for Reverend Jim
0
322
Member Avatar for cereal

Hello, I'm trying to display a message depending on the value of an input field. But it stops working when going back to default. Here's the JQuery code: $(document).ready(function(){ test(); }); function test() { $('#quantity').keyup(function(){ var quantity = $('input:text#quantity').val(); if(isInteger(quantity)) { var msg = false; if(quantity > 1) { msg …

Member Avatar for cereal
0
196
Member Avatar for pucivogel

I have this code it uploads photos and deletes photos, but how can i make it to upload photos in a folder i want not in the same folder where the script is, i just can't see where can i implement the path. Here's the whole code: <?php /** * …

Member Avatar for Squidge
0
307
Member Avatar for pucivogel

i have downloaded this script , a photo gallery which creates albums, uploads photos, deletes them, i nedd to insert the path of the folder according to this instructions : $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. $files_path="./album/"; // Where does the album start? …

Member Avatar for Squidge
0
260
Member Avatar for Learningvinit

I ran same code linux and HP platform And the result stored was different. I found that the boundar for comparison is 255. It can be more undersstood from the below code. #include <stdio.h> int main() { FILE *fp=fopen("linux2.txt","wb"); int a = 100; int c=0; int i=0; for (i=0; i …

Member Avatar for Learningvinit
0
177
Member Avatar for Learningvinit

Hi All, While running a piece of code on Linux and HP i found the differenc in the result. Can Anyone Explain Why it is giving different results? #include <stdio.h> int main() { int a = 0; int b = 30030; int c = 34094; int d = 0 ; …

Member Avatar for Learningvinit
0
600
Member Avatar for MRehanQadri

#include <iostream> using namespace std; struct td{ int ** subj_no; }; int main(){ td p; **p.subj_no = new int * [7]; } If not then how should I accomplish this task? What's the corrected version?

Member Avatar for vmanes
0
176
Member Avatar for sagisgirl

Hi all.. im now building a web-system using php..and i have 4 groups of users 1- G1 2- G2 3- G3 4- G4 in my db, those are in my table called "u_userGroup" and for my entity is "groupCode". so, these 4 groups have different privileges to each page.. G1 …

Member Avatar for sagisgirl
0
205
Member Avatar for amweasel

I have been trying to make a simple "quiz" program on Python. And this is what I coded: print("Mathematics Quiz") question1 = "Who is president of USA?" options1 = "a. Bharat Chauhan\nb. His dad\nc. His mom\nd. Barack Obama\n" print(question1) print(options1) while True: response = input("Hit 'a', 'b', 'c' or 'd' …

Member Avatar for amweasel
0
469
Member Avatar for x38class

I have found the following post re this issue does any body have any idea which is correct 1. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32] "NoFileMru"=dword:00000001 2.HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Value Name: NoRecentDocsMenu Value Type: REG_DWORD Value Data: 0 or 1 0 = Yes, allow recent docs 1 = No, do not allow recent docs Value Name: ClearRecentDocsOnExit …

0
247
Member Avatar for castajiz_2

This is just an example i have to do a simillar thing on a much larger code , but my question is why doesn t this work? I solved my problem with a string method and return statements but why can t i use a void method with the result …

Member Avatar for tinstaafl
0
310
Member Avatar for engrjd91
Member Avatar for engrjd91
0
143
Member Avatar for aabbccbryanmark

hi folks, im having a problem here on my code can't figure what's wrong.. so here's my code: import java.awt.*; import java.awt.Font.*; import java.awt.Color.*; import java.awt.Button.*; import java.awt.event.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import javax.swing.*; import javax.swing.JOptionPane; public class Calc extends JFrame implements ActionListener { JTextArea txtArea; static final …

Member Avatar for stultuske
0
556
Member Avatar for sophy27

Hi, everyone! I need some urgent help with displaying images in a web page from a database. I've created the table picture in phpmydamin and it has these columns: id_picture( wich is the primary key), name, description and the pic_url ( wich contains the url path of the image for …

Member Avatar for sophy27
0
1K
Member Avatar for fyra

Hi guys and gals. How can I find write or open for example? I tried man write and man open but those were not the pages I was looking for.

Member Avatar for rubberman
0
122
Member Avatar for anisha.silva

hi how do i get the value of the checkbox list from a web page? appreciate a reply thanks

Member Avatar for JorgeM
0
113
Member Avatar for josverhoeff

My vb6 to vb.net converted application performs about twice as slow as the classic ASP version. Here is the setup: I have an old ASP application that uses for most of its function calls a vb6 dll of 30000 + lines of code. I managed to convert the dll into …

Member Avatar for TnTinMN
0
533
Member Avatar for bajanpoet

I was working on a project in my VB.NET Express and suddenly my code that was working fine and starting up as normal gave me this error: {"An error occurred creating the form. See Exception.InnerException for details. The error is: Format of the initialization string does not conform to specification …

Member Avatar for Reverend Jim
0
705
Member Avatar for danielgr

I need to consume a web service in VS 2010 using VB.NET that gives a result of a class type. I've already added the reference and called it with: Dim mag As New Magento.ecommerce I can create a variable as the class: Dim Stockcodes As New List(Of Magento.clsStockcode) I just …

Member Avatar for danielgr
0
301
Member Avatar for arjay1

I am converting a traditional website to WordPress for an animal rescue charity so members can have a blog and more easily update various pages. All has gone well but I am stuck on one key aspect. Viewers of the original site can click on a page that will then …

Member Avatar for arjay1
0
475

The End.