52,566 Archived Topics
Remove Filter ![]() | |
I found an online tutorial at this website how to create an online calendar [url]http://davidwalsh.name/php-calendar[/url] [url]http://davidwalsh.name/php-calendar-controls[/url] In comments to the website several people showed how to highlight the current day it worked for them how some but does not for me I tried the following codings Code 1: [CODE=php] //Change … Web Development php | |
Have 2 issues. Firstly i have a text link which gives me a URL i want but this will not work correctly because it gives me my webpage URL first followed by the URL i want, ie [url]www.wheels4rent.net/www.thrifty.co.uk/cgi-bin....etc[/url]. I need the [url]www.wheels4rent.net[/url] removed. Secondly the 'book now' link i want … Web Development php ![]() | |
Hi, I'm trying to populate an asp:menu from a database on my master page and keep getting the error: Object reference not set to an instance of an object Here's my code on the master page: [CODE] <asp:Label runat="server" ID="errLabel" /> <asp:Menu ID="Categories" runat="server" CssClass="menu" EnableViewState="false" Orientation="Vertical" DataSourceID="categoryListSrc"></asp:Menu> <asp:XmlDataSource ID="categoryListSrc" … | |
im having the same issue with the above "You have an error in your SQL syntax; check the manual that corresponds to your MySQL...line 1"..help! myform2.php [CODE]<? ob_start(); ?> session_start(); <?php $labels = array ( "comment" => "comment", "condition" => "condition", "cartype" => "cartype"); ?> <?php if($_POST['Submit'] == "Submit") { … ![]() | |
Hi guys, i'm trying to test my asp.net app. it works fine when in visual studio 2010 ide, connecting to Mysql database and running. but, when testing in IIS the published app get the message exception "no database selected". it's everything running local, windows xp, mysql 5.x, IIS 5.1 my … Web Development asp asp.net ide mysql open-source visual-studio | |
I have 6 textboxes in a page and i wish to loop from "textbo1" to "textbox6" and i used this code : for i=1 to i=6 dim t as new textbox t=me.findcontrol("textbox" & i) msgbox (t.text) next i get this error on the "MSGBOX (T.TEXT)" line saying "Object reference not … Web Development asp.net | |
![]() | Hi, I have url links in an Access Database which open different info screens depending on the record. I want to include some code in the html which isn't blocked by browsers, but restricts the html code to an initial window of approx 800x600, but can be resized, but importantly … Web Development html-css javascript |
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.util.ArrayList.RangeCheck(Unknown Source) java.util.ArrayList.get(Unknown Source) com.mhub.ocs.dataaccess.MhubuserDAO.findByProperty(MhubuserDAO.java:106) com.mhub.ocs.dataaccess.MhubuserDAO.findByUsername(MhubuserDAO.java:125) com.mhub.ocs.aas.DelegateLoginAuthenticator.authenticate(DelegateLoginAuthenticator.java:25) … | |
Good day y'all.. I was never introduced properly to PHP so I come here a lot to seek for help. xd anyways, I have a problem at the moment.. I can't set my enum values properly.. This is how it was added to a table named "joke": [CODE]ALTER TABLE joke … Web Development php | |
Hi, I have the following peice of code which pulls data from a database: [code=php]$rsfeed = mysql_query("select Title from Abstracts where (ID = '12')); $thearray = mysql_fetch_row($rsfeed);[/code] I can print the title using: [icode]print $thearray[0];[/icode] but theactual resultset is more then 1 row, and what i need to do is … Web Development php | |
Hi, I have been trying to get my way round the DOJO charting using the declarative (html) method. 1. I have a ItemFileReadStore for the data source 2. I know the data store has data as I am outputting it to a grid as well. The only thing that appears … Web Development javascript | |
Hi guys, I have a script that displays a list of tasks a user has to complete. To complete the task they must check the radio button and enter text into the textarea named eidtext. Here is the form: [CODE] <form id="form151" name="form151" method="post" action="update/update-sales-taks.php?&user_id2=<?php echo $user_id2; ?>&user_id=<?php echo $user_id; … | |
Hello Daniweb, I'm trying to validate form fields with php via jQuery and everything is working great, except for one thing I can't figure out. I'll try my best to explain. Here's the jQuery: [code] $(document).ready(function(){ $("form#reservation").submit(function(event){ event.preventDefault(); // Prevent default submission of form }); $("input#continueReservation").click(function(event){ event.preventDefault(); // Prevent default … Web Development html-css javascript javascript-jquery php | |
Hi, I am trying to modify these codes to where I can use my PHP /MySql Database. I have an event section in the database that list the month year and day of the event as well as the title of event and description. As of now I have all … Web Development php | |
Hi php developers, I m new to php and would like to ask anything wrong with below script? [CODE] $year = (date('Y', time()) - date('Y', $model->DOB)); [/CODE] I m getting error as title shown.any one know the problem? Web Development php | |
I am trying to learn how to get a very simple php file to work on powweb, and I keep getting error messages. I have tried to follow the php scripting page directions on powweb, but I am not sure if I have done it correctly. Is there something else … Web Development php ![]() | |
hello I am making a login/register system for my website so far for the register php code i have: [CODE] <?php include ("config.php"); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $username = $_POST[username]; $password = $_POST[password]; $email = … | |
I have the following codes: [CODE] $confirmation = ($result)? "Data telah terhapus.":"Gagal menghapus data."; }elseif ($_REQUEST['mode'] == 'edit'){ $result = mysql_query("SELECT * FROM kategori_berita WHERE id=".$_REQUEST['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id = $data['id']; $kategori = $data['kategori']; } } ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:25px;"> <div class="pageTitle">Category Manager</div> <?php echo $confirmation; … Web Development php | |
[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; print "Done"; function fnCheckSession(){ if (Session["LoggedIn"] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] I have the following error appears: Parse error: … | |
[B]hi , i got an error.pls help me to correct. my code is[/B] [CODE] <form action="return.php" method="post"> <table width="200" border="0"> <tr> <td><h3 align="center">RETURN</h3></td> </tr> </table> <p align="center"> </p> <table width="41%" height="254" border="0"> <tbody> <tr> <td width="34%">Author:</td> <td width="66%"><p> <input type="text" name="author1" /> </p></td> </tr> <tr> <td>Title:</td> <td><p> <input type="text" name="title1" /> … | |
hi..i've searched google for this and yeah..google give me what i expected.. but it is possible to capture a screenshot from webcam and passing it to php and then saving it to database.. picture --> javascript --> php --> database or picture --> javascript --> database (well i dont know … Web Development javascript webcam | |
index.php [CODE] <form action="proseslogin.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br /> user : <input type="text" name="username" id="username" /> <label>password: </label> <input type="text" name="password" id="password" /> <label> <input type="submit" name="Login" id="Login" value="Login" /> </label> </form> [/CODE] proseslogin.php [CODE] <?php //function function periksa ($username, $password){ if (($username=="user") and ($password=="123456")){ return true; }else{ … Web Development php | |
hi can any one tell me how to call webservice through json query here is my code. i want pass two variable and i want to get the result of that methos say Add methos of following service. for webservice [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using … | |
Hello. I am looking for someone with spare time to write a PHP app for me. I am just starting to learn PHP but something like this app is too advanced for me right now and I need it asap. Also, having it will go a long way to advance … | |
hi everyone, i never worked with php or any script language before i am more of a java, c++, C programmer, but for a school project i need to program a character converter in php, i have some problem recieving response from my php file. can someone help me this … Web Development javascript php | |
Hi, First of all I'm not sure that this is the right place, so if it isn't please feel free to let me know, and/or move the thread... I have Windows 7 with WAMP installed, and I obviously view my stuff by going to [url]http://localhost[/url] (or [url]http://172.0.0.1[/url] which is essentially … Web Development php windows-xp | |
Good Afternoon, I'm having an issue. I know how to read the API documentation, but I can't find what other attributes I can add to the array. I need to import UPC and the var_dump shows a 'upc' field, but Its not working. Here is my question. How do I … | |
I am sorry but I am just starting and I suck. I've been spending the last hour on the site trying to use others' threads and the FAQ to fix this but I simply have not been able to do so. This is real simple. All my code is.. [CODE] … | |
I'm trying to create a program and found this website that was exactly what I wanted. When I followed all the instructions I got this java code which makes no sense and also gives errors when I try to assign a class. Please help. [url]http://labs.unwieldy.net/moocirclepack/[/url] [code] <script type="text/javascript" src="js/mootools-1.2-core-nc.js"> </script> … Web Development javascript | |
hello all, i am using asp.net and while designing my page i want to call another aspx page in my current page.....i.e. in my current page (ex. p1.aspx) ,i want to add a header let it be header.aspx. how can i call that header page in p1.aspx???? actually i want … Web Development asp.net | |
i m getting this Notice this following code.. please help me why this error is comming... [code] $dataArr[$m]['longitude']= @$pageListArray['longitude']['value']; $dataArr[$m]['lattitude']= @$pageListArray['lattitude']['value']; $dataArr[$m]['hospitalType']= @$pageListArray['hospitalType']['value']; foreach ($dataArr as $key => $row) { $order_in_category[$key] = $row[0];//[0] is $order_in_category } [/code] thanks in advance.. i hope i got solution here. Web Development php | |
[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; $_SESSION['LoggedIn']='user'; print "Done"; function fnCheckSession(){ if ($_Session['LoggedIn'] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] The following errors appears: Done Notice: Undefined … | |
Hi, Can you tell me what is the regular expression for a comma-separated list (in this case - IPs) ? My list looks like this: [CODE] 192.168.0.1, 10.%.23.100, %.46.%.1 [/CODE] So far I managed to create this: [CODE] ^[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}$ [/CODE] But I don't know how to specify a comma-separated list … Web Development javascript | |
I have the following code which works fine until I try and display graphics. Please tell me how I could/should display the odometer in graphics format rather than text. I have all the necessary images as .png(0 through 9) in the same folder as the following code. It is just … Web Development javascript | |
The application has the first window named chatroom.asp . Here a person will give a room name and enter that room for chat. All those who want to chat have to enter the same room. When a chat room is submitted by a user, the room name is passed to … Web Development asp user-interface | |
Hello Everyone, Thanks for taking your time to look at my post. I am having a problem with my PHP file which is giving me the following error whenever a header("Location: ") is used and the set_cookie function: Warning: Cannot modify header information and it always says the output was … Web Development php | |
![]() | Hello Developers, i have a link structure like this on my website... [CODE]index.php - homepage index.php?section= - other pages[/CODE] here is a piece of code that i wrote to change the colour of the active link... [CODE] $(function(){ var path = location.pathname.substring(1); if ( path ) $('#nav ul#navigation li a[href$="' … Web Development javascript ![]() |
hi.. i used this code to display a clock. [CODE]<script type="text/javascript"> var int=self.setInterval("clock()",1000); function clock() { var d=new Date(); var t=d.toLocaleTimeString(); document.getElementById("apDiv1").innerHTML=t; } </script>[/CODE] in firefox it displays like this 7:25:00 PM and in Chrome 19:25:39 i want to show a similar clock as in firefox in Chrome. How can … Web Development javascript perl web-browser | |
Hello there, Is there anyway i can open a ppt in web browser or may i can do things like slideshare does to view documents like ( ppt, doc ...etc ) any logic will help ! Web Development asp.net web-browser | |
hello there, i'm having a bit of trouble about this. im making a regiter page for our project and im using PHP, and im having a little problem, it says that: Could not execute the insert query.. but i got all my fields right?.. [ICODE]<?php include("config.php"); if(isset($_POST['submit'])) { $fname = … ![]() | |
I am starting a new project and the certain requirements will be: JSF, JPA, JMS, WebServices Rest and EJB3.1. There will be at least 4 servers. Probably this will be the division: first server for backing beans and JSF. Other two servers for EJB cluster and the last server for … | |
Hi, I am using eclipse: 3.4.1 and tomcat 5.5.25. I run the application on tomcat server created inside eclipse. Until 3 days back I could sunccessfully use tomcat server inside eclipse but now I get following message 'Starting Tomcat v5.5 server at localhost' has encountered a problem Server Tomcat v5.5 … Web Development java-jsp | |
Downloaded autocomplete plugin. its not bring out results am using an access db. When I type in text it does the search but with no proposed results display in the drop down. Is there something missing? [CODE] <cfsetting enablecfoutputonly="true"> <cfparam name="q" default="" /> <cfquery name="qryGetCountry" datasource="dbtest"> SELECT DISTINCT Cities.RegionCity FROM … Web Development coldfusion html-css javascript-jquery | |
Hello, I am trying to redirect “http” to “https”. I successfully followed the steps to create SSL Certificate as per this website: [url]http://robsnotebook.com/xampp-ssl-encrypt-passwords[/url] However, it seems that it didn’t work. I am still getting the following error messages: For IE browser: There is a problem with this website's security certificate. … Web Development php web-browser | |
hello I have to read Connection String that we usually defined in web config n reading through Configuration manager but I have to access that connection string in class library which I defined in separate project as making my project with 3 tier architecture but ConfigrationManager is not recognized in … Web Development asp.net | |
[CODE] session_start(); // undefined index: login if (!isset($_SESSION['login'])){ echo "Anda tidak berhak mengakses halaman ini."; exit(); } //Fungsi baca data dari database [/CODE] Hi, Whenever I press eventmanager, the following error appears: "Anda tidak berhak mengakses halaman ini." What codes should I write so that I could pass the echo? … | |
[code] <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#btnclick").click(function(){ $("#para").hide("slow"); $("#btnclick").click(function(){ $("#para").show("slow"); }); }); }); </script> <body> <form id="form1" runat="server"> <div id="para"> <p>The form contains a button to place the final order. In this example, pressing the button returns a simple JavaScript alert(), depending on the contents of the order. In … Web Development asp asp.net client-server javascript-jquery | |
Hi. I'm trying to make a script which submits the form without refreshing the page. Also, I'd like to have it submit onkeyup. I can't figure out how to do that. Can anyone help me? My code is [CODE] <script type="text/javascript"> $(document).ready(function(){ var $form = $( '#myform' ), url = … Web Development javascript | |
I can not for the life of me get an ajax example/tutorial to work. I have tried dozens including prototype library and JQuery. Here is my latest attempt: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Easy</title> <script type="text/javascript"> function getXMLHTTP() { … Web Development javascript javascript-jquery | |
Hi! I've been reading this for hours and I can't find the error. Obviously I'm brand new at reading codes so can anyone help me? I think the error is in the following line (under logo config). Thank you so much! // logo config ----------------------------------------------------// [CODE]function simple_logo(){ $src = (get_option('Simple') … Web Development php |
The End.