199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for developer707

Hello to everyone, I want to direct foreign visitors of my site in one directory, this based on their IP. My site structure is: index.php(file) |->foreign(directory) I think that this can be done with .htaccess, but I don't know how Can someone gives me an example how to do this?

Member Avatar for cereal
0
407
Member Avatar for Gaving30

Hello, On my website i am trying to get my site to display the users address details if they are logged in have tried a stored procedure: ALTER PROCEDURE dbo.showAddress @userid nvarchar(256) AS SELECT Fullname, Address, County, Postcode FROM Addresses WHERE @userid = UserId RETURN But i get an area …

Member Avatar for daniel955
0
108
Member Avatar for rishif2

hello experts . . . i am using following code:- `con.Execute "insert into tbl values('" & Text1.Text & "','" & Text2.Text & "') ", adCmdText` i am trying to insert data using above statement and its working well but an error occures when i input data (contaning the symbol `'` …

Member Avatar for AndreRet
0
130
Member Avatar for killer88

say im performing addition of two numbers. there are three textboxes . 2 for entering the numbers and 1 for displaying the result. im giving one value in first text box and no value in second textbox it says "conversion not possible". now wat shuld i do to make the …

Member Avatar for killer88
0
304
Member Avatar for watery87

Hi guys. I would like to ask several questions about this. Im on my final phase of the proj, will appreciate some information. Qn 1: How do i make the user continually input till he types 'exit' to exit? Qn 2: If he types wrongly, or database couldnt find the …

Member Avatar for help738
0
197
Member Avatar for Gus_19

Is it possible to have string in a richtextbox checked for pronouns and then make them all upper case? I'm a little familiar with the class method 'ToUpper' but don't know how to go from there. I have a richtextbox on my form and I want to check for any …

Member Avatar for azareth
0
97
Member Avatar for Some-Jackass

In my MySQL database I have my regular tables, and a couple of VIEWS. Everything runs like clockwork, until I remove Remote Access to the database. I cannot access any of my VIEWS. Accessing any regular tables still work 100%. The thing is, the PHP script accessing the VIEW is …

Member Avatar for Some-Jackass
0
275
Member Avatar for sukriti1116

hii i have three tables naming Cards_issue,Cards_return and Cards_Sold. have to perform some working as while inserting data in Cards_return table it should check that the data inserted is not less than Cards_issued and it should update Cards_Sold table by Cards_issue-Cards_return..... plz help me in this context...

Member Avatar for sukriti1116
0
161
Member Avatar for vonnoy

need help here guys! i want to open record from form1 and form1 composed of two listview namely listview1 and listview2 if i choose listview1 or listview2, form2 will appear and data will display in labels then if listview1 was selected then save it on table 1st_sem and listview2 on …

Member Avatar for AndreRet
0
103
Member Avatar for ryan311

Hi i've created a class which name is testclass.cls Inside of testclass.cls i created this code public void Insert(string materialSize, string KgPermetre, string PricePerCut, string MaterialType, string LineColour) { SqlConnection objcon = new SqlConnection(Cls_Connection.srConnectionString); objcon.Open(); SqlCommand cmd = new SqlCommand("sp_MaterialSize", objcon) { CommandType = CommandType.StoredProcedure }; cmd.Parameters.AddWithValue("action", "Insert"); cmd.Parameters.AddWithValue("MaterialSizeId", ""); …

Member Avatar for Mike Askew
0
172
Member Avatar for Krs13

Hi, I have an access database where in i have 3 separate fields for day, month and year which are comboboxes. I have an separate field where i need to combine these 3 fields into that single field(dd/mm/yyyy). can somebody help me on this please.

Member Avatar for rishif2
0
118
Member Avatar for brenton_77

Hi All, I've hit a brick wall trying to get the jquery autocomplete to work correctly. The problem is with the .php file and the way the While loop works, as what it does is create a array for every name rather than one single array. I've tried to move …

Member Avatar for brenton_77
0
334
Member Avatar for Galbatorix

i have a code that creates a login password for a user in my android app. The code first of all compares the setPass and the confirmation pass then saves it in the db. My problem is that its doing the checking on the first part of the if function …

0
97
Member Avatar for lena1990

hi all i want to create a download manager program that downloads programs(executable files) i search the internet but i didnot find something useful i would be greatful for any help thanks in advance

Member Avatar for bguild
0
166
Member Avatar for NetJunkie

So, I am having some trouble getting my alertView to actually perform an action on a certain button click. Here is the code I have so far and I hope someone can help me debug this issue and get this working! Thanks in advanced! ViewController.h // // ViewController.h // IMWT360 …

0
124
Member Avatar for ashine80
Member Avatar for gujinni

hi there.. I just need some help for my loan management system. thus anyone know how can i stored schedule of amortization to the sql serve? is it 1 insert statement is enough to store in database? do this problem need looping. I don't know what code should I need …

Member Avatar for LastMitch
0
517
Member Avatar for Lethugs

hi Im using chart to display data in VS 2010, its working properly with this code... Chart1.Series(0).Name = "Days Used" Chart1.Series(0).Color =Color.Red Chart1.Series(0).XValueMember ="Account Name" Chart1.Series(0).YValueMembers ="Days Used" Chart1.Series(0).IsValueShownAsLabel =True my x&yvaluemembers value came from sql server database. The "Account Name" And "Days Used" are alias of my database column …

Member Avatar for Lethugs
0
2K
Member Avatar for khair.ullah

hi all. I want to fill the Listview from a mssql database in vb.net but it not show all the data in Listview. I have the followning code. Dim sSQL As String Dim lvwItem As New ListViewItem() sSQL = "SELECT field1, field2, field3 FROM tablenam e " sSQL = sSQL …

Member Avatar for evadehawkeye07
0
6K
Member Avatar for boher

I need a solution for a small problem in my project and I'll make it as simple as possible: At one of the forms in my project, user should be able to add a panel to the form and that form should contain 2 controls ... a label and a …

Member Avatar for Reverend Jim
0
198
Member Avatar for FakeTales

basically i am using xpath for a search query, the results display like this Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Greatest …

Member Avatar for FakeTales
0
205
Member Avatar for joshl_1995
Member Avatar for joshl_1995
0
217
Member Avatar for GraficRegret

is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am …

Member Avatar for diafol
0
317
Member Avatar for titan5

I wanted to read data from multiple files simultaneously but I am getting NULL error. Could anyone help in pointing out my error in the code. I am not sure if I can make arrays of FileInputStream and DataInputStream the way I have done. [CODE=Java] import java.io.*; class Count1 { …

Member Avatar for peter.lawrey
0
414
Member Avatar for GlenRogers

Hi. I have a php file with image links(mysql data) in one div, when a link is clicked the product_id is sent to another php file that builds the html to display all images(in another mysql table) with that product_id in another div. Someone else helped me out withsome ajax …

Member Avatar for soapyillusion
0
157
Member Avatar for sheena.sabado.5

Hello daniweb folks. I am here to ask some guidance, tips, suggestions and advices regarding the round robin scheduling algorithm. We are tasked to solve for the waiting time and turn around time of each process. They all have the same arrival time which is zero. here is my codes: …

Member Avatar for sheena.sabado.5
0
294
Member Avatar for t2nator

How can the following code be change so the children form move event is smoother? Dim isMouseDown As Integer Dim MyX, MyY As Integer Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown isMouseDown = 1 MyX = e.X : MyY = e.Y 'Me.Cursor = Cursors.SizeAll End …

Member Avatar for t2nator
0
113
Member Avatar for RenanLazarotto

Hello people! I want to develop for Windows Phone (7.5/7.8). Can someone point me where I should start? I'm kinda familiar with C#, I need to know what changes from C# development on desktop and C# development on WP. Sorry for the vague question, I really don't know where to …

Member Avatar for peter_budo
0
105
Member Avatar for bellachara

SELECT DISTINCT course.course_no, description FROM course, section WHERE location = 'L210' ORDER BY course_no Here is the problem: Give me a list of courses (by course_no and description) that are taught in room L210 But now find out I need to use the JOIN...ON... syntax Need help redoing that with …

Member Avatar for bellachara
0
115
Member Avatar for ZZucker

I am exploring the J language for scientific purposes and am running this Fibonacci number code. Does anyone know how to add up the values in each of the four columns? NB. Fibo101.ijs NB. Fibonacci numbers NB. using J language free from www.jsoftware.com NB. F creates a list of the …

Member Avatar for TrustyTony
0
176
Member Avatar for mrhankey

hi, i am adding in a basic accounts table to my system. what i need to know is what is the best way to insert repeat payments. such as rent monthly? many thanks

Member Avatar for adam_k
0
183
Member Avatar for replic

Hello everyone, i am fairly new to shell scripting so please bear with me. The following script is supposed to read words from a file and depending on the word print different things. However it always prints the default value. It also refuses to work completely if the first line …

Member Avatar for replic
0
336
Member Avatar for pxalpine

I have 2 text files: *cities.txt* San Francisco Los Angeles Seattle Dallas *master.txt* Atlanta is chill and laid-back. I love **Los Angeles**. Coming to **Dallas** was the right choice. New York is so busy! **San Francisco** is fun. Moving to Boston soon! Go to **Seattle** in the summer. *output.txt* <main><beg>I …

Member Avatar for pxalpine
0
146
Member Avatar for biswa2ray

I want to add and delete 3nos of text field and label in a row dynamically using Add and delete button in javascript. Is any one help me in this regard...

Member Avatar for gon1387
0
346
Member Avatar for GraficRegret

is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done?

Member Avatar for diafol
0
3K
Member Avatar for jtok

Sorry for everything being marked as code. It wouldn't let me post it unless I did (and, yes, I did try using the Inline Code option as you can see by the single quotes around much of what is written here). I have a page with an updatepanel that contains …

Member Avatar for jtok
0
809
Member Avatar for DEAD TERMINATOR

What I want to do is to take a 2d int array and use it to create a Matrix (a class I will be defining) which will effectively wrap all the values of the 2d array together so that I can perform matrix multiplication for coordinate translation. I am rather …

Member Avatar for tux4life
0
244
Member Avatar for RaoxFaello

Hi, I'm currently studying this language how do i connect VB.NET with a Database (MS Access) and let me input informations in it as well as retrieve informations from it? I'm not familiar with MS Access but i know how to enter the name and it's type so that i …

Member Avatar for Ancient Dragon
0
576
Member Avatar for nunuaziz_

Been getting PHP Fatal error: Cannot redeclare class Facebook error since... Can anyone please enlighten what does this means?

Member Avatar for veedeoo
0
207
Member Avatar for xHellghostx

Okay I am wondering what is a syntax to create a new property with read-write proprties, I read the book but it is not clear. Your help is appreciated

Member Avatar for Ancient Dragon
0
213
Member Avatar for amweasel

1. Can ZoDB replace MySQl or both of them serve different purposes? 2. If yes, is ZoDB as good as MySQL for handling a dynamic website?

Member Avatar for amweasel
0
196
Member Avatar for ebanbury

Hi I have the following email script, which is working fine except none of the carriage returns work and the entire message from all the fields just goes in one line without any spaces. I've tried to look up carriage returns and didn't find anything different from \r\n Any help …

Member Avatar for ebanbury
0
99
Member Avatar for rikkie

Hi, I am trying to calculate the distance between two points, by using Pythagorean Theorem and the x,y coordinates of two points. However, I have the following issue in line 14: "*Expression must have integral or enum type*". #include <iostream> #include <math.h> using namespace std; int main () { float …

Member Avatar for phorce
0
2K
Member Avatar for visweswaran28

Hi, I have a string like "\n <div> attrib1=\"test\"</div>" I want to pass this as parameter to xmldocument.loadXML(); I received an exception when I tried to pass the above string. Please suggest me to proceed. Thanks in Advance

Member Avatar for deceptikon
0
98
Member Avatar for tofumaker

int x = 0; int i,j,p; int buf[4]; int *array[5] = {0}; for (j = 0; j < 3; j++){ for (i = 0; i <4; i++) { buf[i] = x++; } array[j] = buf; } int* temp; temp = array[1]; for (i = 0; i<4; i++) { printf("%d\n", *temp); …

Member Avatar for deceptikon
0
159
Member Avatar for techyworld

Hello people, I need an idea with u. I need to draw a grid 10 by 10 and then randomnly fill it with numbers, operators + - and =. then user will need to swap number or operator or equal sign to make matches like this 2+3 = 5. It …

Member Avatar for Taywin
0
154
Member Avatar for Tinnin

Hi all, I am trying to create an excel file in PHP which I then want to send as an attachment via the mail() function. I am able to create the excel file using the following code: function setHeader($excel_file_name)//this function used to set the header variable { header("Content-type: application/octet-stream");//A MIME …

Member Avatar for Tinnin
0
6K
Member Avatar for wolfmanemil

title Lab_Tutorial_1 .dosseg .model small .stack 100h .data input db 99 dup(0) msg1 db 0ah, "Enter a string (max of 99 characters) : " ,0ah,0dh, '$' msg2 db "Filtered result : " ,0ah,0dh, '$' msg3 db "Number of alphabets : $" msg4 db "Press any key to end.....$" blank db …

Member Avatar for deceptikon
0
280
Member Avatar for yvrej17

Hello, I ajust need a help here. I have 2 tables in my database (ms access) table1 = employees table2 = eID In employees table I have a column name "myimage" in "OLE Object" data type I just want to copy the cell value in table "employees" at column "myimage" …

Member Avatar for yvrej17
0
237
Member Avatar for tsp003

Hi Guys, I've been searching the internet over this one for days now and am even more confused, so I hope you can point me in the right direction. I am basically trying to create a 3 tier cascading dropdown based on country/city/states. I'm using the following code to create …

Member Avatar for tsp003
0
231

The End.