199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mc1202bc0077

hi, may i know how to compile visual basic 6.0 file with access 2007. I can link but when i save it in an external device and try to run th exe. in other computer, it could be run, but the connection is lost, i tried to change the location …

Member Avatar for abelingaw
0
2K
Member Avatar for daniel36

Is there any function for changing a numeric value to string?suppose i passes '5' then it should return 'five'.

Member Avatar for daniel36
0
86
Member Avatar for cheelo007

I've been trying to make dynamic queries, where the user determines what will be queried. The reason is because I'd like the images being displayed in my gallery reflect the category selected by the user. mysql_query("SELECT(whatever category they chose) FROM products") below is the generation of categories as links. (not …

Member Avatar for gon1387
0
169
Member Avatar for gon1387

Hi Everyone, I've been looking for good javascript projects to join. Are there any projects you can advice? I've researched a lot. (with the help of Google. :D) But would also love to get advices from people who have/had worked at an opensource project here. I would also love to …

Member Avatar for gon1387
0
283
Member Avatar for mehnihma

I am bulding a code for my site and have few problems 1. When I run this few times, it updates table ps_stock_available but with wrong values and after some time is stops to update that table? The problem is in the last query, two queries above are working ` …

Member Avatar for gon1387
0
322
Member Avatar for MMadhavi

I want to show google map of selected theatre. first user have to select city then they have to choose theatre as per selected city. i have used drop down box for both. then, after selecting theatre, when he clicks on show button i want to show google map of …

Member Avatar for MMadhavi
0
1K
Member Avatar for diya45

in this when i updated data then not updated it is deleted in update button but there is update fuction how i solve this problem that data are update????/ here is updated fuction { string constring = @"Data Source=.\SQLEXPRESS;Database=htm;Integrated Security=True"; SqlConnection con = new SqlConnection(constring); con.Open(); DataTable dt = new …

Member Avatar for samsylvestertty
0
177
Member Avatar for manaila

How do I refer to a file that is in the following directory in Java web app: ***webapps/WEB-INF/myfiles/filename*** I have read that this has got to do with relative paths, but I do not understand how to do that.

Member Avatar for subramanya.vl
0
211
Member Avatar for vebi1000

I am changing the phase of signal from 0 to 360 by each degree to get max voltage value.Because if i change phase of the signal the voltage also changes.I have the fallowing code to find max value. and corresponding phase void Maxphase(float *max, unsigned int *index) { *max = …

Member Avatar for vebi1000
0
198
Member Avatar for anonymousi

how to write a vb.net code for asp.net to display image in gridview by using the url of the image stored as text in sql database.So whatever the url may be the gridview should show the image using that text as reference instead of just using the name of the …

Member Avatar for anonymousi
0
2K
Member Avatar for cheelo007

Hello, I'm sure I'm missing something small. If a category doesn't exist in the database yet, how can I have the query accept a value of 0 without reporting an error? The $subcategory is what the user selected. The result should either be 4 images or a blank place holder …

Member Avatar for cheelo007
0
130
Member Avatar for vasim jada

Dear Friends, There are 2 form (form1,form2) and 2 dialogbox (dialogbox1,diologbox2) in my application. When application start at that time form 1 loaded, on form 1 when button-1 click, form2(as mdi parent) and dialogbox-1 (with textbox-1 and button-1 as mdichild) show. when button-1 on dialogbox-1 click dialog-2 (with textbox-1) show. …

Member Avatar for tinstaafl
0
760
Member Avatar for kazekagerandy

i am working on an application and i need to have an update feature, but when i try to refresh the contents of my datagridview to view the update ive made, the old and updated records kept on stacking. ive already tried the datagridview.datasource = nothing but nothing happened. this …

Member Avatar for M.Waqas Aslam
0
154
Member Avatar for kimika

#include <iostream> #include <string> #include <iomanip> #include "mainmenu.h" using namespace std; string bookTitle[20] = {0}; string isbn[20] = {0}; string author[20] = {0}; string publisher[20] = {0}; string dateAdded[20] = {0}; int qtyOnHand[20] = {0}; double wholesale[20] = {0.0}; double retail[20] = {0.0}; void main() { // Declarations for function …

Member Avatar for kimika
0
243
Member Avatar for wids101

my code freezes whenever i enter 12-19. #include <cmath> #include <iostream> using namespace std; int main() { int multiples; int answer; int square; int cube; int num; cout << "Please enter a positive number less than or equal to 20: ";\ cin >> num; do { if(num >=20) cout << …

Member Avatar for tinstaafl
0
99
Member Avatar for zaeemabbas20

hi guys ! i want to set a focus using backspace keyascii in a maskedtext box so that when i press backspace the focus moves to the other text box or maskedtextbox, but when i press backspace and maskedtextbox is empty with length "5" the focus donot move to the …

Member Avatar for TnTinMN
0
717
Member Avatar for 4Dante

Hi, I've looked online for a few days but haven't been able to find an adequate solution. I'm just trying to use javascript to validate that a password doesn't contain user data (first name, last name, etc...) I really thought it would be simple. Here is what I'm using: function …

Member Avatar for 4Dante
0
207
Member Avatar for dancks

addproduct.php snippet (there are lots of other inputs, not sure if that matters): <form method="POST" action="add.php" enctype="multipart/form-data"> <p>Picture:<input type="file" id="pic_upload" name="pic" /> <input type="submit" /> </form> add.php: if(isset($_FILES["pic"])) { if($_FILES["pic"]["error"]==0) { $name = explode(".",basename($_FILES["pic"]["name"])); $target = realpath(dirname($_SERVER['PHP_SELF']))."/images/".$name[0].session_id().".".$name[1]; $temp = $name[0].session_id().".".$name[1]; if(!move_uploaded_file($_FILES["pic"]["tmp_name"],$target)) { add_error("Picture specified did not upload"); } $_POST['pic']=$temp; } …

Member Avatar for dancks
0
108
Member Avatar for daino

I'm trying to build libgd and can't seem to get past this error. It configures without error but when I go to make Install the below error occurs. Would anyone know how to get past this? WinXP, MingW. Thanks. gdfontg.c:4380: error: variable 'gdFontGiant' definition is marked dllimport gdfontg.c:4380: warning: 'gdFontGiant' …

Member Avatar for daino
0
470
Member Avatar for jonathan.flesher

I'm new to MySQL and following a tutorial in a book to design a PHP MySQL website. Following this tutorial, I created a PHP page from which I can update entries in the MySQL database. What's strange is that only specific entries in the database will not update, while others …

Member Avatar for b.wickham
0
980
Member Avatar for NardCake

Hello! I'm working on a simple messaging system for a project and I have this query and it isn't working for some odd reason, here it is: mysql_query("INSERT INTO messages SET user='$user', message='$msg', date='$date', to='$id', private='$checked' ") Here is my error: You have an error in your SQL syntax; check …

Member Avatar for NardCake
0
148
Member Avatar for cyberdaemon

Good day, I want to use N-TIER for my application.I have DAL and BAL already, since i have that 2 project already. am missing 1 project which is the UI.so i created my UI project. Since am excited to test my simple n-tier i created a simple GUI using gridview …

Member Avatar for cyberdaemon
0
133
Member Avatar for clausont

I am building a new website and migrating all users off a CMS (ExpressionEngine) that uses MYSql. I have all of the users imported into a MS SQL staging table (except passwords). I am trying to create members in asp.net membership by looping through the users in the staging table. …

Member Avatar for clausont
0
218
Member Avatar for nakshi

I need a perl script to extract the starting and ending positions of a column here is the input HETATM 7749 C1 NFG A1001 -31.772 -7.604 -23.847 0.80 61.71 C HETATM 7750 O1 NFG A1001 -30.806 -8.518 -23.305 0.80 65.42 O HETATM 7751 C2 NFG A1001 -32.987 -7.507 -22.895 0.80 …

Member Avatar for 2teez
0
322
Member Avatar for Super_android

Hey there, my code is nearly perfect, but I need help with my input for a value. here's the snippet of my code: cout << setw(15) << right <<"$" ; double Amount; input >> Amount; cout.setf(ios::showpoint); cout.setf(ios::fixed); cout.precision(2); cout.width(8); input.ignore(); cout << Amount << endl; i know that input puts …

Member Avatar for Ancient Dragon
0
152
Member Avatar for Scelus

Hi! As the headline suggests I am getting the following error message: First-chance exception at 0x00d690d1 in NyÃ¥r.exe: 0xC0000005: Access violation reading location 0xcccccccc. Unhandled exception at 0x00d690d1 in NyÃ¥r.exe: 0xC0000005: Access violation reading location 0xcccccccc. #include<iostream> #include<cstdlib> #include "Participantsregistryhead.h" int main() { _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); ParticipatorRegister Registry; Registry.typeOut(); …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for doug.leany

I have a Code::Blocks project that includes a perl script which creates a c++ source file containing a linked list; the linked list is built by parsing special comments that may be included in all of the project's other .cpp files. The script is desinged to automate the creation of …

Member Avatar for doug.leany
0
379
Member Avatar for slasel

I am using turtle graphics with Tkinter however the problem is that the turtle graphics window comes over my root window and covers it! Is there a way to solve this? Note: i am using turtle inside functions if that makes any difference... import ImageTk import tkMessageBox from Tkinter import* …

Member Avatar for vegaseat
0
2K
Member Avatar for vegaseat

A closer look at the Tkinter GUI toolkit Toplevel Window and how to lift and lower it respective to other windows.

0
6K
Member Avatar for azgold472

I have the following code... <?php $con = mysql_connect("localhost:3306","name","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("barndata", $con); $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM event where Date >= '$today' ORDER BY Date ASC LIMIT 0, 7") ; while ($row = mysql_fetch_array($result)) { echo 'banner1.add("IMAGE","'; echo …

Member Avatar for azgold472
0
178
Member Avatar for gilbert.jacob1

Hi guys! Badly need your help. I'm working on a project in VB.net that will enable my application from sending SMS. I already have the code but I'm getting an error which is "The port 'COM15' does not exist." I've tried to search this error in google but it didn't …

Member Avatar for john.knapp
0
471
Member Avatar for shahai.ali

hi m following [this link](http://www.c-sharpcorner.com/UploadFile/0146e3/crystal-report-in-visual-studio-2010/) for generating crystal report in visual studio using c#. but in the above tutorial the database is created first and then reports are generated. but in my scnario i already have connected with database. now is it possible to generate report from existing database???? if …

0
99
Member Avatar for shahai.ali

hi i have a table like this for attendence: table name attendence. id std_rolNum std_fname date std_bkfast std_lunch std_dinner i want to make search on the base of `date`, `std_rolnum`, `std_lunch`, `std_bkfast` and `std_dinner`. so that if on the same date if student have already taken breakfast, lunch or dinner …

Member Avatar for shahai.ali
0
335
Member Avatar for ThePythonNoob

Hi, I am trying to make a click counter. The prolem is the onClick part in button code. If i made it so it was "click();" and placed the var clicks into the function click then it would kind of work. But when I pass a variable into it.. it …

Member Avatar for ThePythonNoob
0
152
Member Avatar for mattster

Hi all, We have just upgraded our btinternet router, and they gave me the old one to experiment with. The router is identical to [this one](http://upload.wikimedia.org/wikipedia/commons/7/71/BT_Home_Hub.JPG). A friend thinks a script would have to be written in C++. The router has all of its config stuff on a web interface, …

Member Avatar for phorce
0
302
Member Avatar for matt_higgins

<div style="font-family:tahoma; color:#F00; "> <?php session_start(); if (isset($_SESSION['user'])) echo "You are logged in as ".$_SESSION['user'], " to log out click <a href =logout.php>here</a>"; else die ("Please Register <a href =register.php>here</a>");?> </div> <?php $username = $_SESSION['user']; if(!isset($_SESSION['user'])) { header("location: login.php"); } else { $query=" SELECT * FROM users WHERE user='$username'"; $result=mysql_query($query); …

Member Avatar for EvolutionFallen
0
268
Member Avatar for anestistsoukalis

#include <stdio.h> #include "genlib.h" #include "simpio.h" #include "string.h" #include "ctype.h" typedef struct { char name[30]; int apousies; }telikaT; void ypologismoi(FILE *inArxeio,telikaT students,int *p100,int *pAll); void emfaniseis(FILE *outArxeio,telikaT students,int *p100,int *pAll); main() { FILE *inArxeio,*outArxeio; telikaT students[30]; int p100,pAll; ypologismoi(inArxeio,students,&p100,&pAll); emfaniseis(outArxeio,students,&p100,&pAll); system("pause"); } void ypologismoi(FILE *inArxeio,telikaT students,int *p100,int *pAll) { char …

Member Avatar for anestistsoukalis
0
988
Member Avatar for silvercats

there is a table. both "age" and "DOB" columns are there. how to give a SQL command to make "AGE" a derived attribute from "DOB"? thanks

Member Avatar for barb.saunders.5
0
4K
Member Avatar for yheenzie.saldivar

can u please help me to make this program..a program that decide and accept y for yes and N for no.y to repeat the process and no for the exit of the program.. ASAP PLS..TENKS

Member Avatar for clubberlangMayo
0
97
Member Avatar for piso_mojado

running into an issue haven't seen this before where content during the encoding and decoding of an image looses byte count. I have an app taking the photo image and sending the file via: ----------------------- byte[] imageBytes = new byte[(int) imageFile.length()]; inputFile = new RandomAccessFile(imageFile, "r"); inputFile.read(imageBytes); String base64String = …

0
183
Member Avatar for shahai.ali

hi m getting the following exception: `System.Data.SqlClient.SqlException: Incorrect syntax near '4'.` the following is what i was trying: public void hostel_cpacity(ManageHostelRoomsBE hmr) { string str; string conString = System.Configuration.ConfigurationManager.ConnectionStrings["Hosteluog"].ConnectionString; SqlConnection con = new SqlConnection(conString); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open(); DataTable dt = new DataTable(); DataTable dt1 …

Member Avatar for shahai.ali
0
153
Member Avatar for casheltown

I'm trying to use Microsoft Access to produce a contacts database for a local charity. Unfortunately I can't get my head completely round relational databases. I understand the basics but can't solve a particular problem. Can anyone help? I currently have four tables (Contact, Organisation, Children, SpecialNeeds) that need the …

Member Avatar for casheltown
0
154
Member Avatar for slasel

If u run this code then click on the button helicase, u'd notice that there is a space btw radiobutton 1 and the rest! why? how can i fix this? I am sorry i know my code is too long but i don't know which section of it was causing …

Member Avatar for slasel
0
590
Member Avatar for davy_yg

I get this error: Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 23: parser error : Premature end of data in tag catalog line 2 in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Fatal error: Uncaught exception 'Exception' with …

Member Avatar for Atli
0
1K
Member Avatar for kshahnazari

I am trying to write a function that helps to find a smaller 2D array in another one . I wrote it but the problem is that it always finded the array when it didnt exist . the only thing I want is that to say does it exist or …

Member Avatar for mrnutty
0
231
Member Avatar for ascyndance6y

I've been planning a certain program for 3 years. During these 3 years, I've let thoughts and ideas formulate, and stew, in order for me to critique them properly. I know precisely what I want this program to do. For almost every function I know what as a client I …

Member Avatar for ascyndance6y
0
377
Member Avatar for elbert.leach

# This program reads numbers from a file into a list. def main(): # Open a file for reading. infile = open('text.txt', 'r') sentences = infile.readlines() # Read the contents of the file into a list. infile.close() # Close the file. index = 0 # Convert each element to an …

Member Avatar for Ene Uran
0
343
Member Avatar for silversonicaxel

hi, just a simple question on a wx.TextCtrl element. i have this text field where on an application, where the user can add a string on it. i want a text field with a red text on it. so i've generated this code: self.hRepositoryTextfield = wx.TextCtrl(self.hPanel) self.hRepositoryTextfield.SetDefaultStyle(wx.TextAttr(wx.RED)) if the user …

Member Avatar for Ene Uran
0
341
Member Avatar for arslanh

Develop a telephone directory which is capable of doing the following: 1. Insert a contact 2. Delete a contact 3. Edit an existing contact (changing or modifying a record) 4. Search a contact (and display complete record on screen) a. Search through first name b. Search through last name c. …

Member Avatar for Ancient Dragon
0
287
Member Avatar for cdoggg94

Basically I just dont know where to start.. I want to make a table that displayed as many images as there are in the DB. I want the table to only go 4 <td> wide, then move to the next line...etc.. I tried googling a few things, but I couldnt …

Member Avatar for pritaeas
0
97

The End.