17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for progurammaar

Hello, I made a page that allows users to login, if id and password are correct than it sets up a cookie and says 'Hi'. Now i can access any page on the site after logging in(Which was restricted if you arent logged) Now this works fine in firefox and …

Web Development caching php
Member Avatar for progurammaar
0
99
Member Avatar for Will Gresham

Wasn't sure what to put as the title, but what is happening is this: I have div elements on a HTML page, when they click on the div it is replaced with a textarea containing the div contents in order to edit this (eventually there will be a form/submission button …

Web Development javascript
Member Avatar for xyzweb
0
336
Member Avatar for vikette

Hello, I'm creating my first website using master pages and asp.net. As part of this project, I need to display a random banner image at the top of each web page. Let's say i have an "images" directory with image1.jpg, image2,jpg, image3.jpg and image4.jpg. In the past, I have used …

Web Development asp.net image
Member Avatar for serkan sendur
0
303
Member Avatar for OmniX

Sorry been out of commision for a few months. Got a newbe question. What value is returned from an sql query that returns no rows? Example: [code=php] $a = "SELECT * FROM a WHERE b = c"; $b = my_sql_query($a); [/code] Note: Table Name - a Table Field - b …

Web Development php sql
Member Avatar for OmniX
0
2K
Member Avatar for serkan sendur

One of our new members "Gurvinder Suman" asked me how to create a custom select button for gridview in order to display details in the detailsview. Here is the answer: When you click the smart tag of the gridview and enable selection, it creates a linkbutton by default and writes …

Web Development asp.net
1
241
Member Avatar for veledrom

Hi, In PHP page, Code below always returns TRUE even no record is updated. How can i solve this problem? Thanks [code] $q="UPDATE login SET password=SHA1('$newPassword') WHERE id='$loginID' AND password=SHA1('$oldPassword')"; $run=mysql_query($q); if ($run===TRUE) { echo "SUCCESSFUL"; } else { echo "ERROR: Old password is wrong. Please try again."; } [/code]

Web Development php sql
Member Avatar for nav33n
0
136
Member Avatar for theimben

Ive got a MySQL search, which searches an index of urls. The search parameter searches titles. What I want to do is have something like Google. So, if someone searches: [CODE]site:example.com something to search[/CODE] It would look for example.com in one column then from those results it would look for …

Web Development google mysql php
Member Avatar for theimben
0
1K
Member Avatar for veledrom

Hi, Code below always returns only 1 record therefore i don't need while. How can i get result without while loop? Thanks [code] $q="SELECT id FROM login WHERE username='$username'"; $sql=mysql_query($q); if (@mysql_num_rows($sql)==1) { while ($arr=mysql_fetch_array($sql)) { $id=$arr["id"]; } } [/code]

Web Development php
Member Avatar for nav33n
0
75
Member Avatar for Venom Rush

Hi there Having trouble calculating the final cost of choices made by a user. I have 4 radio buttons and 2 checkboxes. The first three radio buttons are, all intensive purposes, chocolates with the last radio button stating that the user doesn't want any of the chocolates. The two checkboxes …

Web Development javascript
Member Avatar for Venom Rush
0
109
Member Avatar for Shanti C

Hello... Good Morning All... How to hide all query strings in my url and here i can't use hidden variables for these all because in all times i couldn't send them with form submission..And my page is having four query strings to be sent... If any body have any clues …

Web Development php
Member Avatar for Shanti C
0
5K
Member Avatar for tulsi_apr03

can anybody help me , how can we call a javascript function using firefox browser. my code is working fine when im using IE but not for firefox. Why i cant understood.When im clicking button no action was taken and nothing was happned. [code=JavaScript]<script type="text/javascript"> function login_validate(frm) {var name=frm.user_name.value; if(name=="") …

Web Development javascript
Member Avatar for tulsi_apr03
0
161
Member Avatar for hinasaeedali

Respected, Requirement is when body loaded there must be 1 increment in the variable. and total number of loading the body display on the button (document.button name.value=variable name)

Web Development javascript
Member Avatar for essential
0
132
Member Avatar for theimben

Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code]

