199,114 Archived Topics
Remove Filter ![]() | |
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? | |
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 … | |
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 `'` … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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", ""); … | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
To Check the Given Triangle is Isocles , Equilateral or Right Angled Triang | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
![]() | 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 … ![]() |
Hello Community, I was wondering if it is possible to access and use an api from my website? | |
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 … ![]() | |
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 { … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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... | |
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? ![]() | |
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 … | |
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 … | |
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 … | |
Been getting PHP Fatal error: Cannot redeclare class Facebook error since... Can anyone please enlighten what does this means? | |
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 | |
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? | |
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 … | |
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 … | |
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 | |
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); … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … |
The End.