17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for GigsD4X

Hi there, I'm trying to get the root directory of my site... But I don't want to edit the dots with slashes every time I make a new page in a directory inside another directory.. Any ideas? Here's an example tree :-) -/ -/stuff --/stuff/lol.php -/lolwut --/lolwut/cake.php --/lolwut/pie.php

Web Development php
Member Avatar for GigsD4X
0
105
Member Avatar for andydeans

hi, i have applied sha1 encryption to my update password page for users and it is encypting into the database fine. however i have a script that should at login check the encrypted sha1 password in the database and login however it does not work. i am not great with …

Web Development encryption php
Member Avatar for andydeans
0
157
Member Avatar for newtoajax

HI I am trying to pass a value from dropdown list on onchange event fo the dropdown in a jsp page through AJAX to servlet. The servlet then returns the value back to the jsp page and displays it in dropdown list. the problem I am facing is that the …

Web Development java-jsp javascript xml
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for heshanm

Hi, I have a problem. i want to show the [B]current date and time[/B] in my tables of the database. I want to show it because i want to show it on my report generated in php. By the way i [B]do not[/B] have a "date" field in my form. …

Web Development php
Member Avatar for almostbob
0
123
Member Avatar for Stefano Mtangoo

Hi, I have a page where I include another page passed via url Url is something like [B][url]http://www.daniweb.com/newthread.jsp?page=24[/url][/B] and I get the variable as [CODE=JAVA]String thePage = request.getParameter("page") ;[/CODE] Now I want to include it in my page and the code below doesn't work. I have googled and I cannot …

Web Development java-jsp
Member Avatar for Stefano Mtangoo
0
198
Member Avatar for hknight

In this example, I want "ABC" to be replaced with "XYZ": [url]http://pastehtml.com/view/1avqmak.html[/url] I am posting data using AJAX and I want to use JavaScript to replace the response before the response is returned. If you test the link above you will see the issue. Here is my code: [CODE]<!DOCTYPE html …

Web Development javascript
Member Avatar for hknight
0
156
Member Avatar for vibhaJ

HI All, my requirement is as below: lets product name is "aaa bbb ccc". Now in search coding i have use LIKE statement. [CODE] "... where product_name LIKE '%".$keyword."%'" [/CODE] Now when user insert 'aaa' or 'bbb' or 'ccc' or 'aaa bbb' or 'bbb ccc' search works. But if user …

Web Development php
Member Avatar for vibhaJ
0
101
Member Avatar for macdonald12

Hello people, I'm trying to collect some data stored between <body> and </body> tags inside a string. Here's a piece of the code i'm using: [CODE] $regex = '/<body>(.*?)<\/body>/si'; preg_match($regex, $content, $content); $content = $content[0];[/CODE] This works perfect, except that it also includes the above mentioned tags. I would just …

Web Development php regex
Member Avatar for macdonald12
0
190
Member Avatar for super_noobie

hey all I have a standard php form and I want a to add paypal purchasing action to it as well. is there an easy way to do this? thanks in advance

Web Development php
Member Avatar for sheltonjb
0
212
Member Avatar for EvolutionFallen

Hi, I'm somewhat new to jQuery/JavaScript, so any help would be greatly appreciated. I have a few textboxes that need to be populated when a user clicks a hot spot on an image map. Each hot spot has an alt tag representing the ID number of the object I need …

Web Development javascript-jquery php
Member Avatar for MooGeek
0
161
Member Avatar for marvolo1300

