199,114 Archived Topics
Remove Filter ![]() | |
hey alll..I posted earlier on needing help for a code on input #..base..print decimal form..I actually didnt learn this in high school so thats why I was having so much trouble :@ Now that I read up and understand the logic in bases..I was thinking that for my code I … | |
This is what I have for a main page and form and upload code for an image. The image information is stored in a Blob field in phpMyAdmin. [CODE] <?php error_reporting(0); mysql_connect("sql5c1d.megasqlservers.com","vincastweb356440","fakepassword") or die(mysql_error()); mysql_select_db("phpmy1_vincastweb_com") or die(mysql_error()); $picture = $_FILES['image']['tmp_name']; $brand = $_POST['brand']; $year = $_POST['year']; $story = $_POST['story']; $description … | |
Hello peeps, This is really getting annoying, Im trying to figure out how to check whether or not a member is in my datagrid. I have 5 columns: firstname, lastname, membership, accountid, date. Can someone help me out here???????? | |
[CODE]//ASSIGNMENT NO- 4 //EMPLOYEE DATABASE #include<stdio.h> #include<conio.h> //STRUCTURE DEFINATION struct emp1 { int id; int dflag; char name[10]; float salary; }; int main() { //INITIALISATION struct emp1 e[20]={0,0,"\0",0.0}; int accept(struct emp1 [],int); int display(struct emp1 [],int); int append(struct emp1 [],int); int delete1(struct emp1 [],int,int); int modify(struct emp1 [],int,int); int no=0,v=0,u=0,ch=0,count=0; … | |
Hi! I don't understand why I can't use my functions declared like this: [CODE]#include "groundArray.h" int groundArray::getlistX(int i) { return x; } int groundArray::getlistY(int i) { int groundlistY[] = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}; return groundlistY[i]; } int groundArray::getlistWidth(int i) { int groundlistWidht[] = … ![]() | |
I tried using (*game_data.blocks), (game_data.*blocks), (game_data.blocks) but none of them work. I'm getting a error msg: 'cannot convert sprites* to sprite_data** in assignment' ----------------------------------------------------------- [CODE] typedef struct{ //sprite _sprites[]; sprite *blocks; sprite ball; sprite paddle; int numb_brick_sprites; }sprites; [/CODE] ----------populate_bricks procedure------------- [CODE] void populate_bricks(sprites &game_data){ game_data.numb_brick_sprites++; sprites *temp_ = (sprites*) … | |
I have an application in C#, .Net 2.0. I want it to run on Mac. The application has .cs files, .exe etc. What of the file should I put in the .dmg file? | |
It's my first time to use functor. So hope can get some guide here. My program need to call different function depend on input. so i thinking to use functor to do that. e.g. main.cpp [CODE]#include "functor.h" #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { … | |
Hi there, I'm trying to figure out how I can have a script add up the number of radio buttons selected for each category. For example, on a test, I'll have three options for each question. I want to add up how many A's are selected, how many B's are … | |
Hi All, I want to trap inRange and outRange event of the bluetooth device i.e. paired with my windows7 machine. Thanks in advance. | |
event_manager.php [CODE] // define variable $id = isset($_POST['id']) ? $_POST['id'] : ''; $event = isset($_POST['event']) ? $_POST['event'] : ''; $tempat = isset($_POST['tempat']) ? $_POST['tempat'] : ''; $mulai = isset($_POST['mulai']) ? $_POST['mulai'] : ''; $selesai = isset($_POST['selesai']) ? $_POST['selesai'] : ''; $keterangan = isset($_POST['keterangan']) ? $_POST['keterangan'] : ''; session_start(); // undefined … | |
Every first time I create a .txt on my server using a Form, it writes like a charm, but when I add a new line in the .txt using also the Form, and view the .txt from a simple file browser made by PHPToys the new line in the .txt … | |
Hi and thanks ahead of time: I need an editable gridview with an Access database as it's source. The findcontrol is not finding control in gridview (dropdownlist). I have the following gridview: [CODE] <asp:GridView ID="gvRescue" runat="server" AutoGenerateColumns="False" onrowcancelingedit="gvRescue_RowCancelingEdit" onrowediting="gvRescue_RowEditing" onrowupdating="gvRescue_RowUpdating" onrowdatabound="gvRescue_RowDataBound"> <Columns> <asp:TemplateField HeaderText="ID"> <ItemTemplate > <asp:Label ID="lblID" runat="server" Text='<%# … | |
[CODE]try { dataFile = args[0]; } catch (Exception e) { System.out.println("The file was not found. Please input file name now: "); dataFile = scan.nextLine(); }[/CODE] This gets a file name from the command line, and if no file is specified it asks the user to input a file name, however, … | |
Hi I have ben trying to figure out how to sort a array by date, all the examples i have found so far, i have had a hard time making any sence of. I got a tab seperated txt file, with the following data. Date - Meeting - Duration what … | |
![]() | Hi, i am trying to make a form that when a button is clicked, a hidden div is displayed with radio buttons. i have managed to do this, however, the pagerefreshes and after a few seconds the page resets back to normal. can anyone explain what i'm doing wrong. My … |
I'm ExtJS newbie. I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. A code sample would greatly help me. … | |
input_berita.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $isiBerita = isset($_POST['isiBerita']) ? $_POST['isiBerita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM berita WHERE id =".$_REQUEST['id']) … | |
hello, i have a problem with combobox to stored in sql database this is my code cmbDept.Items.Add("" & dtUser.Rows(i).Item(0) & "/" & dtUser.Rows(i).Item(1) & "") how to take the first item from combobox "dtUser.Rows(i).Item(0)" and stored in sql database. ?? | |
Hello everyone here. I am new to vb.net database programming yet i want to create a point of sale software using it. So far I have created a local database, POSSdatabase.sdf , and I have 2 tables, Inventory and Transactions. My problem is how do I relate these 2 tables? … | |
[CODE] $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; //Hapus berita // undefined index: mode if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM berita WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data Telah terhapus." : "Gagal menghapus data."; } } ?> <div … | |
Hi I have a struct in my form, and I need to pass a reference/handle to it to a separate class, which is ok with the simple "ref" keyword. Now, how do I store this ref to a struct in the class (as a member variable)? Is this possible? I … | |
I am attaching my complete code, which I was currently developing. I am not able to get why doesn't my KeyListener work. None of the KeyListener events are fires on pressing the keyboard. Please have a look and tell me the flaws in my code [ATTACH]22414[/ATTACH] | |
Hi everybody, Im pretty new (or u can say that completely new) to python and i try to learn from the very basic. I try to create grid data structure from array. Here i have some code, would you mind to look at it and give me an instruction: [CODE]import … | |
I am creating a DataReport using the Data Report Designer (VB6) and using the following SHAPE command to create a hierarchical recordset. Dim cmd As New ADODB.Command Dim rz As New ADODB.Recordset With cmd .ActiveConnection = CN .CommandType = adCmdText .CommandText = " SHAPE {SELECT * from Relation where Institution … | |
I don't know how to solve this problem. I want to create simple project in visual studio 08 in C# windows application which can save update delete data from database. here are the steps i use : open new project right click on solution explorer -add- add new items-service-based-database when … | |
Hello. I'm going to show you how to make a basic php image gallery. Firstly, create the following files [LIST] [*]index.php [*]view.php [*]/images (dir) [/LIST] Now, for the code. index.php [CODE] <?php $img = array(); $img[] = array('title'=>'img1', 'src' = 'img1.jpg'); ?> <html> <head> <title>mygallery | homepage</title> </head> <body> <h2>mygallery</h2> … | |
I need to update the SQL table every minute, as if typing on an online notepad, that save frequently. So of course, I have: [CODE]<textarea rows="20" cols="80" id="notepad"> <?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Could not connect: '.mysql_error()); } mysql_select_db("database", $con); $result = mysql_query("SELECT * FROM Notepad"); while($row = mysql_fetch_array($result)) { echo … | |
All I am trying to do is place the marker number in the map. I was able to do this with V2 of Google Map API, but now I have not a clue how to do it in V3. I've exhausted Googling this issue, and now come to my favorite … | |
This is the program I need to write: At each step the user is asked if she wants another number. If she does, the program adds a random number between 1 and 10 onto her total. The game ends when she quits, or when her total is 18 or higher. … | |
Basically, I make a query based on the first query that I made. It returns the right number of rows but it only displays the first record based on the number of rows. For example, if my second query returns Result1 and Result2, the table will look like Result1 Result1 … | |
I have two multidimensional arrays: [CODE]$instruments = array( array( ID => 'value', Name => 'value', Model => 'value ' ), array( ID => 'value', Name => 'value', Model => ' value' ), array(ID => 'value', Name => 'value', Model => 'value ' ), ID => 'value', Name => 'value', Model … | |
Hi i just want to know that how to connect php with sql server..because i have database in my sql server.... regards.. Farhad | |
Hello all, I used to be relatively well versed in .Net back when 2.0 was still the latest framework and I have stayed out of the loop for a few years. Looking to kick in a new pet project, I am interested in developing in Visual C# / SQL again. … | |
I'm trying to save data from textboxes in visual studio using vb.net to sql server 2008. the coonectiong is working perfectly but is not displaying the data output in data grid. This is the part of the code. [CODE] Imports Microsoft.VisualBasic Imports System.Collections.Generic Imports System.Data Imports System.Data.SqlClient Imports System.Text Dim … | |
hi, i am pretty new to zendframwork butnot so new to php. i am trying to use ajax with the framework, but i keep getting an error: Fatal error: Call to a member function getHelper() on a non-object my controller looks like this: [code] <?php /** * Admin section of … | |
Hello, I have to make one project similar like "Assistware Connector" below is link for that [URL="http://www.baydon-solutions.com/CorpWebsite/section3.htm"]http://www.baydon-solutions.com/CorpWebsite/section3.htm[/URL] In this product when application get started, after that on what ever window mouse is clicked it take snapshot of that object, Eg like i open calculatar application,now i start my c# application … | |
I participated discussion about complex numbers and did some experiments in Python. I do not understand this behaviour (same behavious in 2.7.2 and 3.2.2): [CODE] >>> -(0+1j) (-0-1j) >>> -(0+1j)==-1j True >>> -(0+1j)+0 -1j >>> -(0+1j)-0 (-0-1j) >>>[/CODE] EDIT: Further investigation shows that there is -0.0 in Python, is this … | |
I have gone through the basic techniques to implement comet server like streamhub,Maven/Jetty etc. I have following questions for that : After that I found the issues like in case of Maven/Jetty internet connection is required for downloading certain files from net.So it it possible to implement it if no … | |
Hi, I'm a beginning C++ student and have an assignment to dynamically create an array of a struct to store students' first names, last names, and test grade scores, and then pass it via pointer to a function that will sort the grades and names in ascending order. I wrote … | |
i want to know how to do when the form is closed, the current contents of the listbox will be stored in the bookmarks textfile (called bookmarks.txt). If a file error occurs, display a messagebox specifying the error. [CODE] public Form1() { InitializeComponent(); } private void btn_go_Click(object sender, EventArgs e) … | |
Don't know what I'm doing wrong, but I'm positive it's me. This dropline menu works perfectly in Chrome, but completely goes to crap in every other browser (not just IE, which I'm used to). If you have any pointers, please pass them my way. I've pasted the code - in … | |
Hi. Guys, I need some help. Does anyone know how to Call cross threads in vb.net while accessing the backgroundworker as well? I keep getting error everytime I run my program... Here is my code: [CODE]Imports System.IO.Directory Imports System.IO Public Class Video_to_Mp3 Public folderopen As String Dim ofd As New … | |
I fetched text from database in the table <td> I found all the text appear in single line I want to break it. I using PHP. | |
I'm working on an assignment and now that I've finished I'm supossed to write a tester file to demonstrate how well the program works. While writing it I was just testing in a main file within the library itself. Now I'm getting an invalid pointer error when I try to … | |
i have a query is to lookup CREDIT_CARD table using CREDIT_CARD_ID and get the MIN_REPAY_AMT. if SUM(AMOUNT_DEPOSITED) < MIN_REPAY_AMT for that month Then populate 1000 else 0 i have attempted the query below kindly help me out and i am getting the following error. Error: [CODE]ERROR at line 2: ORA-00923: … ![]() | |
I have included the following code in my website as a game for young kids to try and locate the erased position of a golf ball. Firefox runs the code perfectly and when the correct location is clicked the small golf ball pops up at that point. In IE however, … | |
Hi, I am new to HTML kind of stuff. I have some documents in my own folders for different applications. I want keep all the documents in related Hyperlink under that particular department. after creating all the hypertlinks that link link should navigate to that particular document. once it is … | |
| |
I'm currently practicing on python language and I try to make a sample program that will Add, Show, Delete and Update students info.. But I have this error "global name 'b' is not defined" on the 'Show()', 'Delete()' & 'Update()'.. please help me me guys..Thank you.. [CODE]x = 1 y … |
The End.