199,124 Archived Topics
Remove Filter ![]() | |
hi folks , I have a Table names A with these fields (Id,Entry_Date,State) I want to fetch the 5 recent records with Unique States And Order them Desc so this is what I did [code=sql]Select * From A Order By Entry_Date Desc Limit 5 [/code] I tried many ways to … | |
What i want is for the user to be able to enter a staff no & date to retrieve other data from a table. the only thing is my date is structured in three columns so i dont know if i can do this. Thankyou in advance. [code=php]<?php ini_set('display_errors',1); error_reporting(E_ALL); … | |
In another forum I read, someone asked how to be sure that a request to a PHP script was sent by the same machine as the server. The obvious answer would be: [CODE=PHP]<?php if ($_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR']) { // request comes from this server } ?>[/CODE] But then someone pointed … | |
Hi I need some help in writing a c++ program that will read a file and delete a specified number of lines e.g. say i have data file with numbers 1 to 100 i.e. 1 2 3.... 100 say i want to delete top ten lines and then save the … | |
I have an Access database (yetch) from which I am retrieving a recordset. One of the text fields in the recordset has a few null values. I need to display all records (so I can't just eliminate these records in the SQL), but display a blank or alternative string for … | |
Hi guys, I am in need of a code that can put the values of a column in an array. EG: I have a database with usernames, and I wanted each username to be stored in an array automatically, so each time the page is viewed it runs the code … | |
hi all, i am not-so-new to C++, but then ,yea, a newbie XD ok, here is the question. first i have a base class call Item, and it have 3 sub class. Now i need to make an array total of 100 item, that can store any of that 3 … | |
have a javascript in which i am trying to assign the value to a hidden field and getting the below msg 'document.Form1.H_ROWID' is null or not an object i am getting the value in the alert box but not able to assign it o teh control [code]alert("row " +M_ROWID) document.Form1.H_ROWID.value … | |
I write a small program like following: 1, firstly create a process waiting for keyboard input commands(via getchar()). 2, secondly create a thread in the process waiting on a message queue. each time after the thread receive a message, it can handle the message but cannot print the log message(via … | |
Hey Guys, Some of you know (Tim) that I'm working on a Professional Development and Training Database. I'm about to demo it to HR but I would like to add a feature: If a course is "Mandatory for all employees?" is checked in tblCourse, then check "Mandatory for Employee?" field … | |
Hello I have 2 functions that are just playing up. One is a function that takes in a string & should output the string backwards. [B]Problem:[/B] the syntax to insert a character into the string is wrong, I dont know the correct syntax. The other is a function that takes … | |
This file looks OK to me. I have permissions. See attached icon file (894 bytes long). | |
Hi Friends... I developed web application which contains script validations in most of the html pages in these validations i used document.forms[0] its working fine in IE , but my problem now i need to execute this application in FireFox browser,but FireFox is not supporting document.forms[0], so please tell me … | |
Hi, I'm trying to bind a DropDownList in the code behind using the following code: [CODE]Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("myServer").ConnectionString) Dim selectCMD As String = “SELECT name, id FROM Clients WHERE name LIKE @name + ‘%’” Dim selectCMD As New SqlCommand(selectSQL, DatabaseConnection) selectCMD.Parameters.Add(New SqlParameter("@name", SqlDbType.VarChar)) selectCMD.Parameters("@name").Value = name Dim adapter … | |
My effort to retrieve favicon.ico sometimes fails even though it is found. It fails when attempting to convert the stream into a BMP or an Image using FromStream(), with the ArgumentException, or Parameter Invalid. I've tried all kinds of things to manipulate this and I guess I don't know what … | |
hii guys i was looking forward to creating an excel sheet .. the entries of which shouldf be the data in the database..i already have the data in the database .. juz wanna transfer n display them on the excel sheet... i dont wanna look beyond php for tis task!!!!! … | |
I have been trying this for days now and I am not even sure if I am going about this right. I've got errors errors errors everywhere. What I am trying to do is write a windows app that maintains a contact book that can hold up to 20 entries. … | |
Hello all I am creating a page that dynamically updates as tables are added and removed from the database. Like so: [code=php] #connect to mysql $conn = @mysql_connect("localhost", "root", "*****") or die("Err:Conn"); #select db $rs = @mysql_select_db("ecf_training", $conn) or die("Err:Db"); $query="SELECT * FROM class"; $result=mysql_query($query); $num=mysql_numrows($result); $i=0; if($num != 0){ … | |
Hi peoples, I have a textbox: [code=asp.net]<asp:TextBox ID="TextBoxFirstName" runat="server"> </asp:TextBox>[/code] I need to make sure that it captures data for a first name allowing letters from a-z, A-Z and special characters like - (dash) and the space characters. The validator will block all other characters. How do I go about … | |
I have a excel file and I want to find what I need the ID which is first colomn. The excel file is 4 sheets and fisrt colomn is ID on them. Problem is this : I know only and only ID but I dont know this ID which sheet … | |
hi every body I'm begging with assembly and I try two sum two numbers but i cant understand interruptions and generally Assembly so I learn asm with api I wrote this if anybody correct me >>!! [CODE].386 .model flat ,stdcall OPTION CASEMAP:NONE include kernel32.inc include masm32.inc includelib kernel32.lib includelib masm32.lib … | |
Hello Everyone, I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event … | |
I am writing a sports event result analyse of a database, there are few awards will be given 1. individual prize: suppose getting champion get 5 marks , second runner up get 3 marks , etc 2. the most active athlete award every student in a House participating every event … | |
I have a very simple script that basically searches an xml file for a node based on the id of another node. I then update the node I found with a new value. For some reason my code is not performing the update. It is actually creating another node within … | |
Hi Can anyone tell me please How i can make program in C++. Thanks. | |
this is the code #include<stdio.h> void main() { int i; printf("%d, %d",++i,i++); } and following is the output 8429558, 8429556 | |
Hey Guys, I have a details view bounded with a sqldatasource. I want to calculate the the total no of entries in details view and show it to the user. Please tell me how to do this?? | |
there is a tools or util that convert mips asm to c code? thx. | |
I got a little problem I am making a little admin tool for my server that you can edit player stats and things with it. Problem is if I like make string Test and assign value "Hi" to it. How can I use the string inside my IMPORT INTO statement. … | |
hi frnds, how can we connect to a sql server database using C++ program.can anyone pls post a code for this ... | |
Hi everyone! I have a program in C#, which doesn't resize and adjust the contents of the app-window when I maximize it. I know that in Java, one can use JFrame and this problem is eliminated. Is there an equivalent in C#? | |
Hello everyone, I'm writing a code and in there and I need to convert a char which contains any of "+", "-", "*", "/" into a real operator. As an example let's say I have: [code] char myOp = '+'; int op1 = 10, op2 = 20; cout << op1 … | |
Hi my question is about saving array consisting of elements of type UIElement or Button. How can I store them in database and read them from db? Must I conert array to any other type(conversion from UIElement to Byte raises errors). What type column od db should have to store … | |
Hello, i can not quite figure out how to write a function to take numbers from an array and sort so it displays even numbers first and then odd numbers. the output should look like this: [QUOTE]Original: 9 8 7 6 5 4 3 2 1 Reversed: 1 2 3 … | |
in my application i am using Ajax post like [CODE] $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function(){ if(!$("#formName").val()==""){ if(saveDraft=='on') status="Incompleted"; else status="Completed"; var formname=$("#formName").val(); $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ getformid=msg;//returned FOrm id is saved in the JQuery variable }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { alert("Form id "+getformid);//alerts me … | |
Hi all I'm having a strange array problem. I'm pulling variables from a database and putting the values in arrays. One set of values are pure numbers. This array works fine. My second set of values are a mixture of numbers and letters. This second array just returns values of … | |
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it can create database. I changed in that file one line into this: CREATE DATABASE [NameOfDb] … | |
I've used strip_tags, is there a better way to secure this query? the value will always be numeric, It's being displayed like this [url]http://www.somesite.com/listing.php?id=5[/url] The id will always be a different number not always 5 depending on the listing [CODE] $sql = "SELECT * FROM listings where id=" . strip_tags($id) … | |
Hello guys, I don't know if there is already a solution for this but I'm having a lot of problems with re-loading the Ajax div tags. At the moment I have two div tags in my main index.php file, called "flowchartDiv" and "buttondataDiv". Now what I'm trying to do is … | |
[code=php]$url = 'the web address I want to get the first and second numbers close to $' ; $str = file_get_contents($url); preg_match_all('/ ([$]) *(\d+(:?.\d+)?)/', $str, $matches, PREG_SET_ORDER); $i=0; foreach ($matches as $val) { if($i==0) $first=$val[2] ; if($i==3) $second=$val[2] ; $i++; } $bad_symbols = array(",", "."); $first = str_replace($bad_symbols, "", $first); … | |
Hello , Im trying to activate a certain method in COM+ application class on a remote server. iv been trying googleing alot about this problem but i found very few relevant information. i developed this code snippet but it's not completely working. the dynMethod parameter is staying NULL and i … | |
Hi, We have a java web application where users will be submitting videos. I'm trying to write a java program that is able to convert any movie file into compressed SWF video and FLV streaming video formats. The code should convert almost all popular file extensions such as AVI, MPEG, … | |
![]() | Hi, I have a frameset with 2 vertical rows. 1. The Header (Header.jsp) and 2. The Body (Body.jsp) The header has all the links and the body is the base target. The problem that I'm facing is that I need to pass parameters through the URL and since the frameset … |
Hi, I am working on a simple application for a game which uses udp packets to broadcast its server. However, I am having some problems to decode the main packet: [CODE]byte[] buffer = { 247, 48, 157, 0, 80, 88, 51, 87, 23, 0, 0, 0, 25, 0, 0, 0, … | |
Creating Dependent DropDownLists... Forcing the contents of one DropDownList to change based upon the selection of a value from another DropDownList. How can do so in C#(Asp.net) i have kept a dropdownlsits for locations ---> [B]Droploc1 [/B] ---of locations and acording to this i have to bind datas to my … | |
I have a grid view and I have a drop down list in several of the cols. A couple have their own data source, and a couple are hard coded. So when I click edit the labels turn to drop down list. BUT, i need to access the drop down … | |
i'm doing a project on scrabble as part of my deg course. can text be retrieve from a bitmap image .if so ,how? i also want to overlay dice images on the board .can it also be done? i also want to drag the dice images to the board which … | |
anyone who can you help me make my project..it's about the program for bank transaction system..it must have the registration for customer and client..new accounts(savings, current, dollar)...transactions(deposit, withdrawal,inquiry, close) and then the report where i can view all the transactions..pls... any help is well appreciated... | |
Here i try to draw line by mouse pn panel but it is not appear here is my code: [ICODE] import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; public class … | |
Hi guys please help with this i am trying to write my data from a table in a lis box but a always get the number of items inside the table. can some one come thru please. lstData.items.Add(dataAdapter.fill(dataset,"MyTable") all kinds of help will be appreciated |
The End.