52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for poloblue

Good Morning, I'm new to javascript and the professor ask us to do a javascript program of future value calculation program. The details are: Write a program to find future value of monthly investments. Start with an initial investment, make a deposit every 30days, calculate interest on principle compounded daily, …

Web Development html-css javascript
Member Avatar for poloblue
0
2K
Member Avatar for sammry

I have one of the php site which I want to close or redirect a particular page from Saturday 9pm to Monday 6am. the page contains a form and when they submit a form it directs to form.php. So what i want to do is if some one access the …

Web Development http-protocol php
Member Avatar for IWDesigns
0
205
Member Avatar for pickett65

I am writing a script that locates stores in a 20 mile radius of a given zip code. That part works fine. I am adding the functionality to also choose a product that those stores carry and display only the stores in a 20 mile radius that sell that product. …

Web Development php
Member Avatar for pickett65
0
164
Member Avatar for Abdel_eid

Hello All, I am a java EE developer and i want to start using asp.net (studying) so where can i start , thanks a lot =)

Web Development asp asp.net
Member Avatar for Netcode
0
137
Member Avatar for hiyatran

I would like to pass an array to a function but how does the program know which array I would like to choose from?? Lets say I have 3 arrays and I would like to pass [b]array C[/b], to my function. I checked the web but they only show if …

Web Development javascript
Member Avatar for Taywin
0
5K
Member Avatar for sammry

I worked on the code based on [url]http://www.daniweb.com/web-development/php/threads/123389[/url] but as per last answer to use the mail function outside loop ( [url]http://www.daniweb.com/web-development/php/threads/123389/708835#post708835[/url]), I still cant work with this script. Please help [CODE] <? $query="SELECT * FROM tbl_users WHERE ex_date between now() and adddate(now(), INTERVAL 7 DAY) ORDER BY user_id ASC"; …

Web Development email php
Member Avatar for sammry
0
244
Member Avatar for bostonselkirk

I'm trying to implement paginaton on the article archive but I can't seem to get [code]$_SERVER['PHP_SELF'][/code] to return the page that I need - I sort of know why but can't seem to solve the problem. The archive page is located at [url]http://localhost/cms/index.php?action=archive[/url] and so when I use PHP_SELF it …

Web Development client-server cms php
Member Avatar for bostonselkirk
0
456
Member Avatar for megachip04

