199,114 Archived Topics
Remove Filter ![]() | |
Progressbar not updating :'( please help. Private Sub ftpupload() Dim ext As String = Path.GetExtension(NsTextBox1.Text) Dim fname As String = Path.GetFileNameWithoutExtension(NsTextBox1.Text) Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://xxx@xxx.org/" & fname & ext), System.Net.FtpWebRequest) request.Credentials = New System.Net.NetworkCredential("xxx@xxx.org", "xxxxxxx") request.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = System.IO.File.ReadAllBytes(NsTextBox1.Text) Dim strr As System.IO.Stream … | |
Hi to everybody. I've just started a new project for my company in a touch-screen environment. I started to implement a form that simulates a keyboard without taking the focus in order to write i.e. in notepad. It's possible by overriding the `WndProc(ref Message m)` and refusing the activation on … | |
I have a problem updating table from datagridview in vb.net to sql server. I have posted the code below. I am importing connectionstring from connection module. It used to be working but I dont know what went wrong and now it isnt. Imports System.Data.SqlClient Public Class frmreportsp Dim cn As … | |
Hi All, I am trying to build an App for Windows Phone 8.1 with continuous location tracking using Bing Maps. Is this a possibility at all with WP 8.1 or should i try it with WP 8 only? | |
Currently im creating a simple phone directory. I am having a problem when searching the vector. It only lets me search for the exact key in the directory when I need to to search for strings that are close to the name. For example when I search "car" it will … | |
displaying blank page index.php // connection.php $server = "localhost"; $user = "root"; $password = ""; $dbName = "matrimony"; $conn = mysql_connect($server,$user,$password, $dbName) or die("There was a problem connecting to MySQL. Please try again later."); if (!@mysql_select_db($dbName, $conn)) { die ("There was a problem connecting to the database. Please try again … ![]() | |
I'm trying to create a store procedure in mysql and it is giving me errors and I don't know why since the sql code works just find. Here is the sql code: CREATE TEMPORARY TABLE IF NOT EXISTS table2 AS ( select AVG(Score) as AVG, MovieCode from UserMovies group by … | |
code works fine...but I have a bunch of photos which are jpeg and they cant be uploaded while the other jpeg photos are able too...its really weird..oh well here's the code... <?php error_reporting(0); mysql_connect('localhost','root',''); mysql_select_db('uslt'); ?> <html> <head> <title>Album Gallery</title> <link rel='stylesheet' href='style.css'> </head> <body> <div id='body'> <?php include('title_bar.php');?> <div … | |
Hey guys, I need to produce an output such as {{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}}; I have no input paramethers so I assume I need to have int[] array= {0,0,0,0,0} and then make 2d array of it? I tried int [][] arrayOfSets = new int[0][25]; int [] a = {0,0,0,0,0}; for(int i=0; i<1;i++){ for(int … | |
Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im … | |
Hi i need help to solve this issue: refresh the first controller, UITableview and navigation bar for changing bg colors the color are set and it works i need only to refresh the app for update the app with the new colors i change the colors of my app clicking … | |
hey everyone i am new to vb.net program. I am currently working on a pizza ordering system. what i am doing is i am populating a combobox with pizza names from the menu datagridview. What i want to do now is to select the row that has the corresponding pizza … | |
Greetings I want to optimize a SQL Query. The problem I have a database full of such Queries and I need help for optimizing those Queries the problem with the Query is that it contains dozens of CASE blocks and within those CASE blocks there are calculations the Query results … | |
Hello Daniweb Community, I was wondering if anyone could help or point me to a good tutorial on how to use Google Authenticator in PHP. | |
Hi guys, so I started learning Java 2 minutes ago and I have already encountered an error. The error is Error: Could not find or load main class apples.class and I get it after I use the cmd to type java apples.class . Here is the code I compiled to … | |
Hey guys I am grabbing URLs from the database. Then with each URL, I need to open that file, and only display the contents between <h1> tags and discard the rest. -- IMPORTANT -- I do not want to actually remove everything else from each file, I simply want to … ![]() | |
I have a scroll function that I want to fire when the user scrolls to the very bottom of the page. However it is doing the exact opposite; it is firing at the top of the page. I have used this before, and everything on the web says to do … | |
Hi i am developing Attendence mgt sys. and i have to insert name,section,class,status in database of n number of students. I am able to do listing by the code below: <?php @session_start(); include('config.php'); $sessionName = $_SESSION['NAME']; $sessionID = $_SESSION['UID']; if($sessionName == "" && $sessionID == "") { header('location:index.php'); } $class … ![]() | |
I have this sqlqry, icarrelli have the value 0 and the q2 value 64(sum) why the result is 64 and not -64? <?php $result = mysql_query("SELECT *,iCarrelli-SUM(q2) as total9 FROM articles,inc"); $row= mysql_fetch_assoc($result); echo "" . $row['total9'] . ""; ?> | |
I need to subdtring a paragraph in php, without breaking a word? ![]() | |
1. <input type="hidden" name="BKIRIM" id="txt" value=""/> 2. <input type="text" name="BKIRIM1" id="txt2" value=""/> 3. <input type="hidden" name="distance" id="distance" value=""/> 4. <input type="hidden" name="distance1" id="txt1" value=""/> 5. <input type="hidden" name="distance2" id="txt1" value=""/> 6. <td><span class="man"></span>From:</td> 7. <td> 8. <?php 9. $query = "SELECT * from sfc"; 10. $res = @mysql_query($query); 11. echo'<select … ![]() | |
Hi everyone. I have a bit confusion about vector. here is my 2 structs <global>and in the main have vector declared. file name is"report.txt" Have file with meteo readings,like • the meteorologist’s name on duty that day (a string of up to 12 characters) • hours of sunshine (double) • … | |
Hello There seems to be a problem with the editing and posting facility here - the page has asked me to start a new discussion and not allowing me to reply, but this is a follow on from: https://www.daniweb.com/web-development/aspnet/threads/484864/site.master-file-question#post2121613 Thanks madCoder for your explanation. That accounts for the wild difference … | |
#include <iostream> class Book { public: Book(char* char*); private: char* title; // dynamic pointer to char array char* author; // dynamic pointer to char array public: Book& Book::operator=(const Book& b) { if(this != &p) // make sure it's not the same object { delete [] author; // delete author memory … | |
I'm not understanding why i'm able to read from the file but i can't write to it. The fstream is open in both modes. Once the program finishes i haven't changed the content of the file. Thank you in advance. #include <fstream> #include <string> #include <iostream> int main() { std::string … | |
I have a project in wich i have to create a program making usae of geotechnology. My program revolves around pilots, paragliders and airbaloons. Basicly it has 3 seperate programs for each category and solves some of the difficulties that come along with it. Any idead for a name and … | |
i am working on codigniter . i am developing basic cms.my view code of generating dynamic pages at front end is <ul id="jsddm"> <?php for ($i=1; $i<=$url['10']['10']['10']; $i++) { ?> <li><a href="<?php echo site_url($url[$i]['0']['slug']); ?>"> <?php echo $url[$i]['0']['page_name']; ?> </a> <?php if($url['11'][$i]['11']>0){ ?> <ul> <?php for ($j=1; $j<$url['11'][$i]['11']; $j++) { … | |
#include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes = 0; } Time(int h, int m){ hours = h; minutes = m; } // method to display time void … | |
The book I'm using continues to give me code and fails to explain the syntax. I got to a chapter on operator overloading and it gave me some code but didn't actually explain any of the code. I having trouble understanding the Rectangle operator+ line and that methods contents. Why … | |
How do one go about opening a file in php by using the resources made available on a system. Take for instance that after getting the header content information of a file, one discovers that the file is a word document, or a pdf file, how do one use a … | |
Using AJAX is better then iFrames because things are dynamic, instead of making a call to the server to load an entire HTML page, you can do it dynamically, one question remains. Can I style the look of, and this ties into another thread I started, scroll bars etc ? … | |
So I am currently working in ASP.Net and a bit stuck. I obtain the full html that I wish to render into the tab from a WSDL request and then need to find a way to load a new tab in the browser and display that information. I have currently … | |
I have the following form that I need the fields to be mandatory before submission: form name="application" id="applicatipn" method="post" action="send_mail.php" > <h2 class="title">form</h2> <p class="sub-text">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX </p> <table width="620px"> <tr class="bg-grey"> <td> <h3 >Personal Details</h3> </td> </tr> </table> <table width="600px" class="bg-light-grey" style=" margin-left: 10px"> <tr> <td valign="top"> <label>Title</label> <br /> <input … | |
Hi 'Wise & Wonderful Daniwebbers', Why do I keep loosing my project settings when I add a new project to an existing solution? I have to go to every project, in the solution and re-configure each project's: * Include Directories; * Library Directories; * Linker Settings; etc., Which of the … | |
Can someone help me solve this problem: 1)How can i insert every word of label.text to array 2)How can i check if the word that i type on textbox is equal to every word on label.text | |
Hello, I would like to make a table column editable that is written in PHP. And that edited value should be subtracted with the data in another column automatically to change the value of it. Eg: I have 3 columns, Pass/Fail/Blocked. $pass and $fail are taken from DB & Blocked … | |
While coding for an e-commerce website. I received warning about this: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\shopping\store\index.php on line 194 This is my code: <?php include "connect.php"; $result1= mysql_query("SELECT * FROM internet_shop"); while($row=mysql_fetch_assoc($result1)) { echo ' <a rel="facebox" href="orderpage.php?id='.$row['id'].'&transnum='.$transnum.' "><img src="img/products/'.$row['img'].'" alt="'.htmlspecialchars($row['name']).' " width="109" height="109" … | |
After publishing my project on local IIS it worked fine but on the web its keep poping the error [ArgumentException: Invalid value for key 'attachdbfilename'.] many forum i search said its connection string from my webconfig file but i went the extra mile by removing the whole connection string and … | |
[CODE]#include <iostream> #include <iomanip> #include <string> #include <cctype> #include <cstring> using namespace std; const int NUMROWS = 14; const int NUMSEATS = 7; //enum seatsType {A,B,C,D,E,F}; void initPlane(char plane[NUMROWS][NUMSEATS]) { int x,y; //strcpy(plane[2], "Row 1"); plane[0][0] = ' '; plane[0][1] = 'A'; plane[0][2] = 'B'; plane[0][3] = 'C'; plane[0][4] = … | |
i have a script which uses window.open to open multiple popups in browser. But when i run that script on android browser or any mobile browser it dont work. Is there a way to open multiple tabs in mobile browser on load. | |
Hi I am new to Java/netbeans. I have been working on a school assignment to create a commission calculator. I have it done I believe but, have some errors. Please help. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, … | |
hy, unfor its not showing nothing...what it is wrong...? <?php include('config.php'); error_reporting(0); ?> <table border=1> <tr> <td rowspan="3">Ditta</td> <td colspan="6">mandatori riceve</td> <td colspan="6">mandatori consegna</td> <td colspan="6">saldo</td> </tr> <tr> <td colspan="3">carelli</td> <td colspan="3"></td> <td colspan="3">carelli</td> <td colspan="3"></td> <td colspan="3">carelli</td> <td colspan="3"></td> </tr> <tr> <td>carrelli con piastra luc.rosso</td> <td>carrelli con piastra luc.nero</td> … | |
Good Day Daniweb, I am encountering a problem in php code meant to allow the user to update their profile picture. I am using jquery.min and jquery.js. The code below runs with no errors reported. The file has been successfully uploaded to upload path using this form. upload.php <form id="imageform" … | |
Hello, Currently on my site the jquery masonry is loading quite oddly, it loads all the images first then it sorts itself into position. i want it to load just like it does in pinterest.com. Please help. Regards, Tamea Jquery Code jQuery( function($) { // Scroll back to top function … | |
When i copy a text and upload it the output looks like that PROLOGUE\n\n\nIF you leave the city by the Porta Maggiore and take the Via\nPrænestina, which leads east into the Sabine hills, at some thirty-six\nkilometers i want to replace \n with a line break i use this `UPDATE messages … | |
We have a Zebra QLn420 label printer and I am writing a .Net application to allow the user to scan an item, process it through our system, create a shipping label, then send it in a .ZPL file to the Zebra label printer. Where I'm running into trouble is getting … | |
please help me how to compute the penalty.my want my system to automatically compute the penalty within the given time or with the time. ![]() | |
I re-post a thread which many others submitted times ago, but never got solutions or good answers! I re-new the challenge :) [url]http://www.daniweb.com/forums/thread226795.html[/url] The last post gives an idea. Another is here [url]http://www.daniweb.com/forums/thread104261.html[/url] I mean: editable dropdown boxes autocomplete function works with a so builded filter: LIKE 'string%' what WE … | |
hi, I need to copy a dictionary to another dictionary where the Dictionary contains class data as value for eg I want to copy the data of object A1 to A2 .Thanks for your time. Class A { } Class B { } Main() { Dictionary<int,A> A1 = new Dictionary<int,A>(); … | |
Hi All, We have a project coming up, As i am eveluating the PHP frame works i found out cakePHP is most suitable for our project. I have not used it before but i am new to it and facing problem in configuring. I have completed the setup as per … |
The End.