199,114 Archived Topics
Remove Filter ![]() | |
Hi all, i need to find Internet Service provider IP Address through VB6 Coding. (http://www.whatismyip.net/) Is it possible? Please send me the coding. | |
Hi, I am using curl to download files from the internet and it is working fine. The problem is that I am trying to check if the file exists before downloading it. I was thinking that if the file doesn't exist, then I would receive a CURLcode with and error, … | |
Imports System.Data.SqlClient Imports System Imports System.Data Imports System.Collections Imports System.Windows.Forms Imports System.Resources Imports System.Data.OleDb Imports System.Drawing Imports System.Net.Mail Imports System.Configuration Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Public Class Form1 Inherits System.Windows.Forms.Form Dim counter As Int32 = 0 Private Sub Form1_Load(ByVal sender As System.Object, ByVal … | |
Simple Sound Player Goal The goal of this assignment is to implement a simple sound player. The application has been partially implemented, and you need to complete the missing bits. When you open the project, you will see the class structure depicted below. Three of the classes are fully implemented … | |
hi.. Im a beginner in visual basic 2010 im making my first project i created form3 for the search function so i created 2 checkbox to give the user the choice to choose to search by name or by date or by both of them and i created a button … | |
HI All, I have three tables tbl_category, tbl_subcategory, tbl_product . where categoryid is foreign key in subcategory table and subcategoryid is foreign key in prduct table. I want to show category and subcategory on home page menubar. I just reach upto display category on menubar but not able to get … | |
it keep on printing 1st image from database. but i want to print all the differenct images. $id = $_SESSION['user_id']; //select images from database $sql = "SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC"; $result = mysql_query($sql); while($row = mysql_fetch_assoc($result)) { <img src="image.php?id='.$row['image_id'].'" /> } image.php … | |
``this code keeps kicking out the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a2595218/public_html/login.php on line 49 with the out-put " The username you enterted was not found " I should be seeing the error " You must active your acount to play. $form";" … | |
Hi, DaniWeb members, Recently i've been developing a progam that will read in a player database that is stored in plain text if the folling format name ,age,score,date played So far i have managed to read in the file and caculate the number of players in the database by Do … | |
Hi This is either really simple or completely impossible :) I have a table like the following: [CODE] <table> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>7</td> <td>9</td> </tr> <tr> <td><<SUM OF THIS COLUMN (8)>></td> <td><<SUM OF THIS COLUMN(11)>></td> </tr> </table>[/CODE] I hope you understand what it is im asking. This is … | |
Is there a way to use Order by RAND() for a query so that it returns a list of results and guarantees that adjacent values will be at least 'x' from each other, on either side? The results are all numbers, no strings. So if it returns 5 results r1 … | |
hi its me again, same program new problem... been working on this all day and i just cannot get it to work. #define INVENTORY_H #include <iostream> #include <iomanip> #include <string> #include <istream> #include <fstream> #include <vector> #include <ctime> using namespace std; class Inventory { private: static const char *Error[]; static … | |
hi guys just need some help in creating a sign up button or a register button and the code inside it. I already created a login form complete with username and password, problem is I do not know how I can create a login for it. I mean it's just … | |
Hi, Im trying to insert to a table in sql that is related to another by a foreign key. The first table has an ID, a suppliers id and a date; and the other table has an ID (that for some records should have the same id from the other … | |
I'm writing a script to populate a list with the last 5 albums frm a list of what's about to play. My query works in terms of retrieving the values, but the list populates with a set of parens and an extra comma added to each returned value. Any ideas … | |
I'm not really sure how to word it, if it is possible, but part of my program reads from a text file. It then pulls out the necessary information needed from that file by finding key identifiers. Right now the code is written to find the first key identifier and … | |
I am accessing images from another website. I am getting "failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request " error when copying 'some(not all)' images. here is my code.[CODE]$img=$_GET['img']; //another website url $file=$img; function getFileextension($file) { return end(explode(".", $file)); } $fileext=getFileextension($file); if($fileext=='jpg' || $fileext=='gif' || $fileext=='jpeg' || … | |
![]() | Hello, I learned Java few years back, and later learned PHP and built a website/application using php. my website had a database and 98% of the code was not in OO (the other 2% I copy pasted fromt he internet).. when I needed to display some data I made a … |
I was wondering if it is possible to export a project in eclipse as a jar file but that doesnt include the .java source code files. For example, say i wanted to distribute my program to others but didnt want them to be able to alter my .java source codes. … | |
Hello :). How can I fix this? Yes, I can write 2 functions (with and without parameter) ... but what is bad there? #include <cstdlib> #include <string> #include <iostream> using namespace std; class CClass{ public: void foo(string & s = "default"); // COMPILE ERROR string backup; }; void CClass::foo(string & … | |
hello, i am new to this site but i have used it as reference before. this is a program for one of my classes and i have everything done down to one error... error LNK2001: unresolved external symbol "private: static char const * * Inventory::Error" (?Error@Inventory@@0PAPBDA) 1>C:\Users\Joey\documents\visual studio 2010\Projects\JHabura PA … | |
So I've been dealing with this issue for about 5 hours and I'm just about desperate now. I'm trying to create a LOCAL mysql database on my computer using IIS 7. I've already created one on another computer without any issues but I'm having issues configuring it on this laptop … | |
Hi :). I use this code to create a file: #include <cstdlib> #include <fstream> using namespace std; int main () { ofstream file("main/articles/giraffe/article.txt", ios::out); file.close (); return 0; } How can I simplify **create path of folders** (on **unix system**) "main/articles/giraffe/" - if folder "main" doesn't exist? With using standard … | |
Hi, How to store while data result set into the session variables and how retrieve the appropriate the session values of the hyperlink on test.php(on another page)... please help me out...thanks Hi, session_start(); $query="select id,name from test"; $result=mssql_query($query); while($row=mssql_fetch_assoc($result)) { $pid=$row['id']; $pname=$row['name']; echo "<tr>" echo "<td>"; ** echo "<a href=test.php>$pid</a>";** … | |
hi i want to get values from multiples tables in sql. i want to those values put in datatable. how can i put values from multiple table in datatable then return the datatable in Asp.net using c# how its possible....thanks in advance.... | |
![]() | **Hello folks!** i am using DEV C++ to code now i am working at a game in console and i have a problem with the *_setcursortype(_NOCURSOR);* function i set it but the cursor is still like *_NORMALCURSOR* in Turbo C works perfectly in DEV not ( i tried to set … ![]() |
Hey, I am having some difficulty drawing my lines correctly using flash.Box2D. The fault isnt with box2D, rather with my math. I attached a swf with the basic engine as well as some angles drawn on it. Why doesnt the lines want to draw correctly for anything greater than +-40 … | |
so i made this code that asks the user about corporate's data(division's name, sales, etc) #include <iostream> #include <string> #include <fstream> using namespace std; const int SIZE = 4; struct Division { string name; string quarter[SIZE]; double sales[SIZE]; }; void getData(Division []); int main() { Division corp[SIZE]; for(int count = … | |
How can I take the below array and make it an in-line array? // Store user-data in array $USER = array(); // first user info $USER[1] = "username"; $USER[1] = "password"; $USER[1] = "rank"; $USER[1] = "session id"; // second user info $USER[2] = "username"; $USER[2] = "password"; $USER[2] = … | |
Hi, I am trying to build an archive for a website that will be publishing journals. However, I am having challenges building the archive where past journals will be stored and retrieved for future references and reading. My major challenge is how to retrieve the datetime from the DB and … | |
How can i upload an image in my php comment box here it is: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.php", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try … ![]() | |
#include<fstream> #include<iostream> #include<string> using namespace std; int main () { struct Candidate{ char RegNomer[4]; char name[60]; char party[60]; char age[3]; char xp[3]; long int votes; }candidate[200]; int i=-1; int i1=0; int check=0; char choice[1]; while (true) { system ("cls"); cout<<"/============\\=/============\\=/============\\=/============\\=/============\\ "<<"\n"; cout<<"| save | | create a | | banned … | |
Hello, How can i replace a button by an image? Here is my code: <INPUT TYPE="butt <INPUT TYPE="button" NAME="insert" VALUE="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');">insert" Thank you, Sanchixx | |
Ok I started writing this program for a school project in Eclipse in windows and now shifting to vim in UNIX and I am getting a bunch of errors. I am currently trying to figure out the top two errors (And yes the funky characters are what I see). Here … | |
![]() | NotiOpened = '0'; if (NotiOpened == '0';) { $("#notification").slideDown("slow"); $('#notification').load('notification.php'); NotiOpened = '1'; } else { $("#notification").slideUp("slow"); NotiOpened = '0'; } what's wrong with it? |
**Hello, If I have an array, and want to make a heap tree out of it using make heap and sort heap, how would I do it? I'm struggling because I didn't take any course in data structure. Any help -in c++- will be appreciated :D** | |
how to automatically refresh a dynamic web page after 1 second at once(not continually) using javascript ? | |
**How am I going to split a line of strings ang put it into an array if the strings are arranged into columns, just like the attached file then compare the first column with user's input..? ** | |
1.Create class IntegerSet. Each IntegerSet object can hold integers in the range 0-100. The set is represented by an array of bools. Array element a[ i ] is true if integer i is in the set. Array element a[ j ] is false if integer j is not in the … | |
Hi All, I should be able to create a default directory inside project's root directory when the application_start method(inside global.asax)is called for my asp.net web application. As IIS users dont have full rights to webroot directory(for directory create) i get access denied error message while trying to create the directory.Also … | |
Hi I'm trying to decide which **SQLite** book to get and was wondering if anyone has used either of the ones or others listed below? I could rely on Amazon testimonials but not sure I trust them. I have never used any database software outside of Microsoft access before so … | |
ok now lets say we have this code import hashlib,itertools,string m=hashlib.md5() s=string.printable it=itertools.product(s,repeat=1) for i in it: ij="".join(i) m.update(ij) print ij+" "+m.hexdigest() >> 0 cfcd208495d565ef66e7dff9f98764da 1 96a3be3cf272e017046d1b2674a52bd3 2 d2490f048dc3b77a457e3e450ab4eb38 3 eb62f6b9306db575c2d596b1279627a4 4 4100c4d44da9177247e44a5fc1546778 5 d6a9a933c8aafc51e55ac0662b6e4d4a 6 124bd1296bec0d9d93c7b52a71ad8d5b 7 2e9ec317e197819358fbc43afca7d837 8 22975d8a5ed1b91445f6c55ac121505b 9 781e5e245d69b566979b86e28d23f2c7 a 343817fa02440513ce03e9d1f1e44dc7 b b60c52bf4849067f0b57c8bd30985466 c 2d31d97199fb287d6fcb4f82ebd1b3f2 d … | |
hey all I've searched all over the web and i didn't get a solution! what should i do to take the text from the 'urlT' line edit? is there another way? Nameerror "global name 'self' is not defined" whats wrong with it? [CODE] from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): … | |
I'm making a Riemman sum code for a school project but I keep getting this error at line 37. The line is in the for loop after the statement "String coord2;". String message, message2, numStr, numStr2, numStr3, numStr4, numStr5; double a, n, xmin, xmax, w, w2, w3, w4, w5, area, … | |
hello everyone, i've trying to make a simple object(e.g. a simple robot with arms and legs) in openGL..but i've trouble finding how to write all the vertices within the code..is there any tool we can use to develop the objects separately..and drag the vertice co-ordinates into my program?? thank you | |
Hi there, I'm writing some application based on Qt and C++ and I've reached the problem. How to display window via clicking, triggering, etc. I wrote some code: //---------------------------- // THIS IS IN mainwindow.h //---------------------------- #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } class MainWindow : … | |
Does anyone know of a function that can check all or uncheck all checkboxes with one click barring in mind i have multiple forms on one page. function checkAll(formName, status){ for (i = 0; i < formName.length; i++) formName[i].checked = status.checked? true:false } I have tried the above it works … | |
does anybody know how to create a login form in vb.net? I have an access database and I am trying to create a login form with a user name and password to have multiple users login. Please help. |
The End.