Hello, I am currently allowing users to upload videos via php $_FILES[][] and then converting them using ffmpeg. I am wondering if there is a more efficient way to do this than using php. I have read that ajax might be useful (that's what vimeo uses). Could anyone point me …

Web Development file-system javascript php video
Member Avatar for Delfacto
0
169
Member Avatar for jacksantho

Hi, I need to get a cell values and to print that cell values in another cell using PHPExcel? For Ex: A12:5 . I need this same value "5" to be printed in the cell B12. thanks for your help.

Web Development php
Member Avatar for pritaeas
0
144
Member Avatar for erza26

Hi... i am now making a form for ordering book..the problem is, i want to add new texbox if the user want to make more than one order by clicking add button..and it can save in database..then it can calculate total price for all book that the user order...please help …

Web Development php
Member Avatar for wongspl
0
241
Member Avatar for dangari

I have had a working jsp web applicationg for the last 2 months. All of a sudden, the application was not allowing users to log into it. After monitoring the logs upon a manual restart of glassfish, I saw the log output below: [CODE][#|2011-06-25T15:58:55.376+0300|WARNING|glassfish3.0.1||_ThreadID=26;_ThreadName=Thread-1;|Error sending syslog packet java.net.SocketException: Too many …

Web Development java-jsp
Member Avatar for masijade
0
628
Member Avatar for buzz-lightyear

Hi, I'm a bit of a noob with PHP. I am trying to retrieve information from multiple tables with the following code [CODE] <?php function check_input($id) { // Stripslashes if (get_magic_quotes_gpc()) { $id = stripslashes($id); } // Quote if not a number if (!is_numeric($id)) { $id = "'" . mysql_real_escape_string($id) …

Web Development mysql php
Member Avatar for buzz-lightyear
0
191
Member Avatar for anand01

hi all, I am accessing the database by MVC model now i need to create list box , list options already in database .What should I do should i connect database with jsp directly or any option available. Thanks

Web Development java-jsp
Member Avatar for anand01
0
94
Member Avatar for davy_yg

[CODE] <td>Event</td> <td> <input type="text" name="event" value="<?php echo $event; ?>"/> <input type="hidden" name="id" value="<?php echo $id; ?>"/> </td> </tr> <tr> <td>Tempat</td> <td><input type="text" name="tempat" value="<?php echo $tempat; ?>"/></td> </tr> <tr> <td>Mulai</td> <td> <input type="text" name="mulai" id="mulai" value="<?php echo readDateJs($mulai); ?>" size="8"/> <script type="text/jsdemo" charset="utf-8" class="demojs"> $('#mulai').datepicker({showOn: 'both', showOtherMonths: true, showWeeks: …

Web Development php
Member Avatar for pritaeas
0
87
Member Avatar for davy_yg

[CODE] // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } // cek login session_start(); //undefined index: login if (isset($_SESSION['login'])){ echo "Anda …

Web Development php
Member Avatar for raj2719
0
99
Member Avatar for woopi

How do I deal with quotes here? What i want is /[^a-zA-Z0-9-_.,!()'\/"]/ but how do i deal the quotes? [CODE] $pattern = '/[^a-zA-Z0-9-_.,!()'"\/' . $whatever . ']/'; return preg_replace($pattern, '', $value); [/CODE] Cheers!

Web Development php regex
Member Avatar for woopi
0
1K
Member Avatar for blivori

I have an html page that gets data from 'hs_hr_employee' table and lays the info in a table on a web page. Then I have another table 'rights' which gets info from 4 columns from the 'hs_hr_employee' table and stores them in columns. In addition to those 4, the 'rights' …

Web Development gaming html-css mysql php
Member Avatar for mathieu89
0
184
Member Avatar for Donnovan

hi guys, i'm trying to write an character converter using php and ajax. i'm getting a really anoing error(uncaught TypeError). can someone help me with this.?:?: , i've added screenshot of the error. and this is the xml i'm trying to read generated with php [CODE]<?php $key = $_GET['key']; header('Content-type:text/ …

Web Development javascript php
Member Avatar for Donnovan
0
174
Member Avatar for manish250

Hi All, I am new to web services.I want to know when i am writing the web services client how can i decide whether i have to write it using axis or axis2.I mean how to decide whether to use axis or axis2. Thanks to all in advance........

Web Development xml
Member Avatar for pritaeas
0
153
Member Avatar for raul8

Hello, I'm not able to access jar files from servlet. Although I have imported all the class file and made the jar file available in build path. [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); cmd = request.getParameter("cmd"); System.out.println(cmd); String output = runCommand(cmd); …

Web Development apache java-jsp session
Member Avatar for peter_budo
0
361
Member Avatar for bipies

Hi! I'm simply need to convert a string like: /blablabla/123123 to 123123 it should be easy I'm sure, but I can't get it :(

Web Development php regex
Member Avatar for diafol
0
107
Member Avatar for Midnite007

I am using this gallery script on a site I am working with and for some reason can not seem to get the Back to Menu ( link ) at the bottom of the code to be at the bottom of the page or at least under the images that …

Web Development html-css javascript-jquery php
Member Avatar for diafol
0
143
Member Avatar for Fortinbra

My web application has the ability to process data from word docs and PDF files. We recently had a client who attempted to run files that are of a significantly larger size than anything we tested with. 50MB-500MB PDFs compared to our test files of 1MB-30MB files. If they don't …

Web Development asp.net mssql pdf
Member Avatar for riteshbest
0
119
Member Avatar for karthik_ppts

Hi Frendz, I have two text fields 'from time' and 'to time'. The time format of the two text fields are 11:30 am 01:30 pm. I want to give alert message in javascript when the users enter the to time less than the from time.

Web Development javascript
Member Avatar for karthik_ppts
0
218
Member Avatar for khushhappy

Problem:- I have entered/input in database the date in its default format(Y-m-d). My requirement is to show the date in date-month-year format rather than year-month-date format. well i cannot enter the date again in database as it contains hundreds of record. Picture as attachment.

Web Development php
Member Avatar for urtrivedi
0
86
Member Avatar for mukororokudo

hello guys .. here i go again .. i'm having a problem with my registration form .. my reg. form has 'password' field and 'confirm password' password field .. now i want to compare if the 2 passwords are entered the same but it doesn't seem to work .. its …

Web Development php
Member Avatar for rajesh205
0
111
Member Avatar for shanker31

Hello every1, I want to take two integer value from the user and display the result(sum) as output.. I am using the following JS code : [CODE]function message_comm() { var num1=prompt("Enter the 1st number"); var num2=prompt("Enter the 2nd number"); alert('The sum :'+num1+num2); }[/CODE] The output I am currently obtaining is …

Web Development javascript
Member Avatar for Taywin
0
180
Member Avatar for aecha

Hi all.. Can anyone help me with this problem? This code already said successfully update and successfully delete but actually there is no data updated or deleted. There is no error shows too.. These are the code for update and delete data.. update_user.php [CODE]<?php $con = mysql_connect("localhost","root","root"); if (!$con) { …

Web Development php
Member Avatar for aecha
0
183
Member Avatar for dr.4030

i used session in my admin panel so when i click on log out button in server i faced with this msgs Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royalfa/public_html/admin/logout.php:2) in /home/royalfa/public_html/admin/logout.php on line 5 Warning: Cannot modify header information - headers …

Web Development php session
Member Avatar for dr.4030
0
89
Member Avatar for bala2111

hey all, Am trying to display the div tag and its content by clicking it. the code below displays the whole source code when cliked on the div with id = softros. I want to make this script to display the div in view source format of the browser when …

Web Development display open-source php
Member Avatar for Ezzaral
0
71
Member Avatar for Sarama2030

Hi I'm working with sql server and ado.net datasets.Is there a way the dataset can be paged to the client for local access without contacting the server.If this is not possible how does one post back to the server from the client say in javascript after client side events like …

Web Development asp.net client-server dataset
Member Avatar for omar isaid
0
149
Member Avatar for samsnov

I am building a static website, and I have images in my index page each image has a title name, how do I make an image clicked to open in a different window if clicked, I have a template page designed to be used for opening an image in a …

Web Development javascript
Member Avatar for samsnov
0
165
Member Avatar for Nahiyan

Hello, So I was working with php, jquery, javascript and html to make a show/hide toggle system. I use php to fetch some data from my database and display them using html. I use jquery to make the show/hide toggle functionality. However, as I rely on php's while loop I …

Web Development javascript javascript-jquery
Member Avatar for Nahiyan
0
199
Member Avatar for gerbz

how could i open a new window using javascript inside php that holds a value of a js variable? please help. thx

Web Development javascript php
Member Avatar for gerbz
0
231
Member Avatar for lm111

I was wondering if someone could help me? In my code below what if answers in question 2 were allowed to be in any order? Like: hips,body,knees or knees,hips,body and so on. How should I modify my code? Anyone please???? [CODE]<!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" …

Web Development javascript
Member Avatar for lm111
0
1K
Member Avatar for bala2111

hey all, Am trying to display the div tag and its content by clicking it. the code below displays the whole source code when cliked on the div with id = softros. I want to make this script to display the div in view source format of the browser when …

Web Development display javascript open-source
Member Avatar for Taywin
0
335
Member Avatar for tsp003

Hi, I think I need a fresh pair of eyes on one of my scripts. I've adapted the following code for my own purposes and it almost works perfectly. When it gets to the last table (line 168: add record to jobs table) it adds the record twice and I …

Web Development php
Member Avatar for tsp003
0
204
Member Avatar for siina

Function, which picks up from specified page all images that are larger than 50kt. The function returns arrayn, which contains the image URL and the image size in kilobytes. How do i start to do this? Do i use wget and exec? Is there easier way to do it. So …

Web Development php
Member Avatar for cwarn23
0
188
Member Avatar for musicmancanora4

[code] Hey guys im not sure how this isset code is working and what each if statement is testing. a clear explanation would help. cheers ****ViewProductDetails.php**** Code: <?php session_start(); ?> <html> <body> <?php if (isset($_POST['submit'])) { if($_SESSION['item']==$_POST['h1']) { $_SESSION['qty'] = $_SESSION['qty'] + 1; } else { $_SESSION['item'] = $_POST['h1']; $_SESSION['price']= …

Web Development php session
Member Avatar for vibhaJ
0
119
Member Avatar for IWDesigns

hi everyone, i have some code that resises an image if its bigger than a certain size... the problem is that although the image is resised, its still pushing the div to the images full size? heres the code [CODE] .dt2 img { max-width: 300px; width: expression(document.body.clientWidth > 300? "300px": …

Web Development html-css image php
Member Avatar for IWDesigns
0
84
Member Avatar for rakwel10

this is a noob question. I'm quite confused sometimes when to use 'return' everytime Im doing my php and javascript codes. Maybe a plain english answer can help me : ) thanks!

Web Development php
Member Avatar for vibhaJ
0
123
Member Avatar for musicmancanora4

Hey guys i have the following code below for a shopping cart just wondering what this hidden input text would be used for and the echo at the end of it. I know it reads from a text file with : as delimeters and it as an ID for each …

Web Development html-css php
Member Avatar for urtrivedi
0
131
Member Avatar for Buppy

Hi, A quick question - i have a string containing text like this: [CODE] \\u003cspan class=\\\"someClass\\\">Some text\\u003c\\\/span> [/CODE] How do i get that "Some text" value into an array? I tried [CODE] preg_match_all("/\\\\u003cspan class=\\\\\\\"someClass\\\\\\\">(.*?)\\\\u003c\\\\\\/span>/",$str,$res); [/CODE] Returns nothing. I think there's something wrong with the regex pattern. Maybe anyone can correct …

Web Development php regex
Member Avatar for pritaeas
0
146
Member Avatar for mikesowerbutts

Hi, Im trying to convert my UserControls to be sharable across multiple projects. I have read up on this, and it seems that I need to have all code in one file (i.e. in the .ascx, rather than codebehind/designer) so I am trying to do this: [CODE] <%@ Control Language="C#" …

Web Development asp.net oop
Member Avatar for kvprajapati
0
946
Member Avatar for rotten69

hey everyone, I'm just having a problem debugging this line and I don't see anything wrong with it. I tried using SelectValue and other ways but nothing seems to be working. The error message I get is that Exception Details: System.FormatException: Input string was not in a correct format. [code] …

Web Development asp asp.net
Member Avatar for kvprajapati
0
106
Member Avatar for edn_781

I am very new to PHP.. Please let me know which part will be saved in Client PC and Which part will be saved in Server? [CODE=PHP]$_SESSION['name'] = 'John';[/CODE]

Web Development client-server php session
Member Avatar for rotten69
0
262
Member Avatar for ChaseTonyReid

I'm looking to create a battles, Explanation: I want to create a place on my website where users can vote on two users on a certain category, such as (example: best eyes, smartest person, etc) then other users have the option to vote, but only once, and who ever has …

Web Development mysql php social-media
Member Avatar for Shanti C
0
348
Member Avatar for khushhappy

Problem:- I want to show only those Documents which are before the deadline of the page. when deadline equals or less than the currentdate then show else move to archive or send to archive file. How to write a code for this or a query ? as for understanding , …

Web Development php
Member Avatar for khushhappy
0
109
Member Avatar for Rahul V S

hi friends, I'm trying to read an XML file using a jQuery 1.4 ajax ... the code is something like this ... [CODE] $.ajax({ type: "GET", url: "abcde.xml", dataType: "xml", error: function(){ /* error lines goes here */ }, success: function(){ /* success lines goes here */ } }); [/CODE] …

Web Development javascript javascript-jquery xml
Member Avatar for Matthew N.
0
236
Member Avatar for tmash

Please help if anyone can spot the problem. This [URL="http://www.propertyscanner.co.uk/register/"]form[/URL] uses jquery 1.6.2 and its causing a bug in Mac 10.4 . see file attached.Would appreciate any responses.

Web Development javascript javascript-jquery
Member Avatar for Matthew N.
0
67

The End.