52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for devinodaniel

Hello friends! Suppose I have something similar to this HTML (this is not my exact HTML, rewritten to simplify): [CODE] <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> …

Web Development javascript javascript-jquery
Member Avatar for devinodaniel
0
117
Member Avatar for rand486

I'm currently putting together a map that shows the jurisdiction of different offices. I'd like to be able to draw the borders on the map (already done in a PNG), and allow users to either click the map roughly where they live, or type in a postal code. This will …

Web Development image php seo
Member Avatar for rand486
0
134
Member Avatar for arthcarrigan

Hello all, I seem to have a problem, hope if you can help me out. So the application is written in asp.net c#, and its implemented on a win server 2008 R2 iis 7. sql 2008 The server has two network cards, each on a seperate subnet. So that people …

Web Development asp asp.net
Member Avatar for arthcarrigan
0
151
Member Avatar for LloydFarrell

Hi everyone, I have a pagination script that is working great - What I am trying to is use a variable from the url and insert that into my pagination Here is the working pagination - [code] <?php /* Now we apply our rules and draw the pagination object. We're …

Web Development php ui-ux
Member Avatar for tomato.pgn
0
123
Member Avatar for divyakrishnan

Hi... I have a problem to load a PDF file which is stored on another machine.I had loaded the PDF on the same machine using following PHP script.Here I had used a hyper link to load PDF. [CODE] <?php $file="first"; $pdfFile=$file.".pdf#page=1"; ?> <a href="<?php echo $pdfFile; ?>" target="_blank" > Click …

Web Development file-system pdf php
Member Avatar for divyakrishnan
0
772
Member Avatar for rohitmanhas_12

iam working on project in asp.net using c#.... iam getting this error when iam inserting value from form to database... Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@Occupation"... how to remove this error... plz reply...

Web Development asp.net
Member Avatar for Sarama2030
0
1K
Member Avatar for kio

Hi guys, i'm doing my FYP, and facing the following problem. below is my code for the javaScript [CODE] <script language="JavaScript"> function deleteAccount(ckId){ [COLOR="Green"]alert(ckId);[/COLOR] var index = document.getElementById(ckId).value; document.getElementById('hiddenind').value = index; var conf = confirm("Are you sure you want to permanently remove this account?"); if(conf == true) { [COLOR="Red"]document.form.action = …

Web Development javascript
Member Avatar for gsting_88
0
885
Member Avatar for new_developer

Hi everyone, Please check php code below, when i load this page in browser it gives me following errors. "Notice: Undefined index: submit in E:\wamp\www\login\register.php on line 4" "Notice: Undefined index: fullname in E:\wamp\www\login\register.php on line 5" "Notice: Undefined index: username in E:\wamp\www\login\register.php on line 6 "Notice: Undefined index: password …

Web Development php
Member Avatar for new_developer
0
103
Member Avatar for xxreenaxx1

I have two table of same data. First table is written by the admin and the second data is written by the user. Now I want to compare these two and see if they match, if not then the correct data is displayed. So far I am retrieving the user's …

Web Development php
Member Avatar for xxreenaxx1
0
113
Member Avatar for xxreenaxx1

I have two delete function and would like to make this as one. So I can use this on my webpage. But not sure how? Anyone willing to help me :D [CODE=php] DELETE FROM test WHERE Tes_ID=$Tes_ID; DELETE FROM question WHERE Tes_ID=$Tes_ID [/CODE]

Web Development php
Member Avatar for xxreenaxx1
0
81
Member Avatar for ale89

Hi everyone! I'm making my own forum without any bulletin board system that is already done and all you need to install, no idea why my own to make a code made ​​by me. At the time of creating a new topic in my forum, What me recommend the text …

Web Development php
Member Avatar for diafol
0
169
Member Avatar for vibhaJ

Hello All, I am having one email template code as shown below. [CODE] <table width="400" border="0"> <tr> <td><strong>Id</strong></td> <td><strong>Name</strong></td> <td><strong>Address</strong></td> </tr> <tr> <td>##ID##</td> <td>##NAME##</td> <td>##ADDRESS##</td> </tr> </table> [/CODE] Site administrator manage this. Now i want php code to dynamic replace [B]##key##[/B] code. It is simple for one record but here …

Web Development php
Member Avatar for diafol
0
90
Member Avatar for RoyalElite96

Hello everyone, I have one container div with several <div>About</div>, <div>More Info</div> etc. in it. on the main container I applied onmouseover to execute a JAVA function. Apparently, every time I hover a <div> in the container it runs the JavaScript again. What is it, I'm doing wrong? Thanks in …

Web Development html-css javascript
Member Avatar for McLaren
0
2K
Member Avatar for patrickm129

Hi all, I'm working on a login system for my site. But when I use mysql_num_rows I get an error [CODE]"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/patrickm129/patthepcwizard.com/login02.php on line 25"[/CODE]. I'd really appreciate it if you would be able to solve this with me. P.S.: …

Web Development dns html-css mysql php
Member Avatar for happytogether
0
111
Member Avatar for drewpark88

Hey guys, What would be the easiest way to retrieve Google Analytics Monthly Visitors & Pageviews? I just want to display them in text for my website like: Visitors this Month: 1,222 Pageviews this Month: 3,433 If you have example code or a link to a tutorial that would be …

Web Development google php
Member Avatar for pavankumarr
0
258
Member Avatar for shailaja mohite

Hi, I am create one application in asp.net. I have to use datagrid view in this application. I want to sort Gender. I am use the template field in datagrid view. [CODE] <asp:LinkButton ID="LnkBtnGender" runat="server" CommandName="Sort" CommandArgument="Gender">Gender</asp:LinkButton> [/CODE] plj help me..

Web Development asp.net
Member Avatar for shailaja mohite
0
106
Member Avatar for puvi

hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the …

Web Development javascript-jquery php
Member Avatar for puvi
0
594
Member Avatar for drewpark88

Hey guys, quick question. I am new to Jquery and just need a bit of assistance. I want to create an image gallery with one div holding all of my thumbnails (.thumbs) and the second div (which would be to the right of the thumbnails) would be an enlarged image …

Member Avatar for drewpark88
0
274
Member Avatar for Joshua Kidd

Hello all, I have this page that I made: [url]http://www.globalvirtualairlines.com/MyPages/web%20app.php[/url] and on the middle column called "Total Flights" and there are many 0's. I want to be able to change all the 0's to NONE. How would I do this? Can someone help? Thanks. :)

Web Development php
Member Avatar for Joshua Kidd
0
116
Member Avatar for avmaza

Dear friends, I have created one form to search the data from the database. the form is having four text button to get input for search. if the search criteria matches, it will display the results on next page. But I want to print while giving the input data in …

Web Development php
Member Avatar for nomita
0
181
Member Avatar for teedoff

Ok back again! lol I can easily use the ListSort to sort a predefined list: [CODE] <cfset myList = ListSort("wango, tango, jango,lolo,alpha","TextNoCase","ASC")> <cfoutput>#myList#</cfoutput> [/CODE] Which results in a simple text in alphabetical order like so: alpha, jango, lolo, tango, wango What I WANT to do though is sort through a …

Web Development coldfusion
Member Avatar for teedoff
0
263
Member Avatar for phpDave

Hi, I'm working on a site that allows users to connect with each other. User can search, find friend, and then request a connection. It works but if user request a second time it duplicates the row in table. I only want INSERT if does not exists. Here is code. …

Web Development php
Member Avatar for phpDave
0
96
Member Avatar for azgold472

Ok so what im trying to do here is set putme to be coding so that when the test.txt is read it replaces `<!--ReplaceMe -->` with the contents of putme. How do i get putme to just store it at text instead of coding? <!-- Start putme --> <cfset putme …

Web Development coldfusion
Member Avatar for arrgh
0
131
Member Avatar for agr8lemon

I've used this many times and it's always worked, however for some reason I'm missing something. [CODE]$ddType_query="SELECT DISTINCT Type from dbo.LTN_HARDWARE"; $ddType_result=odbc_exec($conn, $ddType_query); while ($ddTypeOptionsRows = odbc_fetch_array($ddType_result)) { //echo $ddTypeOptionsRows['Type'], "\n"; $ddTypeOptions = $ddTypeOptionsRows['Type'] ; } odbc_close($conn);[/CODE] I'm trying to get the $ddTypeOptions to contain all the distinct results of …

Web Development php
Member Avatar for diafol
0
94
Member Avatar for woolm110

Hey Everyone, I'm currently creating a simple shopping cart with interaction to PayPal. I've set up a database with a table named orders. I'm using the PayPal sandbox and what I'm looking to do is to post the order details into my database on payment completion. I have a script …

Web Development mysql php
0
159
Member Avatar for tcollins412

i have a script that sends an email to cellphones: [CODE=html] <form name='celltest' method=post> <input type=hidden name=cellsubmit value=yes> <tr><td rowspan=1>Mobile Phone: <input type='text' class='efield' id='phone' name='phonetest' style='width: 200px;'></td><td style='padding-bottom: 15px; padding-left: 3px;'>&nbsp;<a href="?ref=ea&dotest=1" class='eap' style='width: 50px;'>Test</a></td></tr></table></td></tr><tr><td style='font-size: 12px; text-align: left; padding-top: 2px; padding-left: 35px;'>Provider: <select name=provider class=efield style='width:258px;' id='provider'> <option …

Web Development email php smartphone
0
132
Member Avatar for rom.

I'm making a simple IP logger. I've tested the script, but the database doesn't seem to filling up. It could be a problem with the database format etc, details below. Otherwise, I must have made an newbie oversight in the PHP. Some fresh eyes would be greatly appreciated! id: INT(10), …

Web Development lan-wan mysql php
Member Avatar for diafol
0
170
Member Avatar for LloydFarrell

Hi all... I am trying to get data from a table field called "custom" from a mysql database the data is stored as 23-1, where 23 is the id and 1 is the quantity How do I build an array or extract the data and place the values into two …

Web Development php
Member Avatar for LloydFarrell
0
102
Member Avatar for klemme

Hi All! I have a table with different kinds of customers information. With the code I have posted below, I want to pull out all the records from the database. When I progress to make the "create_record" page, my intention is that it should automatically be added as an extra …

Web Development mysql php
Member Avatar for joban.ali
0
123
Member Avatar for branding4you

I have some images 5 or 6 that are 800 x 300 i use in my website banner. The start loading but when number one is 1/3 of the way teh next one starts then the next, it looks real messy nee some way to preload them ... like black …

Web Development javascript
Member Avatar for branding4you
0
161
Member Avatar for devinodaniel

I have a site the generated a row of data from MySQL db. The parent element DIV is called "enclosure". This shows up as hidden when page loads. I have a link "show/hide" that I'm using to show the data when click using jQuery. My problem: Since all the rows …

Web Development javascript-jquery mysql php
Member Avatar for macneato
0
207
Member Avatar for sanjanapriya

this is my problem my jsp page is [code]<%@ page import="java.sql.*"%> <%@ page import="java.util.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:truth","sa",""); Statement st=con.createStatement(); String cate=request.getParameter("T3"); String user=request.getParameter("user"); String pass=request.getParameter("passwd"); String reenter=request.getParameter("rpasswd"); String mail=request.getParameter("mail"); String credit=request.getParameter("credit"); String address=request.getParameter("add"); String city=request.getParameter("city"); String state=request.getParameter("state"); String country=request.getParameter("country"); String mobile=request.getParameter("mobile"); out.println(user+pass+mail+mobile+address+city+state+country); st.executeUpdate("insert into usertable values('"+user+"','"+pass+"','"+mail+"','"+mobile+"','"+address+"','"+city+"','"+state+"','"+country+"')"); response.sendRedirect("Index.jsp"); %>[/code] this …

Web Development apache java-jsp
Member Avatar for jwenting
0
269
Member Avatar for an00p

Hello Friends, I have an issue after upgrading my firefox to version 4. This issue was there in IE8 but worked nicely in firefox3 Here is my issue: I have a page with three forms and each form posts using "htmlentities($_SERVER['PHP_SELF'])" action that is to the same page. Based on …

Web Development http-protocol php
Member Avatar for an00p
0
122
Member Avatar for TechySafi

[CODE]<script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID) { if(XMLHttpRequestObject) { var obj = document.getElementById(divID); XMLHttpRequestObject.open("GET", dataSource); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { …

Web Development javascript php
Member Avatar for TechySafi
0
238
Member Avatar for coervivekmca

is there any way to find browser location based on city ,state or country....to switch home page accordingly

Web Development java-jsp
Member Avatar for javaAddict
0
68
Member Avatar for komyg

Hi, I am updating a Web Service server from JBoss 4.2.2 to JBoss 5.1, however when I began to use JBoss 5.1 I've got an error saying that one of my properties files could not be loaded. I have put this file in the following path: C:\Servers\jboss-5.1.0.GA\server\default\conf And I am …

Web Development java-jsp
Member Avatar for komyg
0
147
Member Avatar for Gabums

Hello all, I am very new to JQuery and thought I'd go about teaching myself. I took three different codes I found online and combined them for my site. I used: accordion menu ([url]http://www.i-marco.nl/weblog/jquery-accordion-3/[/url]) a sliding menu and coda-slider2.0 ([url]http://www.ndoherty.biz/demos/coda-slider/2.0/#1[/url]) The combined menu works great for my main navigation but …

Web Development javascript javascript-jquery
Member Avatar for ccwtrainer
0
88
Member Avatar for vijaygupta

hello , I am writing a validation code in which i have validate two feilds and check if the feild username and email already exist in the database. please help

Web Development javascript mysql php
Member Avatar for jkon
0
165
Member Avatar for GreaseJunkie

Hi, I've looked around and cannot find an answer to this. I want every email that comes in to a certain email address to get stripped of everything but the subject and email address and get stored into a MySQL database. First, is this possible? If so, how? If someone …

Web Development email mysql php
Member Avatar for GreaseJunkie
0
261
Member Avatar for fidolas7

1.<?php 2.$con = mysql_connect("localhost","root","")or die (mysql_error()); 3.mysql_select_db("registration", $con); 4.function protect($value){ 5.$value=mysql_real_escape_string($value); 6.$value=stripslashes($value); 7.$value=strip_tags($value); 8.} 9.if(isset($_POST['upload']) && $_FILES['file']['size'] >0) 10.{ 11.$fileName = $_FILES['file']['name']; 12.$tmpName = $_FILES['file']['tmp_name']; 13.$fileSize = $_FILES['file']['size']; 14.$fileType = $_FILES['file']['type']; 15.$fp = fopen($tmpName, 'r'); 16.$content = fread($fp, filesize($tmpName)); 17.$content = addslashes($content); 18.fclose($fp); 19.if(!get_magic_quotes_gpc()) 20.{ 21. $fileName = addslashes($fileName); 22.} …

Web Development file-system php
Member Avatar for dornaled
0
90
Member Avatar for JimBobUKII

Hi I was wondering if someone could help me. I have a dropdown list which is populated from MySQL. The dropdown data is classed as sections. When a user selects a section from the dropdown a form on the same page is populate with the section name and they are …

Web Development php
Member Avatar for JimBobUKII
0
150
Member Avatar for veledrom

Hi guys, I have two questions, I wonder if they are possible to implement. 1. [ICODE]<form action="nextform.php" method="POST">[/ICODE] Is it possible to hide nextform.php from other users as I don't want anyone seeing where the data is being POSTed. Or similar solution. 2. Is it possible to hide javascript files …

Web Development javascript php
Member Avatar for Akash Saikia
0
146
Member Avatar for minkzzzzzzz

I create website on asp.net, is name ExpenseReport First, I create 'DBConnect' class in App_Code by using namespace ExpenseReport [CODE]using System; using System.Data; using System.Configuration; using System.Collections; using System.Data.SqlClient; namespace ExpenseReport { public partial class DBConnect { private SqlConnection objConn; private SqlCommand objCmd; private SqlTransaction Trans; private String strConnString; private …

Member Avatar for Akash Saikia
0
614
Member Avatar for wild_angel

Hi All, I don't know if I'm asking it right. I have a jsp for monthly report that calling java class and passing date parameter (year and month) into that java class. The java class has a statement that call procedure in database. It's so time consuming to show the …

Web Development java-jsp
Member Avatar for Dean_Grobler
0
158
Member Avatar for vitaquous

I would like to be able to take data from a MySQL DB and place it in various div elements. I would like to do this after the page has been rendered. I know I could do this using JavaScript with innerHTML, but do not know what function to use …

Web Development html-css php
Member Avatar for vitaquous
0
15K
Member Avatar for puvi

hi frens I am trying to pass array in $_SESSION from the abc.php to generatepdf.php. the pdf is not getting generated after i wrote this part of code. this is in generatepdf.php [CODE] foreach($_SESSION['refcode'] as $temp) { $refcode[]=$temp; } foreach($_SESSION['description'] as $temp) { $description[]=$temp; } foreach($_SESSION['unit'] as $temp) { $unit[]=$temp; …

Web Development pdf php
Member Avatar for puvi
0
102
Member Avatar for paresh_thummar

I want to check weather my database contain row or not? and if it contain then i want to delete that row. this process can be done during run time of page.

Web Development asp.net
Member Avatar for Knvn
0
87
Member Avatar for aniperiye

i have a problem. i want to import multiple tables from a same excel sheet to a datalist or more.how can i identify different tables.please help anyone. advance thanks to all.

Web Development asp.net dataset
Member Avatar for aniperiye
0
112
Member Avatar for slrobinson1983

hello all. i have this code... [CODE]<?php $query= "SELECT * FROM table"; $result=mysql_query($query) or die(mysql_error()); $num_rows = mysql_num_rows($result); if($num_rows > 0) { echo "<table>"; while($row = mysql_fetch_array($result)) { echo "<td>" . $row['data'] . "," . "</td>"; } echo "</table>"; } ?>[/CODE] lets say it is displaying from 5 records, it …

Web Development php
Member Avatar for diafol
0
105
Member Avatar for erioch

Hi all, I have this code for registration page, I have run some diagnostic tests and found that it is valnurable for Cross site scripting, any help??? or sugestion??? I have attached a copy of the report. Other pages had valnurabilities but very low.... I am not good at asp …

Web Development asp session
Member Avatar for reygcalantaol
0
435

The End.