Web Development php
Member Avatar for nav33n
0
106
Member Avatar for lifeworks

Hi Im trying to re-make one of those image galleries where you click the thumbnail and the whole browser window is blacked out with the larger image displayed in the middle. Ive gotten as far as finding a script to hide this black layer and reveal it onMouseClick... but if …

Web Development image javascript
0
78
Member Avatar for shadiadiph

can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please …

Web Development php
Member Avatar for shadiadiph
0
131
Member Avatar for bvaz

I have downloaded CF successfully and have been successful in connecting to my own database. However, I am following the Developer Center Tutorial for creating a record set and table to display the query in DreamWeaver. It all works as advertised however I am only getting the first entry in …

Web Development coldfusion
Member Avatar for bvaz
0
133
Member Avatar for julseypart

hi, i have set a condition on the upload function [code]if (FileUploadControl1.PostedFile == null) { lblResult.Text = "Please select a file first"; } else { //upload a file }[/code] but if i press upload button when no file is selected it still uploads a blank file regardless of the "if' …

Web Development asp.net file-system
Member Avatar for julseypart
0
132
Member Avatar for serkan sendur

hi guys, today i found out that there is a free javascript multithreading library at : [url]http://www.infoq.com/articles/js_multithread[/url] it is under GNU license and free to use. It is a great and very easy to use tool.

Web Development javascript multithreading
0
67
Member Avatar for changeco

I have a small elearning app and I want to check against the DB for the start and end dates (from mysql) and if they meet the criteria, good, else location.redirect to expired.php?? It doesn't redirect, any suggestions? Here's an example below... [code] function Timebomb() { var StartDate = <?php …

Web Development javascript
Member Avatar for nav33n
0
102
Member Avatar for marjan_m

Hi, I need to discuss some problems regarding handling of text boxes using php which are as follows: [LIST=1] [*]Can we set focus of a text box when an if condition is true in php? [*]Can we disable a text box when an if condition is true in php? I …

Web Development php
Member Avatar for marjan_m
0
98
Member Avatar for lonestar23

I am trying to parse the the following xml code below, I need to retrieve only totalhits="376719" in the "resultset_web" child. I also need to use code similar to the following: [CODE]<?php $doc = DOMDocument::loadXML($information); $result_node = $doc->getElementsByTagName('resultset_web'); $tHits = $result_node->item(0)->getAttribute('totalhits); ?>[/CODE] /* XML TO BE PARSED */ [CODE]$information = …

Web Development php xml
Member Avatar for lonestar23
0
203
Member Avatar for ahmksssv

Hi frnds.... I have a page with different topics and explanations.... the total description in a single page..and all headlines at one place... now iam clicking on nth headline, than the page shows that nth topic description location... plz tell me how can i do that?

Web Development php
Member Avatar for nav33n
0
84
Member Avatar for queenc

hi If the user changes his photo i want the [B]else[/B] to work.if u the does not change his old photo i want the [B]if[/B] to work.but my below code is not working like that....only the if part is working[CODE] if(isset($_REQUEST["update"])) { $uploadedfile=$_REQUEST['uploadingfile']; $upload="comphoto"."/". $_FILES['uploadingfile']['name']; $filename=$_FILES['uploadingfile']['name']; echo $filename; move_uploaded_file($_FILES['uploadingfile']['tmp_name'],$upload); if($filename!="NULL" …

Web Development php
Member Avatar for nav33n
0
127
Member Avatar for theimben

Im using vBulletin and Im making a little script which needs to integrate with it. But due to vBulletins lack of PHP plugin support I have to use a client side language to make it work. So I have this script, its queries a database and has pagination. I want …

Web Development javascript vbulletin
Member Avatar for theimben
0
66
Member Avatar for arvindikchari

Hello, I have a script which uses a colorpicker in which the user can select a color, and in the preview section the color of one div is changed to this color value. This is done by a javascript function of the color picker. called setcolor. The code for this …

Web Development javascript php
Member Avatar for essential
0
248
Member Avatar for mem81

Hello, I am trying to get the currently selected values from dropdown lists and textboxes from a web page and write them to an access database. I am using MS Web Developer 2005 Express. To do that I have created data Source , for the InsertQuery Property of the DataSource …

Web Development asp.net
Member Avatar for mem81
0
140
Member Avatar for luckyads

Hi! Error - Conversion from string "DataItem.partOne" to type 'Double' is not valid. I have written the following databinding code in the datagrid and the am getting the above error - [Code=asp.net] <Columns> <asp:TemplateColumn HeaderText="Part B" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:checkbox runat="server" ID="partTwo_Edit" checked= '<%# DataBinder.Eval(Container, "DataItem.partTwo") %>' Enabled = '<%# IIf(DataBinder.Eval(Container, …

Web Development asp.net
Member Avatar for luckyads
0
102
Member Avatar for arshadalishaikh

I am using php 5.1 version and in dom module domxml is enabled. I am generating xml with php and i checked it generates correct xml. But when I use if( !$dom = domxml_open_mem() ) { // } then i got the following error: Fatal error Call to undefined function …

Web Development php xml
Member Avatar for pritaeas
0
177
Member Avatar for ahmksssv

Hi frnds.... i have a colmn in database like [B]CONTENT[/B] ..it contains 20 lines of of data....but i need to select only 5 lines of data to a single variable...... plz tell me how can i do?

Web Development php
Member Avatar for nav33n
0
119
Member Avatar for ahmksssv

Hi frnds.... i am inserting bulk data into database...here i phase small problem...when the data having (') single quotes it shows error...because php takes ' as many ways..... i think htmlentites() tag is there in php...i dont know how it uses perfectlyy... plz resolve this problem asap..

Web Development php
Member Avatar for ahmksssv
0
82
Member Avatar for Shanti C

Hello Friends... Now Im working on URL Rewriting... I got them worked..But i have few doubts about this concept... Any Experts will reply me here.. My leftproducts.php page have some times s_id query string and some times along with s_id , start query string also.. means sometimes: [code] www.something.com/leftproducts.php?s_id=1 [/code] …

Web Development php
Member Avatar for Shanti C
0
343
Member Avatar for Venom Rush

What I'd like to do is store the "selected" value of the drop down box in a DB. At the moment the selected value for the drop down list is pulled from the DB. Now what I want to happen is if I don't want to change that specific option …

Web Development php
Member Avatar for Venom Rush
0
1K
Member Avatar for chriscross86

hi, there...im trying to figure out where to use these authentication codes as im trying to come up with a login page. these codes are used over the <head> tag, but is it used within the <html> tag? [code=xml]<?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- enable forms authentication --> <system.web> <authentication …

Web Development asp asp.net xml
Member Avatar for johnny.g
0
75
Member Avatar for johnny.g

hii alll,... i have a feedback form whr the user enters the data and it gets stored in the database.i have also given validations for submitting the form,,(for e.g. the user wil have to enter his name,,he cant leave tht field blank)...the prob is whn i click on the signout …

Web Development asp.net image web-server
Member Avatar for serkan sendur
0
143
Member Avatar for dmanw100

Hello, I am new to php and enjoy the fact that it is very similar to languages that I'm much stronger with (mainly C++ and Java). While working through the w3 school's tutorials I noticed a foreach() loop. What loop in C++/Java would this be similar to? It seems like …

Web Development php
Member Avatar for Stefano Mtangoo
0
190
Member Avatar for theimben

Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …

Web Development mysql php
Member Avatar for theimben
0
113
Member Avatar for Stefano Mtangoo

Hi All, Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand: ---- If I divide …

Web Development php
Member Avatar for Stefano Mtangoo
0
114
Member Avatar for netsperience

I created a prototype.js/window.js "Window" pseudo window div with another page from the same directory loaded in its iframe I could not put a button/link on the iframe doc that would close it by calling functions in the parent window I used "window.parent" "parent" alone "top" but the only thing …

Web Development javascript
Member Avatar for scrager
0
511
Member Avatar for Besherek

Hi folks, I've used a while loop to call about 5 category names from a database to make a navigation. I didn't want to hard code the categories because I want to be able to change them using Content Management and have the nav update from the database. [CODE]<a href="category.php?cat=<?php …

Web Development php
Member Avatar for Besherek
0
193
Member Avatar for sid78669

hey, I want to write a small snipet which will first prompt the user to input a javascript command, and then execute that command on the current page. Is there any way to do it?? say the prompt is like: [CODE=javascript]javascript: prompt();[/CODE] (its working) and the command is : [CODE=javascript]javascript: …

Web Development javascript
Member Avatar for scrager
0
455
Member Avatar for theimben

This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description …

Web Development mysql php
Member Avatar for theimben
0
96
Member Avatar for PinoyDev

Good day to everyone.! I just want to ask a help if is it possible to fit any size of image in just a 32 x 32 image placeholder. i have already loaded the image from the database by just looking its path.but it it will display on the page …

Web Development image php
Member Avatar for PinoyDev
0
94
Member Avatar for FlashCreations

Hey Everyone! I have come across a very interesting problem that seems to be impossible to solve. Basically a web application that I am working on relies on a JavaScript function called go to change the input named view to the page name and submit the form. This form's type …

Web Development javascript
Member Avatar for mschroeder
0
372
Member Avatar for rouse

I think I have a PHP configuration problem on my development machine where I am setting up a development environment which interrogates a local MySQL database from Eclipse on a Windows XP platform using an Apache server. I can execute the PHPINFO program so I have a minimal PHP system …

Web Development apache mysql php windows-server
Member Avatar for rouse
0
1K
Member Avatar for serkan sendur

is it possible to load xml from local file system using ActiveXObject("Microsoft.XMLDOM") ?

Web Development javascript xml
Member Avatar for serkan sendur
0
78
Member Avatar for ahmksssv

Hi frnds... i have been successfully uploaded videos to uploads folder through db... now i need to play that videos ....plz provide code for this one....presently ineed mediaplayer format... i got the video path....after i dont know how do that...is there any script to run videos.... plz help me asap...

Web Development php video
Member Avatar for ahmksssv
0
93
Member Avatar for veledrom

Hi, I have a textarea with 2 information in (bmw, mercedes). When i click on bmw, it will be transfered into other texarea. How can i do it? Thanks

Web Development javascript
Member Avatar for veledrom
0
100
Member Avatar for veledrom

Hi, I have WAMP installed on XP. I put everything under wamp/www folder to be run PHP. I want to use D:\ drive as well to run PHP along with wamp/www. Thanks

Web Development php
Member Avatar for veledrom
0
91
Member Avatar for hbk_star2006

hi please help me to rid of these following warnings in following php script Actually this script is running smoothly on my local window server, but on mu linux hosted server following warnings are coming.. Please see please please please help me.. -------------------------------------Warnings------------- Warning: mysql_fetch_array(): supplied argument is not a …

Web Development php
Member Avatar for hbk_star2006
-1
120
Member Avatar for gangsta gama

Hey whats up guys? I was using thenewboston tutorials on youtube and I am stuck. I was trying to connect to my database that i made. [code] <?php //opens connection to mysql server $dbc=mysql_connect('localhost','kybo13','****'); if(!$dbc) { die('Not connected: ' . mysql_error()); } //select database $db_selected=mysql_select_db("kybo13_game",$dbc); if(!$db_selsected) { die("Cant connect: " …

Web Development php
Member Avatar for gangsta gama
0
138

The End.