52,566 Archived Topics

Remove Filter
Member Avatar for
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 motters

hi all i want to do is hide links when the user is not login in. i thought i could do it this way but it gave me a error [CODE] <?php if $_SESSION['MM_Username'] isset { echo 'members area'; // i would put a link here } else { echo …

Web Development php
Member Avatar for motters
0
942
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 Exploded Fiber

Hello all, I'm pretty new to PHP & SQL. I am having some trouble with a web voting page I'm creating. I have a PHP loop which is displaying data from SQL table A. Beside it, a small text box linked to SQL table B to allow users assign numeric …

Web Development php sql
Member Avatar for diafol
0
199
Member Avatar for pranabmohanty

hello everyone., i m new to asp.net. i am using fileupload control in my project. i want the complete file path...in IE i am getting the complete file path but not in Mozilla....in mozilla i am getting the file name only i.e. myfile.xls.......but i want the complete file path i.e. …

Web Development asp.net file-system
Member Avatar for arasan123
0
305
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 ryan311

hi, i'm back again to ask few question i have a problem on my online reservation system. here's my code [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $rno = $_POST['rno']; $in = $_POST['ADate']; $out = $_POST['AnotherDate']; $nor = $_POST['noofrooms']; $rtype = …

Web Development php
Member Avatar for ryan311
0
77
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 mangel.murti

hi all, i have to create web form creator as shown in below link.... how to make it i need idea how to implement this [URL="http://www.phpform.org"]http://www.phpform.org[/URL]

Web Development php
Member Avatar for mangel.murti
0
86
Member Avatar for ElegantElephant

How do I code a function that uses external variables? For example? I have an upload script that I am using repeatedly through a few pages. I'd like to make my code more efficient and just define the upload script as a function and call it every time I need …

Web Development php
Member Avatar for ElegantElephant
0
132
Member Avatar for giahmed

Dear All, I am trying to resize a page using jQuery but its not working for whole page it just resizes itself rather then whole content of website, anyone can please help me. Here is the code that I am using [CODE] <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE …

Member Avatar for giahmed
0
149
Member Avatar for sai.sriparasa

Hye, I have a select box with me and whenever I use a submit button only the selected value in the select box is posted. I am making a questionnaire so, I should be able to have all the entered options to be posted and not just the one on …

Web Development first-post php
Member Avatar for Wraithmanilian
0
135
Member Avatar for sai.sriparasa

Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example …

Web Development javascript php
Member Avatar for Wraithmanilian
0
117
Member Avatar for drewpark88

Hey Guys, I'm using Authorize.net as my payment processor. When I try to make a transaction it is not working properly because of the MD5Hash. I set up a variable and it is not working, in the authnet manual it says "if the MD5 Hash value configured by the merchant …

Web Development api php
Member Avatar for Wraithmanilian
0
143
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 thomasd7

i hate my life because I do not know what Im doing im trying to leave a cookie on the users pc from the URL. THIS IS THE URL (generated by infusionsoft) http://www.get-financed.org/rtest/2/?Contact0Email=pleasegodwork@jjsjs.com&contactId=40939 The URL contains something called contactId and im using this code // set the cookies setcookie("cookie[three]", "<?=$_GET['contactId']?>"); …

Web Development php
Member Avatar for CFROG
0
87
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 elizabeth1

Does anyone know if it is possible to format the Excel spreadsheet (dynamically created using ColdFusion and pulling from a MySQL database) to have the Excel file automatically set to landscape, rather than portrait for printing. My client wants that Excel spreadsheet formatted for him. I have the borders and …

Web Development coldfusion
Member Avatar for danarashad
0
462
Member Avatar for ElegantElephant

I have this code to validate part of a file upload: [CODE]if (!($fileExt == 'doc' || $fileExt == 'docx' || $fileExt == 'pdf')) { $error = 'The file does not meet the file type requirments. Only Microsoft Document and PDF files are allowed.'; $etype = '1'; include ('inc/error.php'); }[/CODE] Is …

Web Development pdf php
Member Avatar for ElegantElephant
0
98
Member Avatar for prem2

Hi, I need to upload pdf file using php and store that pdf files in certain path.The pdf which is under Acrobat Distiller is uploading successfully.But the pdf files which is under AFPL Ghostscript is not uploaded. coding: echo $_FILES['file']['type']; if($_FILES['file']['type']=="application/pdf") { if(file_exists("$filepath/upload/$basename")) { //file already exists return false; } …

Web Development file-system pdf php
Member Avatar for Atli
0
113
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 mundetas

Hi guys I was hoping you could help:'(, I have created a web page where by the number of records is about 40. But put on paging on my page with the use of Dream weaver. The problem I have is that yes it does display 5 At a time …

Web Development php session
Member Avatar for mundetas
0
71
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 MarziehA

i want to say this rule by javascript in asp.net page: for any controls in page if control[i].text="&nbsp;" then set control[i].text="" (for page textbox controls only) how can i implement this in javascript language in asp.net form?

Web Development asp asp.net javascript
Member Avatar for kvprajapati
0
191
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 Pari13

Hello sir, I have problem in getting values of textbox which in .ascx file (user control). at aspx file(the file at which control is added). code is as below. code in .ascx file [CODE]<%@ Control Language="C#" AutoEventWireup="true" CodeFile="attachfile.ascx.cs" Inherits="attachfile" %> <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox> <br /> [/CODE] code in .ascx.cs …

Web Development asp.net file-system web-server xml
Member Avatar for Pari13
0
3K
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 kuteinheart

Hey ppl, I have a form with the start date and end date fields... I want to check if bothe fields are filled and also to check if the start date is earlier than the end date... [CODE] <form id="form1" name="form1" method="post" action="get2.php" onSubmit="return validateform(this)"> Checking code... <script language="javascript"> <!-- …

Web Development php
Member Avatar for rajabhaskar525
0
244
Member Avatar for virspy

Hello Friends, i am having problem in pagination of my php website i written the code like this its working for first page good from second page onwards it showing all the results in a single page [code] <?php if((!defined('BASEPATH'))) exit('No direct script access allowed');?> <!-- HEADER --> <? $this->load->includes('header');?> …

Web Development php
Member Avatar for rajabhaskar525
0
110
Member Avatar for ausmaya

Hi, I need to change the image to another image using mouse click... this is the code i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg". pls anyone help me to correct this …

Web Development html-css image javascript
Member Avatar for urtrivedi
0
103
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 mith_cool

protected void Button1_Click(object sender, EventArgs e) { MailMessage message = new MailMessage(); message.From = new MailAddress(YourEmail.Text.ToString()); message.To.Add(new MailAddress("purohit.mith@gmail.com")); message.Subject = "Message via mith from " + YourName.Text.ToString(); message.Body = Comments.Text.ToString(); SmtpClient client = new SmtpClient(); client.Host = "203.92.50.112"; client.Send(message); } // this is what i used to send the email …

Web Development asp.net client-server
Member Avatar for virang_21
0
196
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 tekneck

I am trying to call a php script from a crontab sh script... I can get it to work if I hardcode each file, but I want to pass a variable to a single php file either from hardcoded calls in the sh script, or even better, by looping through …

Web Development php unix
Member Avatar for kireol
0
206
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 guruwannabe

hey yall i just started learning php too....but i have a problem with viewing my php files..i am currrently using easyphp and am not sure how am supposed to use it...i use dreamweaver to edit my php files but i dont get to see the output.. so please i need …

Web Development php
Member Avatar for diafol
0
136
Member Avatar for ElegantElephant

[CODE]$query = "INSERT INTO update_feedback (updateID,comment,timestamp) VALUES ('$updateID','$comment',NOW())"; $result = mysqli_query($dbcon,$result) or die('Error saving feedback into database. ' .mysqli_error($dbcon));[/CODE] Gives me this error: [QUOTE]Error saving feedback into database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Web Development mysql php
Member Avatar for ElegantElephant
0
104
Member Avatar for guruwannabe

pls i really need someone who can put me through php.i am really intrested in the language and just in need of someone to help me...

Web Development php
Member Avatar for Kruptein
0
133
Member Avatar for muralibobby2015

i am adding products. in that i have multiple select categorys option is there. i am selecting multiple categories and imploading that and storing categorys in database product table using categorys ids. now i am fetching with single catagory id. how to call (in_array) for that query? [CODE]"select * from …

Web Development php
Member Avatar for diafol
0
104
Member Avatar for derekcpt

Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back …

Web Development first-post javascript php
Member Avatar for mali01
0
194
Member Avatar for henrybahus

Hi all, I want to say first of all that I'm a beginner with jsp. Now I explain my issue: I have a page (called A) where I want to execute some code if user come from page B and other code if user came from page C. How could …

Web Development java-jsp
Member Avatar for peter_budo
0
83
Member Avatar for servis

hello, i want to arrange variables in array from foreach loop like this [ICODE] foreach($arr as $array){ $variable['first'] = $array['im']; //first record from im column in a table $variable['second']= $array['im']; //2nd record from im column in a table } echo $variable['first']; echo $variable['second']; [/ICODE] the purpose is to make the …

Web Development php
Member Avatar for servis
0
99
Member Avatar for Jabga

Hi all. I am wondering how to handle e commerce payment on my creating web. It can't redirect to such as Paypal or moneybookers.com etc, payment should be start at my web form and finish on my web. Can it be? How to make it? It should accept international visa …

Web Development ecommerce php
Member Avatar for Jabga
0
160

The End.