Hi, I want my script to redirect the visitor to the another script which is in another folder under the same parent directory. And i cannot use the "header()" redirect method. [QUOTE]/www/index.php/ (where i want the visitor to be redirected to)[/QUOTE] [QUOTE]/www/upload/upload.php/ (where i want the visitor to be redirected …

Web Development php
Member Avatar for MooGeek
0
1K
Member Avatar for Dean_Grobler

I'm struggling with a servlet that's suppose to represent an "online banking service". Once you run the servlet you'll see it's an extremely simple example... You enter an amount in the textfield provided, then click on the apropriate button depeding what action you want to perform e.g. "deposit","withdraw" and "balance". …

Web Development java-jsp
Member Avatar for martin5211
0
98
Member Avatar for ceeandcee

Good Afternoon, I have this line of code: echo $sum['PTS1011_wk1']; Earlier in my page, I have set a variable to: $wk="wk1"; What is the syntax to use the Variable $wk instead of spelling out wk1. I want to be able to change $wk once and have it change throughout a …

Web Development php
Member Avatar for Fbody
0
85
Member Avatar for amckenzie4

I've only just started playing with AJAX, as part of a project I'm dealing with at work. The specific piece I'm stuck on at the moment is this: I have a form with a lot of fields, two of which are subnet (a drop box populated from a database, via …

Web Development javascript
Member Avatar for amckenzie4
0
277
Member Avatar for slap01

i code this without the delete function, but when i started using it, there's and error. need help with this code[CODE]<?php $_GET['id']; $username = "root"; $password = '123456'; $hostname = "localhost"; $db = mysql_connect($localhost, $username, $password) or die ("Unable to connect to mySQL".mysql_error()); mysql_select_db('mynewdbase'); $del = "DELETE FORM newdbase WHERE …

Web Development php
Member Avatar for Stefano Mtangoo
0
119
Member Avatar for gchurch

well i have a form on the one page of my site that sends some variables accross using POST to another page. then some other things get calculated however the same variables from the first page need to be sent through to the next page. and when i click a …

Web Development php
Member Avatar for gchurch
0
149
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set([B]result of a join query[/B])as a an arrayList using the existing bean class. I will show my code as some one …

Web Development java java-jsp
Member Avatar for sugumarclick
0
197
Member Avatar for sami.asanga

Hi, Can anyone tel me how to get values from the database to work with mail to function?? I mean rather than giving like mailto:xxxxx@xx.com ,I want to take email ids from the database.How should I do it? I did like this.. <a href = "mailto : $row['sup_email']."></a> But its …

Web Development php
Member Avatar for Razer_Thomas
0
132
Member Avatar for zeuz

Hi everyone My intention is to enable NTLM authentification when using the native PHP SOAP client, Most of the code is copied from an php.net manual example and it is said to be working. I'm trying to override the __doRequest function in the SoapClient class and let it use cURL. …

Web Development api php
0
146
Member Avatar for srvstv.prnc

can any one tell me the code of inserting data in sql server 2005 through asp.net pages using c#.

Web Development asp asp.net c# sql
Member Avatar for SNK111
-1
1K
Member Avatar for ceeandcee

Good Evening, I have a table that has a field with 15 entrys in it. I would like to output it from a query in a table that has 3 rows of 5. However, whenever I put a <tr> inside the loop, I get 15 rows. Any idea how I …

Web Development php
Member Avatar for ceeandcee
0
130
Member Avatar for WarrenN

Hi I have a JavaScript function for swapping the values of rows in a table. I have a hidden field in each row to carry a record ID. As I switch the rows the function will update the hidden field but doesn't do it correctly if I switch a number …

Web Development javascript
Member Avatar for WarrenN
0
124
Member Avatar for teedoff

Ok I have developed some cf templates to do simple cruds to our database that is newly set up. Eventually at least one more person will be performing these data entry routines. We have an office network, but I thought we had an inhouse local server, which I think we …

Web Development coldfusion storage
Member Avatar for teedoff
0
112
Member Avatar for teedoff

Ok I know I'll get heckled for this..lol but...It's been so long since I configured my ftp login info, I have lost my password. I use Dreamweaver, so is there a file that stores your password like MySQL does? MySQL has a text file or .ini file somewhere that stores …

Web Development coldfusion
Member Avatar for teedoff
0
80
Member Avatar for ivan3510

Hi! Sorry for my bad english. I have one video. I want to make page that will display this video (like youtube), but I don't know how. In youtube there is a original page with video (I think, made with 'header(Content:application/x-shockwave-flash objekt)'). I want to make that too. But I …

Web Development flash php video
Member Avatar for ivan3510
0
204
Member Avatar for dennishall

Hi there: The code below lays out 3 divs, the 1st. div contains a slideshow, the 2nd. div is a container for the 3rd div which contains buttons to override the slideshow and replace it with a new image in the slidshow div. All the above scenario works perfectly. Where …

Web Development cms html-css javascript
Member Avatar for dennishall
0
253
Member Avatar for rje7

I am trying to split up the registration form into two php pages. Is it possible for the second page to submit its form along with the $_post which contains the information from the first page? well the question should be.. is there a function in php which will bind …

Web Development first-post php
Member Avatar for rje7
0
127
Member Avatar for gchurch

hey well i have a drop down menu or four that collects the day, month, year and number of nights spent over. i'm havin difficulty caluclating the departure date with all this info. can anyone help me???

Web Development php
Member Avatar for gchurch
0
88
Member Avatar for gchurch

is it possible to use a vaiable within the date() insted of using y-m-d. i want to use $day-$month-$year

Web Development php
Member Avatar for gchurch
0
115
Member Avatar for JBLDW

I have the following code section that is used for displaying a list of items and would like to modify it so it displays as a multi column display. I have been told that I need to use a counter, but I cannot find any information on how to do …

Web Development php programming-construct
Member Avatar for JBLDW
0
214
Member Avatar for jjemphoung

good day! i'm a newbie in php. but i know the basic things like what is server side and what is client side. my question is is it "OK" if i place a php script (which is a server side) in the page that my client views? i dont know …

Web Development client-server php
Member Avatar for jjemphoung
0
125
Member Avatar for lwaterfo

Hello again everyone.. I have a form with an e-mail input. After the user enters their e-mail, I want to have the content of the form sent to them... The name of the form textfield for the e-mail is "email". How could I make this happen in the php script?? …

Web Development php
Member Avatar for lwaterfo
0
171
Member Avatar for kadriirdak

Hi There, I do have an array; [CODE] $result = array( 'Database' => $database, 'UserID' => $contactAmendedBy, 'OldContactNumber'=> $_SESSION["CONTACTNUMBER"], 'OldActivity'=> $OldActivity, 'OldActivityValue'=> "ANT", 'OldSource'=> $OldSource, 'OldValidFrom'=> "25/08/2010", [*]'OldValidTo'=> "26/08/2110", 'Source'=> $Source, 'ValidTo'=> $ValidTo )); [/CODE] What I want to do is to give move values to dates. like; [CODE] 'OldValidFrom'=> …

