52,566 Archived Topics
Remove Filter ![]() | |
I want to fetch data from Mysql database in list box..but it's not happening The code is: [code=php]<?php include("connection.php"); $sql= "select student_age from student_data"; $result= mysql_query($sql); if(!$result) { die('could not connect:'.mysql_error()); } while($row = mysql_fetch_array($result)) { echo "anumita"; ?> <option value="<?=$row[0]?>"> <?=$row[0]?> </option> <?php } ?>[/code] Web Development php | |
Hello all I need fast answer on this: How i can change(or) reset value ["referalvisits"] to ZERO? let's say that there is some value: for example 23220 I need reset it to zero and count again from zero.. "" [code=php]<th>Referral Visits</th> <td> <? echo $row["referalvisits"]; ?></td>[/code] "" thank you alot I … Web Development php | |
hope someone can help me with this. i am trying to update records in a mysql db with a new image but i keep gettin errors. i am using a hidden form input to post a variable across to a new page, i can echo the variable out at the … | |
Hi.. I am using downloaded code from google it create frame when we upload image. i am modified that code .. I want like when uploaded new image 1> previous image is deleted or new image is overload on previous image in Same frame but problem is when new image … Web Development image javascript | |
Hi there, So I thought this would be simple and it should be but I can't see what is wrong. Basically I am checking what language has been selected (via a code stored in a constant LANG_CODE) and then loading in a specific swf file. Except that the language code … | |
[code] if (window.print) { document.write('<form>Click Here To ' + '<input type=button name=print value="Print" ' + 'onClick="javascript:window.print()"> This Page!</form>'); } [/code] using this code the whole page is printed can I limit the paper size? also can I remove the print header and footer? Thanks in advance. Web Development javascript | |
wen i try to connect jsp with access i found error showin "no data found" ..how can correct it ? also data is not inserted in my database..my codin is below.. [code=JSP]<% Connection con = null; Statement stmt = null; ResultSet rs = null; String quer = "insert into db … Web Development java-jsp | |
I am creating a login page , where when user enters his username and password the the request is sent to the servlets first and then validation is done in a javabean . If validation results true then user is forworded to another page otherwise he remains on the same … Web Development java java-jsp web-server | |
Hello I'm making a wabsite with a gridview(so far..) but,when i try to fill with a dataset ...nothing ,i can't see no data and my dataset is never empty ,it contains data .I ran some debugs and the dataset reads correctly from the sql server database here's the code [CODE] … | |
Ok... I have another problem. I have tryed to split the resultts of my query in to multiple pages with a fixed number of results per page... I used this tutorial for it: [url]http://www.php-mysql-tutorial.com/php-mysql-paging.php[/url] Originally, my page worked as follows: There was a search frame where the user would select … Web Development php | |
i have a jsp it has two fileds..mobileno and password..when i enterd values its storing in DB.But when iam retriving its retriving and comparing only with newly inserted values only.. it is comparing only last inserted values in Db only ..here is my code.. [code=jsp]package com; import java.io.*; import java.util.*; … Web Development java-jsp | |
i am developing a job site and i require to search for records from the database. i m passing value fro that parameter in textbox. so please help me thanks in advance | |
Hello, I am supposed to write a program that prompts user to enter the numbers separated by space and when user click "ok" button, it should display the numbers entered with its mean, and standard deviation and the window should ask if user wants to enter numbers again if yes … Web Development javascript xml | |
/ I'm using Microsoft Visual Web Developer 2008 to make a website and I have an access data source on the page linked to a table with a bunch of cities listed. There is a Grid View on the page linked to the data source. Also on the page I … Web Development asp.net microsoft-access | |
Hello to all who read this thread, I am currently developing a PHP web application (alone) which has gotten to a point where I alone cannot do developing on it anymore. I plan on hiring people to develop for me. My problem is I do not want to give away … Web Development php | |
Hi, Can anybody please help me in writing this very simple script: This script will allow visitors on my site to order my services. The price will depend on the following factors: a) Number of pages b) Delivery time in days c) Format of the delivered files. After they select … Web Development php | |
I have a php page listing all info entered into mysql. One of the fields is an email address, I would like the address to be mailto: All I could think of is [code] <a href= "mailto:?id=<?php echo $row_rsBday['id']; ?>"<?php echo $row_rsBday['email']; ?> </a></p> [/code] No luck with that Any … Web Development php | |
Hi, I'm looking for the equivalent in C# of this function: strip_tags(). I want to use it to validate some input and avoid SQL injection. Any ideas? Thanks in advance. | |
i need help in php [code=php]<?php $num=2; ?> <a href="action.php?id='.$num.'">Text to be displayed</a>[/code] Here i m not getting $num value when i print echo $_GET['id']; Web Development php | |
[B][U]Question:[/U][/B] How to replace %20 characters in URL with a dash (-) when the information is coming from a MySQL db? Code:[B][COLOR="Red"] href='details.php?listid=$record[listingid]&title=$record[title][/COLOR][/B] It currently reads: [B][COLOR="Green"]http://www.mysite.com/details.php?listid=800&title=970%20South%20Bald%20Head%20Wynd[/COLOR][/B] It should read: [COLOR="green"][B][url]http://www.mysite.com/details.php?listid=800&title=970-South-Bald-Head-Wynd[/url][/B][/COLOR] I want to keep the title words for SEO purpose unless you think it is useless?? Thank you - … | |
How we can authenticate the users without using username and password,i.e anybody can view the page by just entering name,emp id and date and on submitting redirect to the url Web Development java-jsp | |
hai friends ,, in monster/naukri we have a search button is there.using that we can search the record from there. in my project also we have a registration form . if we wants any customer details just we enters the customer id or name that customer details can retrieved. i … Web Development asp.net | |
Q: Create a JSP based page wherein by clicking the add button the user details should be added to the database and clicking the delete button should delete the particular user details from the database. I am new to JSP so dont have much idea how to proceed? Do we … Web Development java-jsp | |
Hi Folks I am trying to make a php form processing script. The form would have a large text area in it where the visitors could type a few paragraphs of text. I want this script to break the text from the form after 75 characters or if that is … Web Development php | |
I need to add an array to the end of another array. I understand how to do this using the concat, join, and push methods. However, I need to do this using a loop (I am pretty sure a 'for' loop is the right choice), however, I can not figure … Web Development javascript | |
Hi guys (and girls), My friend is considering starting an eCommerce website. He already has a website through which he sells products, but it is almost manually maintained (static HTML) and he has a hard time catching up with all the updates, as his sales have been increasing ever since. … Web Development ecommerce | |
hi all i have my lougout.php which destroys sessions and session ids on logout. I want to have same effect means i want to call this logout.php script when the user closes the "browser tab". as these are the days of "browser tabs" so this is very important for me. … Web Development javascript session | |
Hi I'm getting the following exception from accessDa.Update(ds.Tables(0)) [B]No value given for one or more required parameters[/B] In the following code[COLOR="Red"] (marked in red)[/COLOR]. [code] Protected Sub DataTableCurrMonthForWorker(ByVal ccMifal, ByVal ccWorkerID, ByVal theYear, ByVal theMonth) Dim totInsert As Integer Dim currDay As Integer = 1 Dim theDate As Date Dim … | |
Hi, I was just wondering if anybody new of a way to store an encrypted file to an sql server database through a stored procedure. I have managed to encrypt a file selected from a FileUpload control but at the minute the encrypted file and the key are created and … Web Development asp.net file-system | |
I want to know requirement for sending mails in asp.net plz guide Me | |
Hi My Uni assignment is to develop a flight Reservation using ASP and Ms Access database. I have started it and got stack with how to code a select from displayed flights using Radio button. I would much appreciate and suggestions: [code=asp]<table border="1"> <thead><h2><%=(rsOutBound.Fields.Item("deptCity").Value)%> To <%=(rsOutBound.Fields.Item("arrCity").Value)%></h2></thead> <tr> <% While ((Repeat1__numRows … Web Development asp | |
Hi i created one jsp form with 2 fields..now in the first servlet i want check whether those 2 fields values are presented in the Database or not..if not then i want move those values to another servlet .. how can i do this?how to get the values (parameter values … Web Development java-jsp | |
My problem is that I have a PHP application that needs to (in Windowsese) multi-task. I am relatively new to PHP and equally new to Linux. I need to know how to pass information from a parent process to a child process and vice versa. If somebody could please provide … Web Development php | |
Hi, I have an ASP.NET web app and Iam trying to show my clients a message to save data before saving when they click on the submit button which is working fine. But the problem is I only want to show the Message when there is an actuall change in … Web Development asp asp.net web-server | |
hi there, i have a problem resetting my form with javascript. I have a registration form that when submitted, the action is performed in an iframe so that the browser does not have to load another page. After form validation, i want the php script in the iframe to clear … Web Development javascript | |
Hi Guys, I am new here in this community. I still did some stuff with JSP, but now I have a principle questions. Would be nice to receive some feedback... I wanna build up a website with several JSP pages. But I don't want to place all the content into … | |
What I am trying to do is preload images on my website and delay my javascript slide-show until the images are completely done loading. Right now the slide-show starts while the images are still loading, making it kind of awkward. I am using this to preload my images but it … Web Development javascript | |
hi guys. i am writing a class for registering data and i am having a problem calling functions and vars from other classes. here's a class diagram of where everything is called- [IMG]http://img376.imageshack.us/img376/19/classesdm8.png[/IMG] i am in forms, and i am having difficulty getting vars from site, using my functions in … Web Development php | |
I am using the following PHP redirect script for a non-profit website, but because the blocked IP list keeps getting longer and longer, I want to pull the IP information from a simple mysql database that lists only IP addresses that have been blocked. I have tried several different combinations … | |
<?php $query_getf = "select ci.tb_ci_id, concat(ci.tb_ci_fname, ' ', ci.tb_ci_lname),ci.tb_ci_city, ct.tb_ct_desc, md5(ci.tb_ci_id), s.tb_s_name_full, case ci.tb_ci_addr_2 when '' then ci.tb_ci_addr_1 else concat(ci.tb_ci_addr_1, ', ', ci.tb_ci_addr_2) end, ci.tb_ci_phone_1, ci.tb_ci_phone_2, ci.tb_ci_fax, ci.tb_ci_email FROM tb_contact_info ci, tb_contact_type ct, tb_states s WHERE md5(ci.tb_p_id)='".$fd_p_d['md5_id']."' AND ci.tb_ct_id=ct.tb_ct_id AND ci.tb_s_id=s.tb_s_id ORDER BY ct.tb_ct_desc, ci.tb_ci_date_added"; //print $query_getf; $sth_getf = mysql_query($query_getf); … ![]() | |
Dear folk , I'm work with PHP speedy Plugin which makes my webpage loads 500% faster [url]http://aciddrop.com/php-speedy/[/url] , the configuration of the php speedy is ok , but when I add <?php require('C:/wamp/www//php_speedy/php_speedy.php'); ?> af the top of the page and then <?php $compressor->finish(); ?> at the bottom of the … Web Development php | |
Dear folk , consider I define a constant value [code=php]<?php /*--------values.inc.php ------------*/ define("Data","MyValue") ?>[/code] so right now I want to change the Value of Data from another page and I wold like that to be saved on Values.inc.php file , you know I'm thinking some kind of data Store ,instead … Web Development php | |
Hi, Thanks for checking this out. The error is that when I use ob_start to store the results of an include file my fwrite statement later on in the code works but only writes a blank file, whereas when the ob_start is not present the fwrite function writes the file … Web Development php | |
[code] <html> <head> <script language=javascript> function updateopen() { var c_value = ""; var cb = document.getres.checkbox; for (var i=0; i < cb.length ; i++) { if (document.getres.checkbox[i].checked) { c_value = c_value + document.getres.checkbox[i].value + "\n"; } } alert(c_value); //window.opener.document.getElementbyId(numbe33).value = c_value //window.close(); } </script> </head> <body> <? echo '<form name="getres" … Web Development javascript | |
Upon applying for a job, I was given a "tester". One of the questions was what does the php function ?header? do. I have not seen this syntax nor has it come up on any google search I've attempted. Could someone here please educate me on this item? Thanks Web Development php | |
I was just wondering if there was any easy way to convert a document.writeln output to display inside a textarea box in a form. I recently had done an airline reservation assignment (enter 1 for first class, enter 2 for economy class) assignment with all output just written to a … Web Development javascript | |
Is it possible to get the value of a non-standard attribute in firefox? I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined. [CODE=html] <html> <head><title></title></head> <body> <form id="form" name="form"> <input type="text" … Web Development javascript | |
hey there im hoping that someone can help me in solving this problem i keep on getting this error when i try to connect from register.html to register.php. Here is my code! [code=php]<?php //Database Information $dbhost = "localhost"; $dbname = "musicwebsite"; $dbuser = "root"; $dbpass = "xxxx"; //Connect to database … Web Development php | |
Hi all! I am totally stumped and am hoping someone can help me. I have some data in a database that I will be using to create checkboxes. However, since different data will be pulled out depending on what the user chooses, I want to be able to create the … Web Development php | |
hello everybody, i want to pass directory name as a variable in include function like this, [ICODE] $page = 'test'; include('$page/test.php'); [/ICODE] i know this a wrong way, but i don't know how to do it. please anybody help in this regard. Thank in advance.... Web Development php |
The End.