199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for senergy

hi, I have trouble with getting info from my table, this is my code: [code]#include "stdafx.h" #include <iostream> #include <mysql++.h> #include <manip.h> using namespace std; #define HOST "" #define USER "senergy" #define PASSWORD "" #define DATABASE "" #define PORT 3306 // deleted info :) int main(int argc, char *argv[]) { …

Member Avatar for godinac
0
490
Member Avatar for innocentpaul

Can there be a way of connecting a vb 6.0 application to SQL server, how possible is that if am using ADODB?

Member Avatar for AndreRet
0
159
Member Avatar for thechampp

Hello everyone i need help with this task : "Write an expression that checks for given integer if its third digit (right-to-left) is 7. E. g. 1732 -> true"

Member Avatar for thechampp
0
154
Member Avatar for devianleong

Hi, As I know the barcode scanner is just like a keyboard. I want the barcode scanner scan the user ID before it enter to the system. May I know how to hide the textbox field but still able to handle the input from barcode scanner?

Member Avatar for pritaeas
0
218
Member Avatar for gurusubramaniam
Member Avatar for ssembusi.david

i need some one to help me with the php codes to extract user data/informatio and then edit /update the information. using php and mysql.

Member Avatar for gabrielcastillo
0
6K
Member Avatar for daviddoria

For a while now I've been doing this when I want to check the input of a function (in this example, to make sure they are not equal). [code] void foo(int a, int b) { assert(a != b); } [/code] But when the assert fails, I always find my self …

Member Avatar for vibhor48
0
295
Member Avatar for hughesadam_87

Hi guys, This is more a general discussion of methodology than a specific question. I have been working on a, the primary purpose of which is to store an oddly formatted data file (aka not you classic CSV). At the end of the day, the data is stored in a …

Member Avatar for hughesadam_87
0
159
Member Avatar for Tko_1

hello again, okay so what im tring to do is have text field that when you input text and submit , it creates new file with text value as the name. as this shows this inputs the text into the file and randomly generates a # for the name of …

Member Avatar for Tko_1
0
168
Member Avatar for sankster