Web Development php
Member Avatar for hielo
0
68
Member Avatar for ppetree

OK, putting together a simple table based on the output from a sql query. mysql_num_fields() returns 9 so I know I'm getting ONE row back. mysql_field_name($result, $i) returns the column name. When I try to output the table row(s), I get nothing... nada... zip... I must be missing something! (tired …

Web Development php
Member Avatar for ppetree
0
124
Member Avatar for sebastian3

Can anybody tell me why the Application_Start in global.asax in not firing under any conditions.Can any1 still tell me the conditions to fire it

Web Development asp.net
Member Avatar for xyzsoft
0
699
Member Avatar for heshanm

Hi, I have 4 account type tables. savings_investment(ID,account_type,full_name,balance,interest,customer_id) shakthi(ID,account_type,full_name,balance,interest,customer_id) surathal(ID,account_type,full_name,balance,interest,customer_id) abhimani_plus(ID,account_type,full_name,balance,interest,customer_id) The ID is different from one table to another. That is why i created 4 tables rather than one table. I want to write the coding to [B]check account balances[/B]. That is if user types the ID and clicks …

Web Development php
Member Avatar for ppetree
0
49
Member Avatar for Tyrial

Hi there I am trying to develop a silverlight game to be deployed on facebook. This game needs to make use of a database to store information about the players stats. At the moment i am just trying to get the silverlight wcf services working. By making a simple grid …

