52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gamestoenjoy

Hi, I have two php pages. On the first php page called process.php I have the following code: [CODE]setcookie('username', 'dan', time() + 2592000 , '/');[/CODE] And when I use the following code in this page: [CODE]$username = $_COOKIE['username']; if (isset($username)) { echo $username;[/CODE] Everything works fine, and I get the …

Web Development php
Member Avatar for diafol
0
231
Member Avatar for Joe Shmoe

I am having a problem with flash in firefox 7. I am not sure this is the right forum, but someone can move it if they see fit. Anyway, say I write some embed code like this: [CODE] <html> <body> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab#version=6,0,40,0" width="800" height="600" id="mymoviename"> <param name="movie" value="Adv1.swf" …

Web Development flash php
Member Avatar for jakizak
0
202
Member Avatar for 54uydf

I'm trying to pass a word that has the char ' or " in the middle of it. it's one of the fields in a form, so when I submit, the next page gets only the part of the word before the " or ' char. I tried using mysql_real_escape_string() …

Web Development php
Member Avatar for 54uydf
0
136
Member Avatar for extemer

can some one explain me that line by line [CODE]$("#amount").keydown(function(event) { // Allow only backspace and delete if ( event.keyCode == 46 || event.keyCode == 8 ) { // let it happen, don't do anything } else { // Ensure that it is a number and stop the keypress if …

Web Development javascript
Member Avatar for MartinRinehart
0
111
Member Avatar for mnmo88

In my final year project I have to build an Algorithm animator. It would be done to show how the algo works using nodes(PCs) and edges(connections). For example, how the leader ellection ring algo works. Anyway, I haven't started implementing yet. My supervisor wants me to do it as a …

Web Development gui html-css java-swing javascript
Member Avatar for phoenix_2000
0
260
Member Avatar for phoenix416

Hey guys, Can anyone please help me with the code, I am trying to find the error, but no luck. Everything is coded properly. Server is running on php 5.3.8, MySQL 5.1 When I try to execute my php file, it gives me an error : Parse error: syntax error, …

Web Development php
Member Avatar for phoenix416
0
1K
Member Avatar for jigarsangoi

how to make advance search in asp.net & what is required to search from database

Web Development asp asp.net
Member Avatar for jigarsangoi
0
119
Member Avatar for vanpersie

Hi Generaly what skills that I should know in PHP to be a candidate to work in a company In other words I have studied the basics of PHP what you advise me to know more. thank you.

Web Development php
Member Avatar for chrishea
0
113
Member Avatar for FreePuppy

What is up!? I am completely stuck and trying to do something I'm not to certain I can do. After reading on web I have seen 2 options... non i cant get work... Before I get ahead of myself let me explain what is going on. I have a JS …

Member Avatar for Taywin
0
191
Member Avatar for bsewell

Hi all, I have some content which I would like to limit to 9 per page in a table. I haven't done the table code yet, and rather concentrate on trying to get the filter working. When I try to enter the URL of index.php, where page=2 or without a …

Web Development apache php
Member Avatar for Mark_k
0
898
Member Avatar for malcomm

Hi I have a web form with a label on it. The content of that label is updated in response to some javascript on the client webpage. Upon completion of some data entry, a button is clicked which adds that labels data (and others) to a gridview. Basically this all …

Web Development asp.net client-server
Member Avatar for malcomm
0
281
Member Avatar for johnbo100

Hi all, So I have 2 files where one is an ajax script that calls another file that does some mysql database query. What is the best way to echo out multiple recordset rows to ajax?. Please see the source code below: ajax code: [CODE] <form name="form1" method="post"> Please enter …

Web Development javascript php
Member Avatar for johnbo100
0
2K
Member Avatar for davy_yg

tampil_produk.php [CODE] <?php include "includes/koneksi.php"; echo "<table>"; $sql=mysql_query("select * from produk order by id_produk desc"); while ($r=mysql_fetch_array($sql)){ $harga = number_format($r[harga],0,",","."); $deskripsi = nl2br($r[deskripsi]); // membuat paragraf $isi = substr($deskripsi,0,220); // ambil sebanyak 220 karakter $isi = substr($deskripsi,0,strrpos($isi," ")); // potong per spasi kalimat echo "<tr><td><img src='foto_produk/small_$r[gambar]' align=left hspace=20 border=0></td><td><b>$r[nama_produk]</b> <br …

Web Development php
Member Avatar for pzuurveen
0
162
Member Avatar for davy_yg

media.php [CODE] <?php session_start(); if (empty($_SESSION[username]) AND empty($_SESSION[passuser])){ echo "<link href='style.css' rel='stylesheet' type='text/css'> <center>Untuk mengakses modul, Anda harus login <br>"; echo "<a href=index.php><b>LOGIN</b></a></center>"; } else{ ?> [/CODE] Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\SourceCodePHP\bab 4\toko\adminweb\media.php on line 4 Notice: Use of undefined constant passuser - assumed …

Web Development php
Member Avatar for mschroeder
0
2K
Member Avatar for Rizi004

hello i have a form for registering the user and i use java script for client side check that the field is filled or not the problem is that when user not fill the first name and press register button it will show client side message that the first name …

Web Development javascript
Member Avatar for phoenix_2000
0
114
Member Avatar for prvnkmr194

Hello Actually I have to print Report from php and iam using this code [CODE] <?php $handle = printer_open("Microsoft XPS Document Writer"); $handle = printer_open(); ?> [/CODE] bt iam getting following error Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\praveen\printer.php on line 2 what i have to do next …

Web Development php printer
Member Avatar for phoenix_2000
0
2K
Member Avatar for mathewmoozh

I want to integrate the mapquest in my website.I need to integrate the Get directions service from the mapquest.I got a map showing a route between two places.The points were given as static.Anyone can help me with sample codes or just with tutorials.Any help is appreciated.Thanks in advance.

Web Development php
Member Avatar for Brian@MQ
0
130
Member Avatar for sagar.kadam022

How to parse HTML text from a website using asp.net. Actually, I want to develop a dictionary program in which user types a word and the meaning of that word is fetch from wikitionary websites (or other dictionary websites). So, how can i fetch the html text. In java, there …

Web Development asp.net html-css
Member Avatar for nakor77
0
108
Member Avatar for mr_scooby

I have this form that has a textarea that is compulsory, it has a checkbox that allows it to be ticked to show a hidden textarea using css/jquery. What I would like is to know how to do the jquery to force input into the unhidden textarea only when the …

Member Avatar for stbuchok
0
903
Member Avatar for vedmack

Hi, For some time I'm using window.createPopup(), recently I noticed that It cannot be used in modal dialogs that are opened in IE8 protected mode, So I was wondering is there still some way to make window.createPopup() work in the above situation, Thanks ahead, Daniel.

Web Development html-css javascript web-browser
Member Avatar for vedmack
0
156
Member Avatar for reco21

What im doing is i have a form with 4 inputs like below. and im using the post method to store the fields values so i can send them to the database. what i neeed is each input to be put into a separate row in a databases table. also …

Web Development mysql php
Member Avatar for reco21
0
150
Member Avatar for parani

Hi Can you please go through the HTML files and let me know where am I going wrong? Page1.html : [inlinecode] <html> <head> <title>PAGE 1</title> </head> <body> <form action="page2.html" method="get" name="LoginForm" id="LoginForm"> Username : <input name="username" size="20"> Password :<input name="password" type=password size="20"> <input type="submit" name="Login" value="Login" > <input type="reset" name="Reset2" …

Web Development javascript
Member Avatar for Taywin
0
221
Member Avatar for Inny

Id like to limit the text chars shown in this script because too many chars are displayed causing overlap (see link) no idea what to do, please help? p.s I dont know js so if you could kindly be very specific, thanks. :) see it here (bottom of page 5 …

Web Development display javascript
Member Avatar for stbuchok
0
334
Member Avatar for aldm

Hi, I wonder which is best tool for synhronise localhost project with the same project on shared hosting. For example, when I run that tool, my localhost project should get all files that doesn't contain from shared hosting (newest added images for news, organizations etc). I need something like SVN, …

Web Development php
Member Avatar for aldm
0
394
Member Avatar for jmvazq

Hello there! :) For the last couple of days, I've been working on a new project. The idea is to create a virtual adoptable pets system integrated with my forums. While I have much of it covered already, I am new to dynamic images and the GD library. So I …

Web Development image php
Member Avatar for ashishzakar
0
690
Member Avatar for steventaal

Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I will post the code and explain it here. [CODE]/* <!Tut note: do not use "var" to declare x or req. function makeReq() { target="http://yourserver.com/login.php"; data="yourdata=this&itsplace=thisstring"; req = new Request("post", …

Web Development api javascript
Member Avatar for urtrivedi
0
114
Member Avatar for kwamba

I have finished desgning a website for a student exchange program. Please assist in availing the code JS code for slide shows on web background Help please It's urgent

Web Development javascript
Member Avatar for divyakrishnan
0
69
Member Avatar for Stefano Mtangoo

I have decided when I have free of free time I will be playing around small php editor. I was wondering where I can get a list of keyword for mentioned languages, preferably in csv or like format Thanks! [B]EDIT:[/B] I forgot CSS

Web Development html-css javascript php
Member Avatar for Stefano Mtangoo
0
147
Member Avatar for steventaal

Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I think that it's pretty self-explanatory. Post or PM me if you all need more or need help. Peace! -Stev

Web Development api javascript
0
216
Member Avatar for raju_boini525

Hi all, I am working on affiliate network project. it is having flash banners , for that we create dynamic flash empty .swf file , we pass the 3 parameters, they are 1.inner is a dynamic .swf file to load in my empty .swf. 2. url is a redirect url …

Member Avatar for raju_boini525
0
184
Member Avatar for ken.atienza

$user['username'] = name of the table producttotal 500 6105 131 [CODE]$ordertotal = mysql_query("SELECT SUM(producttotal) FROM ".$user['username'].""); echo "Order total: ".$ordertotal;[/CODE] why is the result "Order total: Resource id #7". I wanted to sum all the values below producttotal column. Thanks in advance.

Web Development php
Member Avatar for sun-tzu
0
101
Member Avatar for n3xtgen

I have one file with checkbox's a user can select. Now if they select one and click submit I want my next file to show the user what they selected. I cant seem to get this working. It looks likes it grabbing the first word and because there is a …

Web Development php
Member Avatar for n3xtgen
0
168
Member Avatar for Xcelled194

This is probably a very simple answer that I'm missing. I have index.php and qeury.php in the same directory. Users visit index.php, which prints some info. It then needs to call qeury.php and exit, without waiting for query to finish running. Query just pings a server and then exits. How …

Web Development php
Member Avatar for Xcelled194
0
177
Member Avatar for IWDesigns

hi, i have a sms script written in php. im just wondering...is there going to be a fee for anyone from sending them? i tried looking on google and all i found was a bunch of sites selling bulk sms packages and a article from 2003 saying that the receiver …

Web Development php
Member Avatar for Zagga
0
105
Member Avatar for Xtremefaith

Ok so with the help of the Daniweb community here I've gotten better with AJAX/jQuery, enough to make a photography with it rather than flash. I'm very excited with how most of it is working but I've hit a brick wall I really need help with. [B]Outline:[/B] I have a …

Member Avatar for Xtremefaith
0
478
Member Avatar for cbwhellmouth

Hi guys, I have a feeling there's something small I'm missing from this code. I'm trying to add captcha to an existing contact form that I use. The captcha image displays fine, but regardless of what I enter, the email gets sents and I'm redirected to my thank you page. …

Web Development email php
Member Avatar for cbwhellmouth
0
193
Member Avatar for asif49

I've put on my website a box which gets longer in height when it is clicked, I did this using the following code: [CODE] <script type="text/javascript"> var x=100; /*original height*/ function expand() { document.getElementById("move").style.height=x+'px'; /*Height from css.css in the div called "move"*/ if(x>300) { /*Desired height after expansion*/ clearTimeout(t); return; …

Web Development javascript
Member Avatar for asif49
0
99
Member Avatar for akshayphp

I want to know that "how to show hidden fields when a user selects a particular option in the html form" I want the fields to be hidden first,then when the users selects: Option A- Particulars fields which have I will create for this option must be displayed. If Option …

Web Development javascript
Member Avatar for svilla
0
176
Member Avatar for nice_candy

hi, Can you tell me plz how can i disable all the MaskEditExtender validator Control from the aspx page at once. Thanks and Regards, nice candy.

Web Development asp.net
Member Avatar for nakor77
0
84
Member Avatar for newprimitive

I have problem with a simple login script, keep getting message "Call to a member function on a non-object". The same code worked locally, but when i tried to run it online i got this message. have two php files:login.php and connect.php here is simplified code from connect.php [CODE]class Connect{ …

Web Development php
Member Avatar for mschroeder
0
425
Member Avatar for davy_yg

banner_manager.php [CODE] //Cek apakah ada file yang diupload if((!empty($_FILES["uploaded_file"])) && ($_FILES["uploaded_file"]['error'] == 0)){ $gambar = uploadPicture("uploaded_file"); } if (empty($id)) $sqlstr = "INSERT INTO banner(link, gambar) VALUES('".$link."','".$gambar."')"; else $sqlstr = "UPDATE banner SET link = '".$link."',gambar = '".$gambar."' WHERE id =".$id; $result = mysql_query($sqlstr) or die(mysql_error()); $confirmation = ($result)? "Data telah …

Web Development mysql php
Member Avatar for Zagga
0
221
Member Avatar for freakysquash

I developed a sales management system in ASP.NET using Razor WebPages. How can I ensure that the business data associated with the system to be secure? Does hosting it using Web Hosting services secure? How about VPN? And if I am going to host it in the company server, how …

Web Development asp.net web-server
Member Avatar for riteshbest
0
272
Member Avatar for Buppy

Hi, I have a cookie issue. On localhost i have a cookie file "cookie.txt" (located ir root dir) which works fine. However, on remote server the app seems not to find the file. Is there a server config option that prevents my app from seeing that cookie file? Thanks

Web Development php
Member Avatar for cwarn23
0
73
Member Avatar for martin11ph

Is it possible? Currently, I am inserting data to a CSV file using PHP via the fputcsv() function. When opened in Excel, it works fine. The problem is that all the columns are of the default size. Is there a way to autofit the column width and possibly modify the …

Web Development microsoft-office php
Member Avatar for martin11ph
0
1K
Member Avatar for patel28rajendra

plz explain complete step by step procedure to insert update and delete for asp.net2008 with c# and in built sql server. plz tell me where to make object & class. I am confused.

Web Development asp.net
Member Avatar for ruchi18
0
525
Member Avatar for minitauros

I'm wondering: Why would I need to use a static variable? When I initiate a class, that class remembers the value of a variable I declare in that class anyway, right? What does the [I]static[/I] part add to that? For example, what's the difference between [CODE]class Hello { public $variable; …

Web Development php
Member Avatar for cwarn23
0
120
Member Avatar for Danny159

Hey, I need a bit of help... I am trying to create a simple invoice script... but im stuck on the invoice lines... I think I can use javascript to add more lines when the user clicks a button but then not sure how to process that list as I …

Web Development php
Member Avatar for Danny159
0
75
Member Avatar for Inny

My rss feed wont validate, throwing this error but I dont understand it...please help? error on line 10 at column 75: EntityRef: expecting ';' [CODE=php]<?php require_once('../includes/functions.php'); if (file_exists(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php')){//feed-rss from the theme! require_once(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php'); } else{//not found in theme header("Content-type: text/xml"); ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>RSS - <?php echo $html_title;?></title> <link><?php …

Web Development php
Member Avatar for Inny
0
239
Member Avatar for merlinem
Member Avatar for merlinem
0
30
Member Avatar for deviss

Hello I'm new to sql (sql 2000 database) and i'm trying to get two simple things. I have two sql queries that i run in order to display a result and to update another one. The queries that i run in sql query analizer are: 1. select memb_guid from MEMB_INFO …

Web Development display php sql
Member Avatar for mathieu89
0
329

The End.