$connection = mysql_connect($db_host, $db_user, $db_password) or die("error with connection"); mysql_select_db($db_name, $connection); $file=fopen("daily_user_summary.txt","r"); while (!feof($file_handle) ) { $line_of_text = fgets($file); $parts = explode(' ', $line_of_text); print $parts[0]. $parts[1]. $parts[2] . $parts[3]. "<BR>"; $query = ("SELECT name, newcredit, sum(total), team FROM tb1 WHERE NAME = '$parts[0]' and TEAM = '$parts[3]'"); $row = …

Member Avatar for sankster
0
964
Member Avatar for mzeewashooo

i want to display data from my mysql database using asp.net and i am using datagrid. i have set up the configuaration well, but when i load the page it doesnot show the data. pleaase help.

Member Avatar for nakor77
0
99
Member Avatar for crazydevelopervish

I am working on an online shopping project....... I want to retrive data from database using checkbox...... For Example.... i have an mobbile form..... having all mobile records and have some filters such as search by brand, search by range etc.... let me take example of search by brand ...... …

Member Avatar for crazydevelopervish
0
128
Member Avatar for I_m_rude

hi.. #define loop() for(;b<c;b++) #define print(a) printf("%d ",a); int main() { ............ ........... ............ .............. int i=0,j=0; loop(i,15) { loop(j,15) { print(z[l][m]) } printf("\n"); } } This code print some integers , but isn't printing all in the desired way. But, when I change the #define statement in this way, …

Member Avatar for I_m_rude
0
210
Member Avatar for Huck44

I am trying to write a program that prompts for 5 signed integers that need to be put into an array. and then I have to do a 4th degree polynomial. The array stores a,b,c,d,e and there is a seperate x value. Can someone help please?

Member Avatar for GunnerInc
0
182
Member Avatar for pocix

in index.php i have 3 urls <li><a href="categories.php">Categories</a></li> <li><a href="Register.php">Register</a></li> <li><a href="login.php">Login</a></li> how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"? when i click logout, the control panel & logout will change back to register & login

Member Avatar for pocix
0
344
Member Avatar for techy23

well, i want to create the classic "snake game" in pure c language. how to do it. should i use graphics.h or "NCurses" library. what new and cool features can i add in my game. can i add a "Background " music and any cool graphics. what new feature can …

Member Avatar for WaltP
0
706
Member Avatar for Djmann1013

Hi I am having trouble with this code: <?php //init.inc.php file session_start(); mysql_connect('mysql.host.com', 'username', 'password'); mysql_select_db('DB name'); include('include'); // Get users from table function fetch_users() { $result = mysql_query('SELECT 'user_id' AS 'id', 'user_username' AS 'username' FROM profile'); // Error on this line: Parse error: syntax error, unexpected T_STRING on line …

Member Avatar for phorce
0
90
Member Avatar for Plazmotech

As the title says, I have a flash drive, and a script on that flash drive. Whenever I plug my drive into my Mac OSX, I want a specific Python script that is on my drive to run, and be able to access directories on my computer. Why am I …

Member Avatar for Plazmotech
0
242
Member Avatar for Helianthus
Member Avatar for rajaravi
Member Avatar for rotten69
0
79
Member Avatar for lianpiau

I have a gridview contain 3 record, when I use OleDbDataReader to verify the record is match with data in other Table in access. My problem is if the record is no match, I will end process and do not perform insert. But when 1st record is match and 2nd …

Member Avatar for hericles
0
130
Member Avatar for bendoveryou

My script is sapposed to have you choose a number and then spit out that number of 1's and 2's randomly chosen and then count and post how much.could someone help me by telling me what is wrong, i would really apreciate it, here is the script(it is a cmd …

Member Avatar for TrustyTony
0
119
Member Avatar for writerervin

Hi there. I'm looking to create a textbased browser game based on my old favorite anime. I figured out the basic structure of the data, but i've got one problem. is there a way to set the data up where a single user can have several of one item, each …

Member Avatar for 8g2h8bt9
0
222
Member Avatar for Vasthor

this is an unusual error, but maybe if the code presented here it's easier to recognize?! void sLetter(Word_store& s) { for ((s.words_input)::iterator it = (s.words_input).begin(); it != (s.words_input).end(); ++it) tolower(*it); (s.sWords).push_back(s.words_input); return; } the function is aim to converting each character in a string from a member of Word_store into …

Member Avatar for Vasthor
0
158
Member Avatar for funnyguy1

Write a program that opens a file, reads records into a container of data structures, and prints out the sum in order. You can use Vectors to contain the data structures. 1. Create a data structure to represent the record (struct cost in cost.h) 2. Write a function called parse_account …

Member Avatar for iamthwee
0
368
Member Avatar for phil.robison.5

I need some help with my code for my bulls and cows game... the requirements for the program are below: To start your gaming career, you have decided to write a math game. You want to create the following Menu: Bulls and Cows --------------------------------- 1. Play new game - New …

Member Avatar for NormR1
0
638
Member Avatar for ingus16

Hi all ! I have a code which search registry key value in specific key path, not all registry. In registry key `SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}` find all keys with `0000 , 0001 , 0002 , 0003` and so on at the end of registry key. `{4D36E972-E325-11CE-BFC1-08002BE10318}` . In each key ( for …

Member Avatar for ingus16
0
2K
Member Avatar for manishanibhwani

if we print a float using %d garbage value is printed....but if we scan a float value using %d & int...the value gets truncated...What is the reason behind it...

Member Avatar for deceptikon
0
170
Member Avatar for Mark2349845

hi i don't know where the problem i have forum contain listview i want change some value in this listview from class example Public Class Test Private Shared vidlist As Integer = 1 Public Shared Sub Hello() Try start: If CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) < CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then '.. ElseIf CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) >= CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then …

Member Avatar for Reverend Jim
0
142
Member Avatar for shhh

Fatal error: Class 'XSLTProcessor' not found in C:\xampp\htdocs\easybasket\index.php on line 275 ` <?php /*########################################################################### Easybasket RESTful API Nigel Alderton 21st May 2011 www.easybasket.co.uk ############################################################################# This file exposes a RESTful HTTP interface to the client. It supports the following functionality; HTTP Method: GET Example Response ================= =============== ================================================================== / The Welcome …

Member Avatar for blocblue
0
238
Member Avatar for nishant.rathee

I am trying to call functions from a DLL `function oziRepositionWP(Number:integer;lat,lon:double):integer;stdcall; ` I have written the code in python no = c_int(1) lat = c_double(34.00962) lon = c_double(74.80067) var =windll.OziAPI.oziRepositionWP(byref(no),byref(lat),byref(lon)) But i get the message var =windll.OziAPI.oziRepositionWP(byref(no),byref(lat),byref(lon)) ValueError: Procedure probably called with not enough arguments (8 bytes missing) where am …

Member Avatar for HiHe
0
580
Member Avatar for OsamaJutt

Hi, i am new here and i want an help in add the actionListener to the component of JCombo Box. Like there is Combo Box in Which there are components like name of color. When i click any component, for example i click Green color the background turns into Green. …

Member Avatar for JamesCherrill
0
176
Member Avatar for rpv_sen

Hi Friends **Example:** URL: http://localhost/sitename/page=name i want to print **name** in my page. like You Are Here: Home » **name** Please can any one help me.

Member Avatar for rotten69
0
245
Member Avatar for fbudek

I have been working on an assembly OS with a bootloader and console type thing, it is now getting too big for the 512 bytes allocated as the bootloader so I was wondering how I could link in an external assembly file to use without any size limit, which would …

Member Avatar for prashant14214
0
706
Member Avatar for aratnon

sorry, i'm a newbie of java. for example, public static myObj createObj(String nameFormUser){ myClass nameFromUser = new myClass(); return nameFromUser; } can it possible ?

Member Avatar for Taywin
0
630
Member Avatar for viktor.jiracek.5

Hello all, I am currently trying to insert a 0 value into a single field. The value is originally set to 1 and I would like to set it to its default value of 0. How would I go about doing that? The code I have works for other things, …

Member Avatar for diafol
0
129
Member Avatar for manishanibhwani

When is the garbage colletor called in c...Like in the following code int main() { int *i; int *fun(); i=fun(); printf("%d\n",*i); printf("%d\n",*i); } int *fun() { int k=12; return(&k); } the address being returned is of a variable that is no longer available....but printf statement prints 12 first time and …

Member Avatar for manishanibhwani
0
105
Member Avatar for Pundia

Hi! I have a little question. I'm new to WPF, and I've been working with DevExpress, I'm with the TreeListControl right now. How can I change the data format in a field? Specifically, I have a string with the url or route of an image, and I want the tree …

0
221
Member Avatar for Oracle1986

Hey All, How would i go about retrieving xbox 360 thumbstick values and displaying them on the screen in c++?

Member Avatar for DeanMSands3
0
102
Member Avatar for Danny159

Hey guys, I am having some trouble with json_decode... I used json_encode to encode a string that is the following: {"id":"121","firm":"DSD","address":"Test","address2":"Test","city":"Test","region":"Test","postcode":"Test","countryid":"13","firmtype":"Marketing","phone":"01545454587","fax":"","email":"dan@test.com","url":"http://www.test.com","mainuser":"Dan","contacts":"dan@test.com","info":"","numstaff":"15","numoffices":"1","disc":"","cat":"{"35":"1"}"} And I am using this php code to try and get it back into an array... however its just not working... the print_r(); doesnt echo anything out at all... …

Member Avatar for Danny159
0
198
Member Avatar for Frensi

Hi again, I'm here to ask another stupid question so I apologize. I'm going to make a calculator in Python but I've ran into a wall, with the tutorials I've been following I've only ever been taught how to add two numbers together. Never have I learned how to add …

Member Avatar for HiHe
0
6K
Member Avatar for manishanibhwani
Member Avatar for sepp2k
0
115
Member Avatar for situ.pati

I have created a database in ms access and a form, in which i want to add some records, it is updating correctly, but when i close the form and restart the application and started to add new records the previous records are deleted automatically. please help me in this

Member Avatar for G_Waddell
0
211
Member Avatar for *sharath*

I am using sax parser in android and i am displaying the content parsed into a custom list view which even contains an image. The image is loading very slowly and thereby my list which contains 10 elements are displayed after few minutes and even if the list loads to …

Member Avatar for *sharath*
0
163
Member Avatar for esy928

Greetings! Currently, I'm hitting a road block on a task that I need to perform. My goal is to hash my source code and check if the code has been changed during runtime. if it has been modified, it shouldn't be allowed to run. My question is how do i …

Member Avatar for esy928
0
145
Member Avatar for Denden17

Hello, anyone here have an idea of making your form more dynamic while not in a runtime i mean the form maximum size is the same as my screen resolution here in pc. i just want to add more control in that form but i cant because the maximum size …

Member Avatar for Denden17
0
91
Member Avatar for iThaos

Hi everyone, I'm trying to make a little applet that reads text files. I was planning to load some data into a class and use it later. However, I seem to having a few problems with it. // DataSet.java package com.someone.something; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class DataSet …

Member Avatar for iThaos
0
427
Member Avatar for number361

Hello! I'm a beginner developer and I'm currently learning Visual Basic 2008 Express Edition. I'd like create the following program: - search custom selected database - if selected database contains TABLEX and if TABLEX has data in ColumnY and it equals 0 then make some sort of signal/error/report where it's …

Member Avatar for Reverend Jim
0
119
Member Avatar for Enrique Nivasch

Hi, I am getting the following error while compiling error: argument of type 'void(FClass::)()' does not match 'void(*)()' on the line fPointer=instance.PrintIt; // Give the pointer the function address This is my code /** * @file FPointer.c * This is the main FPointer program start point. */ /** * Main …

Member Avatar for DeanMSands3
0
342
Member Avatar for Danielgof

hi there i'm a begginer in c# i need to create a textbox onkeypress.. i have a dynamic list of courses... i need the first charachters that typed in the textbox will find those courses with names that begins with those charachters ...kind of filter... and i need to do …

Member Avatar for superjj
0
148

The End.