Member Avatar for Tyrial
0
147
Member Avatar for bsewell

Hi, I have a hidden DIV, which is going to cover all of the screen as part of a lightbox. I wrote my code based on what I found at docs.jquery.com/Tutorials:Basic_Show_and_Hid . When I click on the link to run the lightbox, the div isn't showing even through the z-index …

Member Avatar for bsewell
0
96
Member Avatar for himmat.m4

I want to change image at click event in jsp. suppose I have img1 and img2, whenever I click on img1 thn display img2 and again click on img2 then display img1. so tell me how to do that. code is [code]<%-- Document : imgChange Created on : 26 Aug, …

Web Development image java-jsp
Member Avatar for javaAddict
0
259
Member Avatar for hericles

Hi, I'm having trouble getting the Ajax Toolkit autocomplete extender to work. I have the web service set up as its own file in the same project and calling that alone works - the correct list of results is output as xml. But when entering text into the textbox nothing …

Web Development asp.net dataset web-server xml
Member Avatar for hericles
0
138
Member Avatar for ceeandcee

Good afternoon, Instead of starting a new row every time I have new data, I want to simply put a line break. I have put in <br> but it makes the page too long as it yields a break each time and not just the times that it has data. …

Web Development php
Member Avatar for chrishea
0
262
Member Avatar for heshanm

Hi, The supervisor of my system wants to modify customer details. I created this modify_form.php page. But when i modifies one record of a particular customer it [B]affected to all the records[/B]. Therefore all the records contain same thing..... Can anyone give me the correct coding which modifies only that …

Web Development php
Member Avatar for hielo
0
133
Member Avatar for ceeandcee

Here is what I have [code] echo "<img src='/images/bar_".$row['teamA'].".jpg'>"; [/code] in this example teamA = irish What I want to output is <img src='/images/bar_irish.jpg'> I think it is a simple syntax. What am I missing?

Web Development php
Member Avatar for ceeandcee
0
136
Member Avatar for heshanm

Hi guys, This is very important. The supervisor of my system wants to close accounts which contain zero balances for long time periods. There is a separate page contains [B]ID and Account Number[/B].This is included in a form and a "close account" button is there. When he clicks on that …

Web Development php
0
76
Member Avatar for arctushar

Hello I m a civil engineer. I want to develop a site for civil engineering. But have no time for detailed level of php. Can anybody give the basic/ most important list of php function. I would be better if the list contain with examples.

Web Development engineering php
Member Avatar for arctushar
-1
203
Member Avatar for Acute

Hi everybody, Is it possible to give a property default value without using constructor?

Web Development php
Member Avatar for hielo
0
89
Member Avatar for akshayinbox

Hi. I thought I posted topic to an inappropriate forum. Please see the topic (and reply) here: [URL="http://www.daniweb.com/forums/thread307178.html"]http://www.daniweb.com/forums/thread307178.html[/URL] Thanks

Web Development php
Member Avatar for akshayinbox
0
113
Member Avatar for koykemar

I am trying to create a music web player that changes song automatically, however the song is instead repeated and whenever next is click, and some codes are executed to stop the current song and start the next, the current song pauses for about 1 sec instead... can some please …

Web Development audio javascript
0
86
Member Avatar for keavon

First of all, please check out my other post. [url]http://www.daniweb.com/forums/post1318472.html#post1318472[/url] Ok, hello everybody! I have a question that should be pretty simple. I have a php page that will send an email. I got that all working fine. [CODE] <?php $to = "reciever@example.com"; $subject = "Test Subject"; $body = "Test …

Web Development email html-css php
Member Avatar for keavon
0
1K
Member Avatar for jakesee

Hi, I am currently trying to do a website with both chinese and englis text, and I have problems displaying chinese text. I uploaded a set of identical website files to 2 different servers and domains, and one displays chinese character but has messed up layout, the other does not …

Web Development php
Member Avatar for jakesee
0
174

The End.