17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for athalia

hi i'm using asp.net to create an online order form. i have 4 textboxes and i want to save the information from the textboxes to my database on click of a button. dbName = BikeOrderdb txtQty, txtBikeId, txtBikeName, txtPrice [B]Can you please help me with the code for connecting textboxes …

Web Development asp asp.net sql
Member Avatar for athalia
0
116
Member Avatar for vishalanuj

[CODE]package Add; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class AddSuccessAction extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { …

Web Development apache java java-jsp sql
Member Avatar for vishalanuj
0
260
Member Avatar for Ghodmode

Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I …

Web Development javascript
Member Avatar for Troy III
0
1K
Member Avatar for sonia sardana

[code] public partial class FrmOnline : System.Web.UI.Page { string Query; SqlCommand cmd; SqlConnection conn; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { OpenSQLConnection(); SqlCommand cmd = new SqlCommand("select * from Info1 where UID=1", conn); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { dr.Read(); TextBox1.Text = dr[0].ToString(); } } …

Web Development asp.net open-source
Member Avatar for shenulal
0
111
Member Avatar for cuzner

Apologies for the huge post! I am having trouble with ajax right now on my site: (This site is only a first draft and has a few nav problems with the flash - will sort it soon) My main problem is I have an Ajax code on the index page …

Member Avatar for Thirusha
0
201
Member Avatar for mansi sharma

I want to change cursor type & backcolor when mouse moves over a td,Suppose I want to chnage the cursor to Hand, & backcolor to Blue on mouse move, & on mouse leave i want to change the cursor to default..How to do it?????????

Web Development asp.net
Member Avatar for Dhaneshnm
0
195
Member Avatar for Jayakrishnan_gk

I want the cursor to be in a particular textbox when the page loads. I achieved it using document.formname.formname.focus() But the textbox has a default text. And i want it to disappear once the user starts typing. how can i get rid of this default test ?

Web Development javascript
Member Avatar for Jayakrishnan_gk
0
136
Member Avatar for kndsti

I've try to figure it since 3 days a go..:-( and sorry for my english. what i want to do is displaying a random link on my conduit toolbar and it change randomly everytime EBNavigateComplete event occur. EBNavigateComplete is just one of conduit's event. It works fine on my firefox …

Web Development api google-api html-css javascript
0
63
Member Avatar for InsaneVr6

I for the life of me can't get this to work and I get no errors. [B]admin.php[/B] [CODE=php]<html> <head> <title>Admin Area</title> </head> <body> <? //connect to mysql //change user and password to your mySQL name and password $conn = mysql_connect("host","username","password"); if (!$conn) { die('Could not connect to the database: ' …

Web Development first-post php
Member Avatar for InsaneVr6
0
112
Member Avatar for swthurmond

I am trying to populate a drop down list in an HTML form that pulls it's data from a datbase. Basically, the users can manage the values via a differnt interface, but the web page will present what ever values are in a given list. I can make the list …

Web Development javascript
Member Avatar for swthurmond
-1
873
Member Avatar for genieuk

Hi, I hope someone can help me. My site been using cookies and i have decided to scrap cookies after finding to many security holes which i myself was able to hack in testing. I have looked online and found nothing that is want i am after even my php …

Web Development php session web-server
Member Avatar for genieuk
0
243
Member Avatar for garyhumf

I have placed a dropdown list in the edititemtemplate of a formview control and followed specific MSDN instructions on how to bind the list source to a separate SQL lookup data source but have the formview bound to the main data source. If I set the selecteditem value to bind …

Web Development asp asp.net
Member Avatar for garyhumf
0
540
Member Avatar for fawadkhalil

Hi I have an image converted to binay and saved in SQL database. Below is my line of code where application is throwing above exception that im using for showing image [CODE] Dim mem As New IO.MemoryStream(CType(io.File.ReadAllBytes(imgfilepath), Byte()))[/CODE] Does anybody knows how can i fix this? Thanks and regards, f

Web Development asp.net vb.net
Member Avatar for fawadkhalil
0
120
Member Avatar for ritu verma

I want to ahve td border,But there is no property border,Can somebody tell me how to set td boder?

Web Development asp.net
Member Avatar for reach_yousuf
0
111
Member Avatar for shadwickman

Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go: I have a page that I've made as "private" by including my access control script at the top. The access control script …

Web Development php session
0
102
Member Avatar for neeraj20gupta

i m a stater with jsp .... have installed Tomact 5.0.28. Its displaying server page when i type [url]http://localhost:8080[/url] now i have made a simple context.jsp file----> [code=JSP]<HTML> <HEAD> <TITLE> Context </TITLE> </HEAD> <BODY> <% out.println("First JSP APPLICATION"); %> </BODY> </HTML>[/code] placed it in a folder ch in webapps folder …

Web Development java-jsp
Member Avatar for neeraj20gupta
0
196
Member Avatar for nadnakinam

[CODE] <?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // Table1 name $con=mysql_connect("$host","$username","$password"); mysql_select_db("$db_name",$con); $show_all=$_POST['rg01']; // Show All //echo $show_all; if($show_all!="") { $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all'"; $result=mysql_query($sql); } else { echo …

Web Development php
Member Avatar for cwarn23
0
135
Member Avatar for gpss

Hello! I need help.. please.. i'm new at php... but i need to make this: i have a database (postgreSQL) on a server... now on my webpage, i want to insert (manually-in my webpage) like with a text box, i insert there the client name (and other box's for the …

Web Development client-server php postgresql sql
Member Avatar for gpss
0
141
Member Avatar for 123468743867143

Need instruction. Please. [B][COLOR="red"]Situation:[/COLOR][/B] Most of my site pages start with the following: [COLOR="Green"]<? include("include/common.inc.php"); top(); left(); middle(); bottom(); function middle(){ ?>[/COLOR] My include/common.inc has the head, title, meta tags which means they look the same on EVERY single page of my site (hundreds of pages!). Not good for SEO. …

Web Development php seo
Member Avatar for Eng.h
0
456
Member Avatar for genieuk

Hi, Can someone tell me if i can use the below query. When i click submit button SQL says: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username = 'genieuk'' at line …

Web Development mysql php
Member Avatar for genieuk
0
65
Member Avatar for mansi sharma

Suppose there are two buttons named button1 & button2.I wnat that when the user presses enter key,button2 click event will fire? How to do dat,Can somebody tell me?

Web Development asp.net
Member Avatar for nverma
0
122
Member Avatar for exactprecisions

I see these sites with PHP files that have for example here it is ?do=. I wanted to make an array of documents names: $navigation[0] = "index.php"; $navigation[1] = "page1.php"; $navigation[2] = "page2.php"; So on and so forth. I'm probably not making any sense, but as I said in the …

Web Development php
Member Avatar for exactprecisions
0
146
Member Avatar for cavpollo

I know this might sound dumb or you might think that its pointless, but I need to do it this way. So here it goes, is there any way of placing a master form inside other master form's content place holder (or another kind of object)?

Web Development asp.net
Member Avatar for Ramesh S
0
79
Member Avatar for Susan.LK

Hi there, If users want to be able to see more than one image for a searched book which would be the best way for the database table to be designed? Book table : Isbn, year, title, image_1, image_2, image_3, image_4 or Book table Image seperate Each book will in …

Web Development php
Member Avatar for djjjozsi
0
113
Member Avatar for sakhi kul

Hi to all, I format my laptop and installed VS2008 . after running my webpage it gives me error that "compiler executable file csc.exe not found" (It is for previously build website) and if I create new website and run then It gives error that vbc.exe not found" why this …

Web Development asp asp.net
Member Avatar for sakhi kul
0
98
Member Avatar for Sjaroow

Hi all! In the following code the Onclick events change the background images. My problem is that after you click on another link i want the previously changed backgrounds to change back to its original background image. I hope i made some sense :P. Help is MUCH apreciated. Gr, Jarl …

Web Development javascript
Member Avatar for Sjaroow
0
106
Member Avatar for Taavi

Hello! I have been trying to make a news script where you can edit/delete news. I've looked for tutorials and tried to make mine too. But I still have some problems, and I don't know what is wrong. So, I'm posting the code here, maybe someone can help me. [code=php] …

Web Development mysql php
Member Avatar for Taavi
-1
149
Member Avatar for gaz

hi i am trying to change some divs with the time however i seem to have gone wrong at some point and cant seem to figure out where. Please excuse the writting in them i am going to change it thanks.[CODE] <script type="text/javascript"> /*<![CDATA[*//*---->*/ var one, two, three, four,five, six, …

Web Development javascript
Member Avatar for network18
0
100
Member Avatar for sanjaypandit

[QUOTE]hi friends i am making a website depend on review on tourism places, but in it some weather data is needed according monthly for e.g. see this link [URL="http://www.holidays-uncovered.co.uk/united-kingdom/england/london.html"]Weather Link[/URL] in this u see there is a chart of avg. weather conditon of london city. i want show these data …

Web Development api php
Member Avatar for network18
0
216
Member Avatar for Altairzq

Hello all. I have a mootools accordion in the website I'm building that uses two classes: "toggler" for the titles and "element" for the content. I'm in the need of adding an input field at the bottom of the "element" DIV that the user has opened. Problem is, every content …

Web Development javascript
Member Avatar for Altairzq
-1
148
Member Avatar for zorro-az

hi, everyone i am new beginner in JavaScript environment i have taken from internet image rollover script but i dont understand some tricks in JavaScript does anyone help me? below is my code Help with Code Tags (Toggle Plain Text) [CODE]<html> <head> <title>A More Effective Rollover</title> <script> window.onload = rolloverInit; …

Web Development image javascript
Member Avatar for Troy III
-1
224
Member Avatar for digtokiller

Hello people, i need a code so when someone join my site, the site resize after the size of the screen on the coputer joining. cause i have seen my site on a small screen and big screen but they look different... sÃ¥ if the site could resize so it …

Web Development php
Member Avatar for digtokiller
0
122
Member Avatar for smvec

hi.. im dynamicelly creating text box in a html file using javascript.. [CODE]<script> function create_input_boxes() { if(document.getElementById("name0")) { return true; } var boxes=""; var num_boxes=document.getElementById("num_boxes").value; if(num_boxes) { for(var i=0;i<num_boxes;i++) { boxes+="<input id='name"+i+"' name='name"+i+"' value=''><br />"; } document.getElementById("textbox_container").innerHTML=boxes; } return false; } </script> </head> <body> <form id="theForm" action="dynamic.php" method="post" onsubmit="return create_input_boxes();"> …

Web Development php
Member Avatar for smvec
0
89
Member Avatar for omotoyosi

Please all, I am currently working on a web application which i must submit as soon as possible. I have a button and a text box. What i want is that if the textbox is empty, the button should be invisible. Immediately the user starts typing in the text the …

Web Development asp.net
Member Avatar for Geekitygeek
0
118
Member Avatar for genieuk

Hi, Ok.. i have some pages on my site that has a link like [code=text]<A HREF="<?php $websiteaddress ?>/webbuilder/downloads/download.php?filename=age_verification_popup.zip">Download</A>[/code] if you look carefully you will see using get in my below script i get the filename in this example [b]age_verification_popup.zip[/b] This is then sent to this script. [CODE]<?php @include ("/home/sites/genieuk.co.cc/public_html/includes/global.php"); // …

Web Development php windows-vista
Member Avatar for Atli
0
124
Member Avatar for nadnakinam

Hi to all, page1 -- login page page2 -- secured page 1 [COLOR="Green"] No Problem[/COLOR], If user logged out successfully using logout button. session ends and doesn't allow user to go to secured pages. But... [COLOR="Red"]Problem[/COLOR], if user press backspace or back button in browser staying in page2, directed to …

Web Development php session
Member Avatar for nadnakinam
0
252
Member Avatar for ttchiwandire

Hie everybody, Iam trying to insert multiple rows into a table at the same time. The form fields of the rows are defined as checkboxes in html. For example it requires a person to enter his qualifications by ticking appropriate checkboxes. Now a person may tick more than one checkbox, …

Web Development php
Member Avatar for network18
0
78
Member Avatar for AdventDeo

Is there any way to do this? I have multiple drop down lists and depending on which drop down is selected I want it to unset some sessions. Do I need to use AJAX for this?

Web Development html-css php session
Member Avatar for AdventDeo
0
218
Member Avatar for Vampdee

I have a really stupid question: In my job, once in awhile I have to perform maintenence on a client's website. I work for a small business so I don't have much staff to rely on, hence my post. I also do a plethora of other activities that have nothing …

Member Avatar for vuyiswamb
0
146
Member Avatar for baltazar

Hi, I'm trying to split a string with multiple delimiters using the PHP preg_split function. I am trying to separate the numbers from the units in terms like 172px, 100%, 2.5ems etc... i.e. after I run a preg_split on 172px I want the resulting array to have array[0] = 172 …

Web Development php
Member Avatar for baltazar
0
1K
Member Avatar for jen140

Hello all. I have a string that will contain the username, for the security reasons i want it to be checked it if its diferent from the specific charset. I think it could be done by looping the check 1 character from the username at a time till the end …

Web Development php
Member Avatar for EvolutionFallen
0
99
Member Avatar for nadnakinam

hi i'm using [B]wamp server 2.0[/B] in that, php version 5.3.0 MySQL version 5.1.36 PhpMyadmin 3.2.0.1 MySQL client version: mysqlnd 5.0.5 while uploading my files on to server (plesk control panel) there i have these... [B]Local host[/B] MySQL version: 5.0.45-community-nt Protocol version: 10 Server: localhost via TCP/IP User: username@localhost [B]PhpMyAdmin[/B] …

Web Development client-server php
Member Avatar for nadnakinam
0
274
Member Avatar for jithusdani

Hi Folks, I have created a text box dynamically using javascript. Now i want to call a javascript function in the OnChange Event Of that Control is there any way to do the same.?? Here is the code what i tried. [CODE] el[j] = document.createElement('input'); el[j].type = 'text'; el[j].name='work'+j; el[j].onChange='lookup(this.value)'; …

Web Development javascript
Member Avatar for jithusdani
0
92
Member Avatar for severman

hi all. i hope someone could help me. i'm trying to build a bidding site using ajax, and php. what i want to do is that: when the bid time is over 5 minutes, the "div" i've placed will refresh every 10 seconds, and when its under it will refres …

Web Development javascript
Member Avatar for severman
0
152
Member Avatar for lcyew

Hi there. Is there any way that can count the number of slashes in a string? For example: abs/frg/grgr/rgr/ and,the number of slashes can be obtained? Thanks for any solutions provided.

Web Development php
Member Avatar for lcyew
0
570
Member Avatar for moonlighter724

I've only just started playing around with Javascript, so don't mind what I say if I misuse a term or ask to do something that's impossible. I'm having a problem opening a program through Javascript. I want the script to start a game that people can play. I'm using the …

Web Development javascript
Member Avatar for preemals
0
104
Member Avatar for lcyew

Hi! I'm having some problem in displaying long varchar retrieved from database on the interface. When the text is very long, it causes the interface to stretch horizontally to display the whole text. I've tried to use text field to display them. It can restrict the display of text in …

Web Development display perl php
Member Avatar for lcyew
0
115
Member Avatar for Alexpap

Greetings members, i would like you to help me with a problem that i have. I have a gridview and in each row of the gridview there is a nested gridview. What i want i to insert paging functionality, to the nested Gridview control. Thanks in advance, Alexander

Web Development asp.net
Member Avatar for carobee
0
884
Member Avatar for OmniX

I throw the exact same sql statement in phpmyadmin and it works but it does not work with mysql_query. Ideas? [code] $a = "INSERT INTO players (player_id, first_name, last_name, date_of_birth, email, mobile_number, emergency_number, mother_name, father_name, player_number, team_captain, ip_address) VALUES ('', '', '', '', '', '', '', '', '', '', '', …

Web Development php
Member Avatar for OmniX
0
143
Member Avatar for OmniX

I have done this a million times before. I dont understand why this is not working through the use of a class. It is telling me that the variable is "undefined" hence contains a NULL value which is a load of *((^&$#. Anyways my code(sections of it) is below, any …

Web Development mysql php
Member Avatar for OmniX
0
124

The End.