52,566 Archived Topics
Remove Filter ![]() | |
Hi Friends I have pasted the code below which i was used in my project. But i am getting mysql_fetch_array() error. For your more information i have attached the screen shot of the error Pls give me solution [CODE]<?php // Inialize session session_start(); include("../config.php"); // Check, if username session is … | |
i have a logs table which have the following fields like username , id , checkintime, checkOuttime and date so i want to select a start date and end date from the calender and then click submit button so it can search data from data base and display data start … Web Development asp asp.net open-source | |
I built a file upload control in Silverlight that uploads files to the web server. I use a custom HTTP Handler to handle the upload. What would be the best practice to detect a whether a client has disconnected prior to finishing the upload? I think this could go under … Web Development asp.net client-server web-server | |
I want to show some description of my blog post at home page and a read more link when user will click that link it will redirect to post detail page. I am using the_content('Read More...') function. Now how can i give character limit that how many character i want … Web Development first-post php wordpress | |
Is there any way to list *.css from directories/subdirectories recursively? I want to make a css selector... The following script lists nonrecursively... But i need a recursive list... themeselect.php : [CODE] <?php if (ini_get('display_errors')) { ini_set('display_errors', 1); } date_default_timezone_set('UTC'); if ($_POST['currentcss']){ setcookie('currentcss', $_POST['currentcss']); } require_once('getcss.php'); function right($value, $count){ return substr($value, … Web Development php | |
Hi frnds .... I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button ..... 1. Name 2. email 3. SecurityCode ( here user have to enter the captcha code ) I am collecting all … Web Development php | |
In many job vacancies about software engineers,i have seen programming with PHP is a qualification.But as i know PHP is a server side scripting language.Therefore i want to know why they are looking about PHP as other programming languages like c,c++,java & etc.Please explain me...... Web Development php | |
Could anyone help me with a script I've written. As part of an assignment I have to write checksums to validate various numbers (VISA,Euro Bank Notes) and if I got this going I could modify to validate the other requirements but can't see what I've done wrong.....I should add that … Web Development javascript | |
Hey guys, I'm new to JSP and I want to make an order form with a dropdown list allowing the user to pick which product he/she wants to buy. And the products would come from the database i made. How can i retrieve the data from the database and place … Web Development java-jsp | |
Good day guys, anyone here who knows how to easily access image pointers stored in a database in JSP?... here's my code =) ... it already works in retrieving data other than the image... my database contains petid, petname,birthdate,image,petprice.... [CODE] <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> <sql:setDataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/store" user="root"/> … Web Development image java-jsp microsoft-access | |
I am developing an application where I am uploading a file and then it is uploaded to a temporary folder and I see the preview of that image through an ajax call without refreshing the current page.Then after clicking "Save" it saves the file to original directory. The file I … Web Development file-system image javascript php | |
i was jus trying to crete a form and if i submit the form the values should be displayed in the browser. code is: [U] html file- [CODE] [/U]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="firstjsp.jsp" method="get"> … | |
Hello, I have two Javascript functions to set and retrieve a cookie: [code] function setCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function getCookie(name) { var nameEQ = name + "="; … Web Development javascript | |
I am confused about &reference operator. here i dont understand the call_user_array_func() and referense operator why used here? but can you explain it on my code original source is [URL="http://net.tutsplus.com/tutorials/php/the-problem-with-phps-prepared-statements/"]http://net.tutsplus.com/tutorials/ph...ed-statements/[/URL] i tested it. i want to know what happens there i know this & reference operator but for what reason … Web Development php | |
I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time … | |
Hi All I have written JSP to read a text file(Text file and JSP are in same location) and display the data. when I am trying to run the JSP it is displaying "Error:Null". here is my code [code] <% try{ java.net.URL url =config.getServletContext().getResource("/textfile.txt");BufferedReader buffreader =new BufferedReader(new InputStreamReader(url.openStream())); String strLine; … Web Development java-jsp | |
Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal … Web Development php | |
Hi, I have created a jax-ws web service. It runs fine in my development environment. When deploying to linux server machine, jdk1.6.0_10, tomcat 5.5.23, I get the following errors: Cause of error is failed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found /********************************************************* com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context … | |
Below is part of code !!! i am new to jsp !!! it is giving error at variable temp1... help me out [CODE] try { Class.forName("com.mysql.jdbc.Driver").newInstance(); String url="jdbc:mysql://localhost/ecops"; Connection con = DriverManager.getConnection(url,"root",""); java.sql.Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("Select max(cid) from citizen_info"); while(rs.next()){ int temp1=rs.getInt("max(cid)"); break; } temp1=temp1++; stmt.executeUpdate("insert into citizen_info … Web Development java-jsp | |
Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. … Web Development javascript php session | |
hey guys, I have a site where users can upload photos, what i want is when they upload photos, then automatically, my site name should be labeled on image so that when some one download that image a watermark of "mysite.com" is printed on that image. any idea how to … | |
Hello, I was wondering if anyone could help me. At the moment, I have some quizzes on a site which store the result in to a database. there are 6 quizzes in total and the the fields in the database are. Quizresult1, Quizresult2 Quizresult3 Quizresult4 Quizresult5 ,Quizresult6. What I would … Web Development php | |
Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I … | |
I have a problem with the val function it is unable to get the value of a field once I have type text into it, this only occurs when the form is in a jQuery popup box that has a form. According to my inspector, it says that the element … Web Development api javascript javascript-jquery | |
hi all ! I am trying to submit a form using javascript but form is not being submitted. Following are the code : [CODE] <html> <head> <script language="javascript"> /***********************Email Validation **************************************/ function echeck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return … Web Development html-css javascript oracle session | |
Hi, I am fetching data from the database.but I want to fetch it in proper format on PHP page. Suppose i insert some data like. 1)chair 2)bed 3)sofa n when i fetch it comes like that 1)chair2)bed3)sofa But i want to do in proper format. 1)chair 2)bed 3)sofa Need suggestion? | |
[code] <%@Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EducationInfo.aspx.cs" Inherits="EducationInfo" Title="Qualification"%> <%@Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1"%> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script language="javascript"> function Delete() { return confirm("Are You Sure You Want To Delete This Record?"); } </script> <aja:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <table cellpadding="0" cellspacing="0"> <tr> <td> <table cellpadding="0" cellspacing="0"> <tr> <td> <asp:ValidationSummary ID="VSError" runat="server" … Web Development asp.net assembly file-system | |
I am reading from a file, upon certain condition I want to insert rows into a Excel file. This is to be done on a regular basis. The current will be replaced with old one. Web Development php | |
I have a dropdownlist which gets the data from a database table(emptyseats). I select an item (seat) from this dropdownlist and save it in a different table (occupiedseats).After this i want to delete the seat from the first table (emptyseats) to show that it is now occupied. My problem is … Web Development asp.net | |
I am workin on eclipse Helios Service Release 2, serser Tomcat 7. When i try to reach test.jst i get error 404, type Status report message /bandymas/view/test.jsp description The requested resource (/bandymas/view/test.jsp) is not available. it is strange becouse i can reach error.jsp in the same directory, using the same … | |
Hey guys, I have a simple problem in javascript that I can't figure out. I am adding a feedburner url into an html page, but need to make it so you can increase the amount of posts you want to see. Ex. The default amount of posts on the page … Web Development javascript | |
hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. … Web Development php | |
I am getting a error of: Parse error: syntax error, unexpected T_STRING in /home/mprhode/public_html/lightbulb.php on line 1 I can't seem to find out the problem. Please direct me? [CODE]<?xml version = "1.0" encoding = "utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title> … | |
Ok i have been working on this for a few days. I am having a hard time on this one. I am still new to the javascript/DHTML. I am suppose to use the fish images to create a fish tank on a Web page.The fish should swim across the screen … Web Development html-css javascript | |
how can i change the color and the font type to bold when the checkbox is oncheck? [CODE]<script type="text/javascript" language="javascript"> function colorBlack(e2) { var radgroup = document.getElementsByName(e2.name); for (var r=0; radgroup[r]; ++r) radgroup[r].parentNode.style.color = radgroup[r].checked ? 'black' : 'red'; } </script>[/CODE] this is the code to change the color but … Web Development javascript | |
Hi there, I have been told I need to use escape() and unescape() to fix some issues I am having with my Javascript in IE7. I've been fiddling with it for two days now and can't seem to get it working correctly. It would be amazing if someone on here … Web Development app-store javascript social-media | |
![]() | In the javaScript function below, is there anything I can add to the window.open so that the parameters passed in the URL do NOT show in the window that is opened? It is okay if the script path shows, I just need to hide the parameters. If that is not … Web Development javascript session |
Hi , My XML contains a node (I have given it below) which contains an xml text that is '[B]Please complete the &quot;Enquiry Type" field[/B]' , as given below. And I am using a coldfusion function XMLSearch to search for an XML document Object. And I am using an XPath … Web Development coldfusion xml | |
[CODE]<div style="margin:0px 0px 0px 0px;" class="grid_16 example" align="center"> <asp:DataList ID="DataList1" runat="server" BorderStyle="Groove" CellPadding="5" CellSpacing="5" RepeatColumns="3" RepeatDirection="Horizontal"> <ItemTemplate> <ul> <li> <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200"> <param name="movie" value="vplayer/player.swf" /> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <%--<param name="flashvars" value="file=<%# Eval("vurl","video/swf/{0}") %>&image=<%# Eval("vpurl","video/thumb/{0}") %>" /> --%> <embed type="application/x-shockwave-flash" id="player2" name="player2" … | |
Hi all, I want to automate the work of uploading excel datas to databases using PHP. I am familiar with working on csv files and databases. But I want the XLS file which i am uploading , to be converted to CSV file using PHP before the process begins. PLEASE … Web Development php | |
hi, i am not a coder and trying to make this work [CODE]var body = 'Reading Connect JS documentation'; FB.api('/me/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } });[/CODE] to make it work above code … | |
hi All, does anyone knows what does mean [CODE]define('INCLUDE_CHECK',true);[/CODE] below is full script [CODE]define('INCLUDE_CHECK',true); require 'connect.php'; require 'functions.php'; // Those two files can be included only if INCLUDE_CHECK is defined session_name('tzLogin'); // Starting the session session_set_cookie_params(2*7*24*60*60); // Making the cookie live for 2 weeks session_start(); if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe']) … | |
[B]:confused:[/B] what will be the code for log-in using PHP code in server and client website.... pls... reply immediately......... Web Development client-server php | |
HI, I am trying to xmlhttp object using ajax. In my first request I am getting the desired result. On the readystatechange I called a function whic process the response of the first request. According to the response of my first request, I fired the second httprequest. But the second … Web Development javascript | |
I am trying to write code for a guestbook on my website that takes the input from a input text field and a textarea, writes the information to a .txt file and then displays the contents of the .txt file on the screen. This is the code I have so … Web Development php | |
Hello , I'm trying to split a string using preg_split() ( since split ) is deprected... I'm trying to split it using '=' sign and to get the GETS variable from a url but I'm getting the error : "Warning: preg_split() [function.preg-split]: No ending delimiter '=' found in C:" The … Web Development php | |
Anyone Please Help me In Coding Of FBML ... ( FACEBOOK MAKUP LANGUAGE ) .. CAN ANYONE GIVE ME A LINK TO A TUTORIAL THAT HAS CHAPTERS FROM BEGINERS TO DEVELOPERS AS I AM NEW TO THE WORLD OF FBML CODING...... Web Development php | |
![]() | At the moment i have dynamic list which displays the latest products added to the inventory list. I want to display birthday cards from the category. In my database i have the column 'category', and in a form you can select different options with values one being birthday. This is … ![]() |
I have a page at the following URL: [url]http://www.streetkids.org/ways_to_donate/make_donation2.php[/url] which is a basic donation page. The two page sections you see on the page "One Time Gift" or "Monthly Subscription" are normally hidden via a document.write via a body onload. Generally, all of this functions well. But, I want to … Web Development javascript javascript-jquery php |
The End.