52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lawrenceh

Hi How is it possible to write Ajax code using var timerId = setTimeout("test_function();", 250); and xmlhttp.onreadystatechange=function() but without the user doing anything. Thanks in advance, Lawrence

Web Development javascript xml
Member Avatar for lawrenceh
0
127
Member Avatar for Xufyan

look at the code first, [CODE]<?php $name=$_POST['name']; ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; …

Web Development mysql php ui-ux
Member Avatar for diafol
0
95
Member Avatar for rakesh4java

[CODE]import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class getname extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void destroy() { } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { String name = null; PrintWriter out = response.getWriter(); if(request.getParameter("txtname") != null) …

Web Development apache api java-jsp session xml
Member Avatar for rakesh4java
0
25K
Member Avatar for professor123

can l plz ask you something ... l hav a database with 4 tables i.e User(fname, lname,email and userid ------primary key{userid} ) Exam( examid, examname-------primary Key{userid}) Exam_user(examid, userid------primary key{examid}) Exam_category(categoryid, categoryname----prmary key{categoryid}) HOW CAN YOU WRITE AN SQL QUERY THAT ALLOWS U TO CREATE/retrieve A NEW TABLE WITH FIELDS;;;; (fname, …

Web Development php
Member Avatar for mschroeder
0
112
Member Avatar for javanew

please help me,, i have made a submit button in my contact us form,, but the problem is that when i have put echo "Successfuly sent"; it is aligned on the left , and it doesnt look good as a design how i can add inside echo string something like …

Web Development php
Member Avatar for dietdew12z
0
163
Member Avatar for simonquasar

hi guys! i've a mapped image and jquery in the following code, works fine with Chrome and Safari, but Firefox doesn't recognize the onclick function and I'm wondering why! [CODE]<img id="menu" src="/imgs/home/menuOK.png" border="0" align="left" usemap="Map_Menu"/> <map name="Map_Menu" id="Map"> <area shape="poly" coords="16,189,103,155,99,149,5,169" href="#" onclick="$('#contenuto').html('<iframe src=bio.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser …

Member Avatar for simonquasar
0
237
Member Avatar for cossay

[CODE] <html> <head> <title>MY FIRST AJAX SCRIPT</title> <script language = "javascript" type = "text/javascript"> function checkName() { var xml; try { xml = new XMLHttpRequest(); } catch(e1) { try { xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e2) { return false; } } xml.onreadystatechange = function() { if(xml.readyState == 4) { alert(xml.responseText); …

Web Development javascript xml
Member Avatar for cossay
0
104
Member Avatar for mrlol

Hi guys, Need your help. Currently my development server using Wamp server. please read below for services details: * Apache/2.2.11 (Win32) PHP/5.3.0 * MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ * PHP extension: mysqli * Server: localhost (MySQL host info: localhost via TCP/IP) * Server version: …

Web Development apache client-server mysql php
Member Avatar for R0bb0b
0
368
Member Avatar for Awah Mohamed

hey people . i have a question and i dont know where to post it . i want tow wrtie .htaccess file that rewrite the url of my links as well as increate my websites memory , i mean the size of the uploaded files and so on . i …

Web Development apache php
Member Avatar for tiggsy
0
88
Member Avatar for sahingidis

I am using PHP and MySQL E-Commerce book and when i want to see department list i got these errors. I did lots of things but nothing happened. does anyone help ? [COLOR="Red"] ERRNO: 2 TEXT: include_once(catalog.php) [function.include-once]: failed to open stream: No such file or directory LOCATION: C:\xampp\htdocs\seeshop\presentation\departments_list.php, line …

Web Development file-stream mysql php
Member Avatar for tiggsy
0
122
Member Avatar for mangel.murti

hello all,, i am working on online hotel booking project . where user can pic room in Hotel and booked them using paypal. what if user want to cancel booking... i used paypal api for that.....and payment type is sale.... my Question is that 1. if user wants to cancel …

Web Development api php
Member Avatar for mangel.murti
0
107
Member Avatar for Suganya B

I need to bind purticular external webservice webmethods name with in asp:dropdownlist at run time. anybody can help please.. Thanks in advance.. Suganya.B

Web Development asp asp.net
Member Avatar for CrappyCoder
0
105
Member Avatar for Legend32A

Hello, I am trying two days now and I have spent about 12+ hours on this and I can't find a solution :( Please help, or I am gonna lose my mind! I am trying to save user's monitor resolution on MySQL. I almost done it but, I have a …

Web Development mysql php
Member Avatar for Ninetie
0
176
Member Avatar for billmudry

Sometimes a person can get too close to their work that they cannot see what is going on wrong. I hope that is the case here. I have been working on my favorite project, a large wood knowledge base at: [url]www.prowebcanada.com/taxa[/url]. There is enough data to look up already and …

Web Development algorithm html-css mysql php
Member Avatar for pritaeas
0
191
Member Avatar for soomro_moon

I'm getting an error as i'm trying to Insert Data From a Form Into a Database through PHP but i don't know whats wrong with my code..help [CODE] <? include("connection.php"); mysql_query("insert into patient_information (ID,admission_ID,patient_ID,guardian_ID,admission_date,admission_time,patient_status,reason_for_status,referred_doctor_ID,referred_doctor_name,assigned_doctor_ID,assigned_doctor_name,department_ID,department_name,ward_ID,ward_no,room_ID,additional_notes) values('NULL','"$_POST[a_id]"','"$_POST[p_id]"','"$_POST[g_id]"','"$_POST[adm_d]"','"$_POST[adm_t]"','"$_POST[p_s]"','"$_POST[r_s]"','"$_POST[r_d_id]"','"$_POST[r_d_n]"','"$_POST[a_d_id]"','"$_POST[a_d_n]"','"$_POST[d_id]"','"$_POST[d_n]"','"$_POST[w_id]"','"$_POST[w_no]"','"$_POST[r_id]"','"$_POST[a_n]"')")or die(mysql_error()); echo $q; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "<script type='text/javascript'> alert('1 …

Web Development php
Member Avatar for Shanti C
0
103
Member Avatar for ankit.pandey3

[CODE]<?php require_once('upper.php'); $error_msg=''; if(!isset($_COOKIE['LoginIdCookie'])){ if(isset($_POST['submit'])) { require_once('database.php'); $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password=mysqli_real_escape_string($dbc,trim($_POST['Password'])); if((!empty($LoginId)) && (!empty($Password))){ $query="SELECT * FROM registration WHERE LoginId='$LoginId' AND Password=SHA('$Password') AND Flag='A'"; $result=mysqli_query($dbc,$query) or die('Not Connected'); if(mysqli_num_rows($result)==1) { $row=mysqli_fetch_array($result); setcookie('LoginIdCookie',$row['LoginId']); //$home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/index1.php'; header('Location: index1.php'); } else{ echo 'Enter right UserName/Password combination or You …

Web Development perl php
Member Avatar for ankit.pandey3
0
104
Member Avatar for ashishchoudhary

Hello, I want to post my product details on amazon but i did not find any web service which provide facility to list your product on amazone. if is there a web service please let me know about that also please tell me if this service is free or i …

Web Development php
Member Avatar for ashishchoudhary
0
105
Member Avatar for Matthew N.

I have made a php comment script. It works fine, except that you cannot veiw the comments, you don't need to sign in or anything, but it wont show the comments. you can veiw the source at [URL="http://www.jsclsftwre.22web.net/testing/index.php"]Veiw it here[/URL]

Web Development php
Member Avatar for chrishea
0
159
Member Avatar for KoolAide2010

I am new to javascript and I am not sure if my idea will even work in java script but here we go. My Dad has a web page and I am trying to help him out with it. He builds duck calls and I am trying to make a …

Web Development image javascript
Member Avatar for KoolAide2010
0
147
Member Avatar for Snakers0725

Hi, I am new here in this forum and I am currently studying JS. I need help with something but I couldn't find any existing problem like mine. anyway, I just want to pick a random sound when Play button is clicked. I just need something to start of then …

Web Development html-css javascript
Member Avatar for Snakers0725
0
128
Member Avatar for ErlendHL

Hi! I have been making a chat program. In PHP I control user inputs with htmlentities so they can't write html. But this also ruins the precious æøåöüÿëäñ etc.. characters! Would it be safe to only remove the < and >s? Or is there another way to avoid this?

Web Development html-css php
Member Avatar for ErlendHL
0
102
Member Avatar for sahromo

what php code should i add if i need the custno[id no] to be included when i submit the log-in button? this code runs, but i really need the code for the custno to be included. start.php [CODE]<?php session_start(); session_destroy(); ?> <html > <head> <title>Login Form </title> <meta http-equiv="Content-Type" content="text/html; …

Web Development html-css php session
Member Avatar for dos_killer
0
236
Member Avatar for omeralper

Hello, I am newbie at ASP.net. I got stuck at a point that hopefully you can help me. I use mssql as database and fetch all my records and images from there by using <asp:SqlDataSource>. I also use [CODE]<asp:Repeater>[/CODE] to show data at every iteration. After fetching data from database, …

Web Development asp.net image mssql
Member Avatar for omeralper
0
165
Member Avatar for mapee

Hi i am new php programmer, and i need your help please i have a page that allows for public visitors to upload multi images but some hackers using my page to upload php files by using image forms to hack my website. i tried to add some code in …

Web Development php
Member Avatar for mapee
0
383
Member Avatar for ritika_khanna

i am doing onine railway reservation project .i have taken a ticket booking form where user can enter passenger detail .i have taken 6 textboxes for name,dropdownlist for age,berth,sex,class. i have written following code for ticket booking but this code is not working when after entering details this code does …

Web Development asp asp.net open-source vb.net
Member Avatar for Ezzaral
0
197
Member Avatar for ithinkimdumb

is there any function in PHP that can access my MsSQL Server...??? Note : All my Script was in Store Procedure

Web Development mssql php
Member Avatar for RUBein_Fair
0
125
Member Avatar for stanley87

i have to insert a lot of data where it might be also use as foreign key at different table.is that possible to add 1 time together the value to all table?can give any example?thx in advance!:)

Web Development php
Member Avatar for sahromo
0
165
Member Avatar for kbomo

I want to map a field, city, from a MySQL database into Google Maps. I found a nice script to do it, but haven't been able to get it to work. If I hard code an array into locations (var locations = ['Seattle', 'New York']), it works fine. Passing this …

Web Development google-api javascript php
Member Avatar for Airshow
0
7K
Member Avatar for imti321

EVERYTHING IS OK DONT KNOW WHY IT DOSENT WORK I THINK THERE IS PROBLEM IN 'PATH' IT SHOWS ERROR ON LINE 27 NEAR </td> [CODE]<html> <table width='70%' align='center'> <tr> <td> <img src='inc/b.png'> </td> </tr> </table> <table width='20%' align='center'> <tr> <td> <a href='index.php'>Home</a><br> <a href='index.php?page=tutorials'>Tutorials</a> </td> <td width='80%'> <?php $page=$_GET['page']; if …

Web Development php
Member Avatar for hielo
0
115
Member Avatar for sedalnas

Hi, i could make my website downloading a pdf files but after downloading i get this error [B][I]" There was an error opening this document. the file is damaged and could not be repaired "[/I][/B] i think the problem is in the PDF version because this problem just occur when …

Web Development pdf php
Member Avatar for chrishea
0
123
Member Avatar for MARKAND911

How can i get DataSource property & Databind method of HTML Table. Do i have to make a new control for it? if yes then how can i do this.

Web Development asp.net html-css
Member Avatar for CrappyCoder
0
93
Member Avatar for marshal_ramdev

hi , I am working on testing some scripts .. But there are lots of errors i am facing .. the common error is Parse / syntax Parse error: syntax error, unexpected '(' .. This is the the line which is currently giving errors while executing . [CODE]md5("som3_admin",$username)()setcookie$password$_POST$username$_POST;[/CODE] plz help …

Web Development php
Member Avatar for marshal_ramdev
0
356
Member Avatar for varsha solshe

i have VB2008 and i m creating website using asp.net but i have to explicitly add images to the project where as on other machines they are automatically added... what settings do i need to change?? :S:|

Web Development asp asp.net
Member Avatar for varsha solshe
0
130
Member Avatar for Xufyan

php mysql simple form help whats wrong with my code ?? every time i refreh my page a new field is created in database 'example' i want my code to create new field in database only if something is insert in text field here is my code [CODE]<?php $name=$_POST['name']; mysql_connect("localhost", …

Web Development mysql php
Member Avatar for Xufyan
0
153
Member Avatar for Shankye

Hi friends .. I have a mailing_list file .. I wanted to check whether the visitor entered Email already exists in file? Is there any standard function for it ?

Web Development php
Member Avatar for Shankye
0
164
Member Avatar for philmetz

For the following code I have a problem. When i fill in the form and submit it inserts a new database value. But when I refresh the page it does it again automatically with the same data, and keeps doing it whenever i refresh. How do i stop this? [CODE] …

Web Development php
Member Avatar for ErlendHL
0
3K
Member Avatar for mihirpatel83

Hello everyone, I am new to PHP to so please bear with me. I need suggestion to achieve a task. I have to make a form where in initially there will be a combox box. Depending onthe selection ie value1, value2, value3 etc.......a sub form should open below the combo …

Web Development php
Member Avatar for diafol
0
135
Member Avatar for tcollins412

I have a login script that people use to register and login. I also have a contacts page where people can add contacts. Now how do i make it so the people that are logged in can add their own contacts that nobody else can see, only them when they …

Web Development php
Member Avatar for diafol
0
106
Member Avatar for Imratzio

Hi all :), at the moment im programming a drop down list of a petstore and going through chapters from the php my dummies book. I show you my example. [CODE]<?php // Program name: buildselect.php // Description: Program builds a selection list from databse require_once("config.php"); $query = "SELECT DISTINCT * …

Web Development php
Member Avatar for Imratzio
0
85
Member Avatar for DiamondCiara

Hi all, New here and hoping you can help me. Here's what I'm trying to do: I have a database table full of customers and their master records, with fields for their ID number, email, name, address, etc. I have another table for store credit, which contains only the customer …

Web Development html-css php
Member Avatar for DiamondCiara
0
209
Member Avatar for xamonix

Hi I'm trying to modify a Shipping module for an online shop but I'm not getting it to work...I want to put two options on that, if customer chooses first option he gets one price for the shipment if he chooses second option then he gets a different price. The …

Web Development gui php
Member Avatar for diafol
0
931
Member Avatar for satiss7pwr

Hello, I have one asp.net application at server side, having oracle database, Now my question is what is minimum requirement at the client side i.e, should i install oracle at client side to access database from client side? Thanks

Web Development asp.net client-server oracle
Member Avatar for Ramesh S
0
158
Member Avatar for Ender330

Help!!! Ok I have been on this problem all day. Searching and Searching and just when I thought I had it...the script didn't work as it was supposed to. My URL looks like this: [CODE]http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678 [/CODE] I need to parse the email, username and password from the url into the …

Web Development javascript php
Member Avatar for Airshow
0
218
Member Avatar for linomatti

Hello, I have a page, all there is in it is: [QUOTE]<script type="text/javascript"> alert('my test'); </script>[/QUOTE] When I open the page by itself, it displays the alert. Using the [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/"]Tabs Content[/URL] script, I call that page via ajax. Page displays, but not alert. So please how do I initialize javascript …

Web Development javascript javascript-jquery
Member Avatar for linomatti
0
106
Member Avatar for stevo356

Hi, I have a problem with setInterval (jquery). It works great, but I wan't the element to stop refreshing when a textarea is selected (so that users can insert text). Here is the refresh code I'm using currently. [CODE] $(document).ready(function() { $("#container").load("php/functions.php?page=wall"); refreshId = setInterval(function() { $("#container").load("php/functions.php?page=wall&r="+Math.random()); }, 1000); }); …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
368
Member Avatar for manish250

hello all i have a jsp project when i run this project using netbeans it gives the following exception in browser as follows org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 28 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory …

Web Development apache java-jsp java-netbeans
Member Avatar for manish250
0
490
Member Avatar for conmen80

Hi all expert here, please refer to attached image, I had a table which mainly stored add-to-cart items, user might able to check what's item was in their cart and do remove or update item's quantity as like common cart we use for online shopping. I was able to loop …

Web Development php
Member Avatar for Shanti C
0
128
Member Avatar for rajesh1158

I have a php file, for example abc.php file whose output will be an image(profile pic) and below it a set of links(navigation links). When i click any of those links, it displays the output of destination file(output of file mentioned in "href" attribute of anchor tag). But i want …

Web Development php
Member Avatar for rajesh1158
0
132
Member Avatar for mrcniceguy

Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code …

Web Development php
Member Avatar for madCoder
0
148
Member Avatar for t3chpr0digy

Hello, I've been racking my brain all week with this code. I'm displaying a help desk table, and I want the column headers to be clickable, which will ultimately sort the that column both ascending and descending. I'm sure I'm just missing a step or so, but cannot seem to …

Web Development php
Member Avatar for stevo356
0
118

The End.