52,566 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 =) | |
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 | |
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"; … | |
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 | |
![]() | 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 |
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 | |
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 | |
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 | |
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) … | |
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 | |
[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 | |
[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 | |
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! | |
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' … | |
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 | |
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 | |
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); … | |
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 :( ![]() | |
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 ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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']= … | |
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": … | |
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 | |
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 … | |
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 … | |
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#" … | |
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] … | |
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 | |
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 | |
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 | |
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 | |
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 |
The End.