199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pedramphp

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 …

Member Avatar for tjbourke
0
165
Member Avatar for Newbi

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); …

Member Avatar for Newbi
0
110
Member Avatar for viniciusweb

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 …

Member Avatar for viniciusweb
0
91
Member Avatar for muzhe

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 …

Member Avatar for mrnutty
0
120
Member Avatar for ChazMan

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 …

Member Avatar for jericho034
0
374
Member Avatar for Toxikr3

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 …

Member Avatar for Toxikr3
0
72
Member Avatar for Altermisia

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 …

Member Avatar for Altermisia
0
84
Member Avatar for surekhavk

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 …

Member Avatar for essential
0
199
Member Avatar for forestwwq

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 …

Member Avatar for frk
0
340
Member Avatar for jmw229

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 …

Member Avatar for jmw229
0
124
Member Avatar for gretty

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 …

Member Avatar for mrnutty
0
202
Member Avatar for DdoubleD
Member Avatar for sivakumarl

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 …

Member Avatar for essential
0
227
Member Avatar for Ana D.

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 …

Member Avatar for Ana D.
0
86
Member Avatar for DdoubleD

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 …

Member Avatar for DdoubleD
0
174
Member Avatar for nostalgia149

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!!!!! …

Member Avatar for chrishea
0
121
Member Avatar for FJones

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. …

Member Avatar for DdoubleD
0
220
Member Avatar for littletechie

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){ …

Member Avatar for littletechie
0
85
Member Avatar for f_atencia

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 …

Member Avatar for chithrasujith
0
110
Member Avatar for darkocean

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 …

Member Avatar for darkocean
0
652
Member Avatar for DarkC0de

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 …

Member Avatar for wildgoose
0
293
Member Avatar for solahere

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 …

Member Avatar for solahere
0
111
Member Avatar for iamy1204

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 …

Member Avatar for SKANK!!!!!
0
77
Member Avatar for Mapper99

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 …

Member Avatar for Mapper99
0
272
Member Avatar for syedabdulsamad
Member Avatar for Hawkpath
0
177
Member Avatar for muusa

this is the code #include<stdio.h> void main() { int i; printf("%d, %d",++i,i++); } and following is the output 8429558, 8429556

Member Avatar for muusa
0
119
Member Avatar for anuj_sharma

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??

Member Avatar for chithrasujith
0
232
Member Avatar for hello1231231
Member Avatar for wildgoose
0
168
Member Avatar for Silvershaft

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. …

Member Avatar for JasonHippy
0
103
Member Avatar for arunnic

hi frnds, how can we connect to a sql server database using C++ program.can anyone pls post a code for this ...

Member Avatar for marco93
0
245
Member Avatar for nkarvi

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#?

Member Avatar for sknake
0
78
Member Avatar for group256

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 …

Member Avatar for group256
0
5K
Member Avatar for krokodajl

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 …

Member Avatar for kvprajapati
0
146
Member Avatar for RobBrown

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 …

Member Avatar for Tom Gunn
0
140
Member Avatar for arunajasmine

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 …

Member Avatar for arunajasmine
0
149
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
124
Member Avatar for johnyjj2

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] …

Member Avatar for johnyjj2
0
406
Member Avatar for lobas

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) …

Member Avatar for somedude3488
0
90
Member Avatar for Cheeki

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 …

Member Avatar for essential
0
214
Member Avatar for avukadomusic

[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); …

Member Avatar for avukadomusic
0
166
Member Avatar for b0nz

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 …

Member Avatar for kvprajapati
0
115
Member Avatar for alrevolver

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, …

Member Avatar for test
0
161
Member Avatar for feoperro

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 …

Member Avatar for Airshow
0
200
Member Avatar for GoS-ExiGo

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, …

Member Avatar for GoS-ExiGo
0
77
Member Avatar for nikichu

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 …

Member Avatar for nikichu
0
131
Member Avatar for kralco626

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 …

Member Avatar for kralco626
0
817
Member Avatar for chirup

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 …

Member Avatar for kvprajapati
0
78
Member Avatar for alecka_16

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...

Member Avatar for freepost
0
84
Member Avatar for beshoyatef

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 …

Member Avatar for JamesCherrill
0
120
Member Avatar for Jostra

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

Member Avatar for Jostra
0
717

The End.