199,114 Archived Topics
Remove Filter ![]() | |
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[]) { … | |
Can there be a way of connecting a vb 6.0 application to SQL server, how possible is that if am using ADODB? | |
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" | |
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? | |
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. | |
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 … | |
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 … | |
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 … | |
$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 = … | |
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. | |
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 ...... … | |
![]() | 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, … ![]() |
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? | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
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 … | |
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. … | |
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. | |
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 … | |
sorry, i'm a newbie of java. for example, public static myObj createObj(String nameFormUser){ myClass nameFromUser = new myClass(); return nameFromUser; } can it possible ? | |
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, … ![]() | |
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 … | |
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 … | |
Hey All, How would i go about retrieving xbox 360 thumbstick values and displaying them on the screen in c++? | |
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... … | |
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 … | |
how are float values exactly represented in memory...... | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.