17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cloud09

I have a text area that is part of a form for a manageable picture gallery. When the user clicks the text area, the "Description" is supposed to disappear, and then when they click away, if they didn't type something, "Description" is supposed to reappear. The problem is is that …

Web Development javascript
Member Avatar for muralibobby2015
0
188
Member Avatar for colweb

Have written a simple PHP program to get data from a database to an accounting program. Therefore I need to do some calculations. And one of them goes completely wrong. [CODE]<?php $prijs = 480.00; $nvh = 432.00; $prov = 40.34; $btw = 7.66; $over = $prijs - ($nvh + $prov …

Web Development php
Member Avatar for colweb
0
133
Member Avatar for nathan2oo3

Hey, just signed up to this forum so first of all would like to say Hi . I am currently working on a review website building from code I had written previously. The problem I am having is with my login script. I Have three pages set out index.html, login.html …

Web Development php
Member Avatar for nathan2oo3
0
100
Member Avatar for fuggles

For some reason the post is not getting inserted into my database. [code=PHP] if($_SESSION['permissions']>=1) { $query="INSERT INTO news (id, title, poster, posterid, body) VALUES ('$id','$title','$poster','$posterid','$body')"; $result=mysql_query($query,$con); header("location:index.php"); } [/code]

Web Development php
Member Avatar for liamfriel
0
87
Member Avatar for kiranbvsn

i got 2 html pages with the following data index.php (buttons: SAVE, EDIT) update.php (buttons: UPDATE,DELETE) Employee ID (primary key), Employee Name (here i putting 2 buttons Edit,Save) when i entered the empid and click the Edit button, the page has to go from index.php to update.php and at the …

Web Development php sql
Member Avatar for kiranbvsn
0
117
Member Avatar for kanuri1

hi any body tell me , how to create a dll file in asp.net using vb.net or please give me any websites for creating dll files in asp.net using vb.net.................

Web Development asp.net vb.net
Member Avatar for kvprajapati
0
303
Member Avatar for muralibobby2015

hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after …

Web Development php
Member Avatar for pushpakalpana
0
139
Member Avatar for kuteinheart

Hey ppl, I am using wampserver for my Website development... Now, I want to send mail to a particular user from mysql table... when i use the mail function for PHP code [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers)[/CODE] I am getting the error as follows [CODE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Web Development php
Member Avatar for kuteinheart
0
346
Member Avatar for xuexue

hi there, i have a webpage which is divided into three frames, left frame, main frame and the bottom frame. all the buttons are in the left frame, hence, once a button is clicked, the data will be displayed in the bottom frame, now my problem is that, how could …

Web Development php
Member Avatar for kvprajapati
0
109
Member Avatar for SMHouston

Hi all. I'm having an issue that I CAN NOT figure out for the life of me. The program is to get user input about there paycheck , then calculate the answer. What my problem is I can not get the php part to print anything inside the <?php?> tags. …

Web Development pay-per-click php
Member Avatar for JRM
0
195
Member Avatar for Zagga

Hi again folks. I have a PHP member registration script that collects registration details from the user, encodes the password (with RIJNDAEL_256) and emails the user a URL containing all the variables so I can verify the email address is correct. The user clicks on the URL, the correct page …

Web Development php
Member Avatar for Zagga
1
170
Member Avatar for codeblock

Hello everyone, I have a problem with my drop down list box on my edit page in php. I would like my drop down list box to show what the user has selected, then if the user wishes to, change their selection updating the DB(mysql) at the same time. I …

Web Development mysql php
Member Avatar for Wraithmanilian
0
243
Member Avatar for tryphy

I have a multi form... I searched online and found this link... [url]http://www.html-form-guide.com/php-form/php-order-form.html[/url] so i was doing a test, but it didnt work for me.. Can some1 help me, where i have gone wrong. Here are my codes.... [COLOR="red"][U]Form1.php[/U][/COLOR] [CODE] <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Web Development php session
Member Avatar for FlashCreations
0
240
Member Avatar for itisnot_me

ok so i am taking a list of numbers and stashing them i an array by going $total[]. then i try to use array_sum($total) and i dont get the last added number instead i get numbers that keep adding up to the final number EX: 10,15,5 output: 102530 i have …

Web Development php
Member Avatar for ashiqin
0
112
Member Avatar for ErlendHL

Hi! I am trying to make an element shake, and I have [I]tried[/I] to make a function in JavaScript, but it won't work. Here is the test page, used only for testing. It is the [I]Genious test[/I] div that I want to shake. Here is the code: [CODE] function Shake(Pow){ …

Web Development javascript
Member Avatar for ErlendHL
0
156
Member Avatar for whiteyoh

Hi, Ive posted this in a mysql forum, but the more i think about it i think php is really where i think the solution lies. When i call a row, how could i count the number of empty entries? so say its an address with 5 lines, and ive …

Web Development php
Member Avatar for whiteyoh
1
88
Member Avatar for sam023

i want to convert string into hexdecimal value.. Like 'Hi' into 00680069 [code=php]<?php function ascii2hex($ascii) { $hex = ''; for ($i = 0; $i < strlen($ascii); $i++) { $byte = strtoupper(dechex(ord($ascii{$i}))); $byte = str_repeat('0', 2 - strlen($byte)).$byte; $hex.=$byte." "; } return $hex; } //echo ascii2hex('he'); echo dechex(ord('hello')); ?>[/code] I got …

Web Development php
Member Avatar for sam023
0
1K
Member Avatar for xuexue

i have a webpage wherein it has two frames in it. now, i want to transfer the data coming from FRAME A to FRAME B. now, i thought of using a session, but it does not work, what i want is that when i click the button in FRAME A, …

Web Development php session
Member Avatar for Wraithmanilian
0
96
Member Avatar for Paladine

This is a continuation of the [url="http://www.daniweb.com/tutorials/tutorial19303.html"]Updated: ASP.NET Login Page Tutorial[/url]. This tutorial will demonstrate how to create a registration page for new users to your site. This registration page will utilize the same principles used in the Login Page Tutorial, so this should be no more difficult to do …

Member Avatar for kvprajapati
0
2K
Member Avatar for learningdotnet

Hello All, I currently have pager.ascx control which i am using to display 12 items per page. i am using "gid" constant string to set the number of pages. "gid" is defined in my base class called myPage.cs as follows [CODE]public class myPage : Page { #region constants [B]protected const …

Web Development asp.net
0
63
Member Avatar for learningdotnet

Hello All, i am currently using Google Analytics to collects stats about my site ( my site is created in ASP.NET 2.0 and C#). i have asp:imagebutton called "Confirm Order". i want to track the clicking of this button. the code for this button is as follows: [CODE]void ibConfirm_Click( object …

Web Development asp asp.net google http-protocol
Member Avatar for learningdotnet
0
766
Member Avatar for Atomika3000

Next Problem, i need to make my page hide the background image in the banner <div> when somebody click anywhere in the footer <div>. Again, it needs to use javascript. i was doing some fiddling and took out the background image and replaced it with a colour instead and got …

Web Development html-css image javascript
Member Avatar for Atomika3000
-1
107
Member Avatar for CFROG

[code] if( $_SESSION['user_id'] <> 1) { $ref = $_SERVER['HTTP_REFERER']; header( 'refresh: 5; url='.$ref); echo $_SESSION['user_id']; // <----- echoes '1' echo "<h2>Some feature is currently unavailable.</h2>You will be redirected to $ref in 5 seconds"; die; } [/code] I've written this a hundred different ways and it still redirects even though the …

Web Development php
Member Avatar for CFROG
0
100
Member Avatar for Atomika3000

i need to make a paragraph of text identified by a <div> grow in size when the user moves their mouse if that portion of text. I Guess it needs to use onMouseOver and getElementById but i not sure what else is needed, i have trawled the internet for the …

Web Development html-css javascript
Member Avatar for Atomika3000
0
907
Member Avatar for preetg

hi everyone i m completely fed up to solve dis prob.... i checked my code so many times but i cant find where is my mistake...... plz help me out..................... I am selecting records from diff tables......my select query is correct and after dat m inserted new record and dat …

Web Development php
Member Avatar for jcanaway
0
110
Member Avatar for MDanz

below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form and submit i get this.. test.php?search=example&submit=search how do i get all together in the url? like this [url]http://test.php?w=$sw&h=$sh&search=example&submit=search[/url] i even tried this [code] <form action="<?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&"; echo $theurl; …

Web Development php
Member Avatar for jcanaway
0
114
Member Avatar for codeblock

Hello everybody this is my first post. I have a web page in php that allow the users to enter a value from three radio buttons. The problem is, i want to allow the users too change their selection on the edit page but first their selection has to be …

Web Development php
Member Avatar for codeblock
0
130
Member Avatar for xuexue

hi, i have tried to use gd graph, it works, however, whenever i will input a message, it does not appear. if u will display the graph and the message in a separate webpage, it will appear. now, my question is that, is it possible to merge the graph and …

Web Development php
Member Avatar for Wraithmanilian
0
95
Member Avatar for Hangfire

Hi, I've got a "contact us" form on my website and naturally i'm trying to guard against sql injection/hacking The body of the text gets run through the below function, however this means i end up with How's it going = How's it going Can someone tell me which part …

Web Development php
Member Avatar for Hangfire
0
128
Member Avatar for mairtinomarta

Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE]

Web Development javascript
Member Avatar for mairtinomarta
0
107
Member Avatar for xuexue

hi guys, just a little help regarding GD Graph, is it not possible to combine the graph plus a little code to echo or display?? because, when i try to insert the code in the upper part of the program, it runs but if i put the code in the …

Web Development php
Member Avatar for saiprem
0
170
Member Avatar for karamjeet2004

i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol …

Web Development html-css java-jsp
Member Avatar for jwenting
0
110
Member Avatar for MDanz

i'm trying to simplify the url, how do i do this within the code below.. if width & height = 1024 & 768 and declare that as variable "1". if width & height = 1360 & 768 and declare that as variable "2". then the url would be test.php?s=1 for …

Web Development javascript
0
74
Member Avatar for takeshi

Hi..this code is not working..the error was [ICODE]while ($row = mysql_fetch_array($sql)[/ICODE] but i know it was correct query.. [ICODE]search.php[/ICODE] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql …

Web Development php
Member Avatar for kireol
0
263
Member Avatar for anshul09

I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country …

Web Development html-css javascript mysql php
Member Avatar for Fbody
0
140
Member Avatar for diafol

I'm losing the will to live! I'm currently trying to place array values from php files into a mysql db table. As it happens some of the values have non-ASCII values: [B]e.g. “%1$s”[/B] I seem to be able to encode all my usual accented characters, but the slanted inverted commas/quotes. …

Web Development php phpbb
Member Avatar for diafol
0
157
Member Avatar for pbcomput

hi... i m trying to get values of more then one select box on same page.. i am showing list of all users with select box..so per user there is one select box... i want to get the value of all select box...which is select or not select... here is …

Web Development php
Member Avatar for pbcomput
0
138
Member Avatar for pancgom

Hi, I need some advice on how to edit records from a mysql database using php. Basically the record will be displayed after a particular field is chosen. What i need to know is how can i show the field data in a drop down box one after another and …

Web Development mysql php
Member Avatar for shridhard
0
179
Member Avatar for tryphy

Hi I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page . The user enters the form and click submit, once he click submit the form is submitted and …

Web Development php
Member Avatar for tryphy
0
10K
Member Avatar for sinopa

Does anyone know how I can get this script to show all the entries in atom.xml? It only shows the top four right now. [CODE] google.load("feeds", "1"); function initialize() { var feed = new google.feeds.Feed("http://thedosblogger.blogspot.com/atom.xml"); feed.load(function(result) { if (!result.error) { var container = document.getElementById("feed"); for (var i = 0; i …

Web Development api google google-api xml
0
66
Member Avatar for azegurb

I have code written in JavaScript this a form that dynamically adds row (taken from internet and modernized by JavaScript masters) [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head><title>dinamik sheet</title> <script> var i=iteration; function addrow(){ var tbl = document.getElementById('sheet'); var iteration = tbl.rows.length; var row=tbl.insertRow(iteration); var cellLeft = …

Web Development php
Member Avatar for azegurb
0
261
Member Avatar for preetg

hi.... i m fetching 3 fields from two different tables that is ecode and edate from emp_company table and scode from emp_shift table.....and after fetching the records i want to change the value of any of the record and want to insert as a new record in emp_shift table.........but my …

Web Development php
Member Avatar for rajabhaskar525
0
95
Member Avatar for xoxbet

Hi, I'm taking texts from other page. In my page I use utf-8 encoding. When I print texts in my page, I get [COLOR="Red"]� [/COLOR]for some symbols, for example for [COLOR="Red"]ö[/COLOR] in German, or [COLOR="Red"]è[/COLOR] in French. I tried use file_get_contents, curl, but in these two ways output have [COLOR="Red"]�[/COLOR] …

Web Development php xml
Member Avatar for xoxbet
0
168
Member Avatar for whiteyoh

Hi all, When running the following i get this error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null and heres the code: [code] function upload(){ /*** check if a file was uploaded ***/ if(is_uploaded_file($_FILES['userfile']['tmp_name']) && getimagesize($_FILES['userfile']['tmp_name']) != false) { /*** get the image info. ***/ $size = getimagesize($_FILES['userfile']['tmp_name']); …

Web Development mysql php
Member Avatar for whiteyoh
0
609
Member Avatar for CFROG

I'm working with Google API trying to plot multiple points on a map. I can't find really good documentation on how I need to do this so I'm sort of winging it at this point. Obviously what I have is not working. The map is displaying and centered where I …

Web Development api google google-api php xml
0
66
Member Avatar for tyrium

Hi, What i want is to have a checkbox area where the items i select are stored in a array. Im guessing there should be a some code to find out what has been checked. Any help with this would be greatly appreciated. [CODE]echo '<form action="myown3.php" method="post" name="domaintest" action="_self">'; echo …

Web Development php
Member Avatar for tyrium
0
157
Member Avatar for azegurb

hi all PHP masters I have took from internet news publishing script I read all of code but i have a bit misunderstandings from the code so i dont understand some codings there and i have one question. does anyone help me to improve performance of this code below i …

Web Development php publishing
Member Avatar for azegurb
0
144
Member Avatar for ayesha789

Hi, I have stored 800 images in root/Images and store link in DB for reference along with another information. There is a search box through which I get all the info. For viewing images I used [ICODE]<a href=".$row['image']." target=_blank>".$row['ch']."</a>[/ICODE] Ch value is click here to view. Now I want that …

Web Development image mysql php
Member Avatar for muralibobby2015
0
218
Member Avatar for muralibobby2015

hai.... there is thousands of products is there. now we want to see as a directory wise means (A-Z wise) devide. how to do this. [CODE][B][U]A[/U][/B] [URL="http://apple.com"]Apple[/URL] [URL="http://ant.com"]Ant[/URL] [URL="http://aeroplane.com"]Aeroplane[/URL] [B][U]B[/U][/B] [URL="http://bat.com"]Bat[/URL] [URL="http://ball.com"]Ball[/URL] [URL="http://book.com"]Book[/URL][/CODE] like this......up to z. how to do this? adv thnks.

Web Development apple php
Member Avatar for muralibobby2015
0
115
Member Avatar for amit145

hello when i open my website it shows [B][url]www.mywebsite.com/index.html[/url][/B] but i want to open like [B][url]www.mywebsite.com[/url][/B] do not want index.html with the url. please give me the solution how to do it.

Web Development asp.net
Member Avatar for amit145
0
92

The End.