4,124 Topics

Member Avatar for
Member Avatar for pitic

Hello, I have the following situation which I can seem to resolve. When I do an "ALTER TABLE" in mysql (v5.5) it hangs in with "waiting for metadata lock". Here is how I got there: - i have an xml which i want to import into a table; i use …

Member Avatar for Alekjenderbo
0
459
Member Avatar for rdhiravani

Hi, My homepage of website contains periodic ajax requests, due to which the session does not time out. Referring to [URL="http://ajaxpatterns.org/Timeout"]http://ajaxpatterns.org/Timeout[/URL] I decided to use timer and event (like mousemovement etc.) to check whether user is active or not and thus invalidating session after inactivity for 'certain' time. To set …

Member Avatar for rdhiravani
0
60
Member Avatar for Cuchara2

I have the function pt_replace: [CODE]function pt_register() { $num_args = func_num_args(); $vars = array(); if ($num_args >= 2) { $method = strtoupper(func_get_arg(0)); if (($method != 'SESSION') && ($method != 'GET') && ($method != 'POST') && ($method != 'SERVER') && ($method != 'COOKIE') && ($method != 'ENV')) { die('The first argument …

Member Avatar for smantscheff
0
149
Member Avatar for 7a26j

I have problem with this code.. my browser prints: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\plaincart\library\database.php on line 4 [CODE]<?php ini_set('display_errors', 'On'); //ob_start("ob_gzhandler"); error_reporting(E_ALL); // start the session session_start(); // database connection config $dbHost = 'localhost'; $dbUser = 'root'; $dbPass = ''; $dbName = 'plaincart'; …

Member Avatar for chrishea
0
157
Member Avatar for markhammill

Hi, I have almost finished my first webpage with php but I have an error I can't manage to fix. I used the plaincart template to start with. If you go to [URL="www.michton.com/shop.php"]www.michton.com/shop.php[/URL] There is an error at the top of the page, it is on black so you need …

Member Avatar for 7a26j
0
251
Member Avatar for shakeb@techwave

I am a new software developer.I am developing a website which required to maintain log-in and log-out time of the user.I can maintain my database when user click on Log-out button but i can not track the user when he click on Browser Close X(or in Tab Close)event.I also want …

Member Avatar for shakeb@techwave
0
161
Member Avatar for designalex

Hi, its me again.:scared: im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g: when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb …

Member Avatar for SRocks
0
207
Member Avatar for milas

i have three table member (memberid,m_name,statusid,address,DOB,phone) booking (bookingid, memberid ,sessionid, cost) session(sessionid, activity,location) (fk memberid, fk sessionid )BOOKING IS link with ( member pk )and (session pk) session activity is like football,swimming,badminton,tennis i want to run the following query find the name of all member who have booked any session …

Member Avatar for BitBlt
0
77
Member Avatar for Trilby1992

Hi I'm trying to make a friend request feature like in a social networking site and I've been getting this Unknown Attribute error whenever I try to request a friendship with an another user. [url]http://s1042.photobucket.com/albums/b429/Kevin_Tang/?action=view&current=unknown_atrribute.png[/url] And this is the code of the friendship controller. [CODE]class FriendshipController < ApplicationController def req …

Member Avatar for Trilby1992
0
202
Member Avatar for vishalbhavsar

hi all, i tried following code for session management bt i dnt knw where it went wrong? can anyone please help me solve the problem. i want to restrict user going on the prevoius page after logging out when he clicks on the browser's BACK button. ****************************************************************** 1) i created …

Member Avatar for vishalbhavsar
0
407
Member Avatar for Robert955

Hello, I am writing a prog with ASP in C#. I have 2 separate pages. on the first page there are 2 textboxes and a button. the first box is a validation check (a code) the second one is the ammount of money you want to withdraw (max of 1000) …

Member Avatar for Robert955
0
236
Member Avatar for designalex

Hi, I am new at php so please I beg of you to go easy on me., I have looked on the site and read many tutorials but I am trying to understand the following: When I call session_start() at the beginning of a page a file gets saved to …

Member Avatar for diafol
0
189
Member Avatar for muteki

Hi, first of all I'm new at the forum I hope to help and be helped ;-). I'm trying to display the values inside an ArrayList on a JSP. I execute a PreparedStatement and I put all the values inside an ArrayList<HashMap<String, Object>>. Once, I have all the values inside …

Member Avatar for khamsinh
0
4K
Member Avatar for rpv_sen

Hi Friends I have pasted the code below which i was used in my project. But i am getting mysql_fetch_array() error. For your more information i have attached the screen shot of the error Pls give me solution [CODE]<?php // Inialize session session_start(); include("../config.php"); // Check, if username session is …

Member Avatar for rpv_sen
0
370
Member Avatar for phpuser

Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. …

Member Avatar for Somnathpawar
0
5K
Member Avatar for cms271828

Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I …

Member Avatar for javaAddict
0
137
Member Avatar for nikita.chandra

hi all ! I am trying to submit a form using javascript but form is not being submitted. Following are the code : [CODE] <html> <head> <script language="javascript"> /***********************Email Validation **************************************/ function echeck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return …

Member Avatar for nikita.chandra
0
730
Member Avatar for nice_candy

hi dear how are you hope will be ok i am in critical problem here my requirement i have a wcf service which login the user and it return uer id but i want to store that user id at server side because remaining methods required that id so when …

Member Avatar for kvprajapati
0
67
Member Avatar for pagas

I am workin on eclipse Helios Service Release 2, serser Tomcat 7. When i try to reach test.jst i get error 404, type Status report message /bandymas/view/test.jsp description The requested resource (/bandymas/view/test.jsp) is not available. it is strange becouse i can reach error.jsp in the same directory, using the same …

Member Avatar for scrappedcola
0
270
Member Avatar for jdavenport

In the javaScript function below, is there anything I can add to the window.open so that the parameters passed in the URL do NOT show in the window that is opened? It is okay if the script path shows, I just need to hide the parameters. If that is not …

Member Avatar for Airshow
0
6K
Member Avatar for azegurb

hi All, does anyone knows what does mean [CODE]define('INCLUDE_CHECK',true);[/CODE] below is full script [CODE]define('INCLUDE_CHECK',true); require 'connect.php'; require 'functions.php'; // Those two files can be included only if INCLUDE_CHECK is defined session_name('tzLogin'); // Starting the session session_set_cookie_params(2*7*24*60*60); // Making the cookie live for 2 weeks session_start(); if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe']) …

Member Avatar for tomato.pgn
0
287
Member Avatar for koffimide

Help! i cannot access my ms access database i am using to learn web design. I keep getting different error codes depending on the windows webhosting used. The latest i got was : Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open …

Member Avatar for crishjeny
0
323
Member Avatar for Xaibo

In my previous post i strugled with a Mail form, which eventualy got solved with your help. Now i want to insert some check-boxes in this Mail form. I've already created the HTML form and the PHP, but something is not working. I can't send the values in the check-boxes …

0
53
Member Avatar for nice_candy

hi i am in critical problem here my requirement i have a WCF service which login the user and it return uer id but i want to store that user id at server side because remaining methods required that id so when user after success loing call product list the …

Member Avatar for jbisono
0
61
Member Avatar for siknoz

So I'm new to the programming side of webpages, but I'm trying to learn. I am in the process of making a single page website for a local radio group of roughly 20-30 members which may increase over time. They want to be able to show when they are online. …

Member Avatar for RoyalElite96
0
82
Member Avatar for vikram97

hello guys here is the situation am new to struts and jsp see i have a screen in which i have to enable the delete button which i did later in the corresponding code it was present in the business delegate now when i press the bbutton am getting this …

0
53
Member Avatar for siknoz

So I'm new to the programming side of webpages, but I'm trying to learn. I am in the process of making a single page website for a local radio group of roughly 20-30 members which may increase over time. They want to be able to show when they are online. …

Member Avatar for codewall
0
91
Member Avatar for koveras vehcna

Hi everyone, I have created a random text generator -ok, not so random, works with certain parameters- and at times it runs slowly. I looked up on the internet about speeding tricks and applied some of them that looked concurrent with my code piece. The code however, is still slow …

Member Avatar for woooee
0
206
Member Avatar for Nitin Daphale

In my project everywhere I get data(ex.customers) in a datatable and for further use I store it in session as [CODE]Session.Add("DtTblName",dt_Cust);[/CODE] And access through dt_Cust=(DataTable) Session["DtTblName"]; All is working fine, my concern is, Is it a right way to store heavy object like datatable store in session, to avoid database …

Member Avatar for Nitin Daphale
0
860
Member Avatar for Shantanu88d

Hi, I have a web form. On it I am generating a gridview through a stored procedure. Now it has it's DataSource set to dataset object ds. After generating this gridview. I want to generate an xls file. The code for that is correct. But since I am calling a …

Member Avatar for crishlay
0
377
Member Avatar for phplover

Hello, I posted here as although it's in regards to mysql the thing i want to ask is in regards to php itself. I have two tables below as follows: [CODE]CREATE TABLE `users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `status` char(10) NOT NULL, `username` varchar(15) NOT NULL, `email` varchar(50) NOT …

Member Avatar for phplover
0
131
Member Avatar for erioch

Hi all, I have this code for the password reset form, It is supposed to generate a new password and the encrypt it to update the database then send an email to the user the new password for the user to log in and change the password. This is because …

0
77
Member Avatar for menukadevinda

hi, although, database is connected and admin table of my database consist of 2 rows of data, I still get 0 value for $numRow=mysql_num_rows($result); And mysql_fetch_array doesnt fetch values properly plz can any body help me thx in advance [code]<?php //include_once 'config.php'; /* 1. Got the username and password from …

Member Avatar for tomato.pgn
0
147
Member Avatar for aaraf

hi I want to set an authentication in two different computers if the master is logedin then the slave authentication can login else the slave authentication on the other computer in a network can not enter to the authentication page. [B]I can not use database to store the authentication as …

Member Avatar for diafol
0
89
Member Avatar for dyingatmidnight

Hello, I'm building a database using SQL and PHP and I've started on the user interface first rather than the database queries and everything - a little backwards perhaps. I have a login button that disappears for some reason when I add in a function for my search button. Here's …

Member Avatar for KadajXII
0
226
Member Avatar for js_

Hi, I'm a beginner of JavaScript. I need the code for creating [b]pgv_pvid[/b] and [b]ssid[/b]. I had searched the web, and got some code, I wonder if the code is right: [code]var curDate = new Date(); var curMs = curDate.getUTCMilliseconds(); pgv_pvid = (Math.round(Math.random() * 2147483647) * curMs) % 10000000000; ssid …

Member Avatar for hielo
0
220
Member Avatar for shwetabhardwaj

//servlet [CODE] if(rs.next()) { String s1 = rs.getString("pname"); String s2 = rs.getString("remarks"); String s3= rs.getString("cnt"); String s4 = rs.getString("bsponsor"); String s5 = rs.getString("bprowner"); String s6 = rs.getString("priority"); list.add(s1); list.add(s2); list.add(s3); list.add(s4); list.add(s5); list.add(s6); } session.setAttribute("list",list); RequestDispatcher rd=getServletContext().getRequestDispatcher("/project.jsp"); rd.forward(request,response); [/CODE] //jsp page [CODE] <% ArrayList arr = (ArrayList) session.getAttribute("list"); String myString=""; …

Member Avatar for majestic0110
0
3K
Member Avatar for studentoflife

I'm returning over 30 tables in a sql stored procedure which come back in a dataset. I store this in session state and hold for 20 mins before refreshing. My problem is, I need to be able to search the dataset for a particular table by name. At the moment …

Member Avatar for abelLazm
0
5K
Member Avatar for abathurst

Hi all, I'm not the best with coding and was wondering if some one can help me out. The page is inserting information into a database but when i added an extra section to insert i get the error [CODE] Could not find stored procedure 'Insert_PublicationsA'. Description: An unhandled exception …

Member Avatar for bill51
0
534
Member Avatar for doffen74

Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function …

Member Avatar for doffen74
0
79
Member Avatar for kokfui

hi, all,i having code as below and the output is in the picture below as well <?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php confirm_logged_in(); ?> <?php find_selected_item(); ?> <?php include("includes/header.php"); ?> <table id="structure"> <tr> <div class="menu"> <ul> <?php echo navigation($sel_cat, $sel_item); ?> </ul> </div> <td id="item"> <?php …

Member Avatar for stanley87
0
207
Member Avatar for LloydFarrell

Hi everyone, I have been asked to help extract data from a xml file and use the data to input into html form designed in php I have read a few articles but im missing the point some how... On the file that im trying to get the data to …

Member Avatar for LloydFarrell
0
609
Member Avatar for LloydFarrell

Hi all - I have a xml file that I am trying to extract data from and create variables to use in a PHP / html form. I am new to extracting information from xml and creating variables The XML file is show below and what I would like to …

Member Avatar for LloydFarrell
0
149
Member Avatar for rocco123123

Greetings everyone, I'm a noob here. I could use some help designing part of a MySQL database I'm working on. This is an event database, so think of say a conference. I have sessions and every session has a session_type. A session_type might be a Keynote speech or a Workshop. …

Member Avatar for BitBlt
0
689
Member Avatar for vishalbhavsar

Hi friends, I am trying to develop a web application in which I have provided a facility for login and logout. I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and after that if he presses the browser's …

Member Avatar for javaAddict
0
69
Member Avatar for mossa

I'm construted a php-class where I create and save some elements in an XMLfile. Outside that class I instantiate the class and save it in a _SESSION['obj'] if the session has not been created yet, otherwise I want to get the document back and add new elements to the XMLfile. …

Member Avatar for mossa
0
321
Member Avatar for Stefano Mtangoo

Hi, I have Object that performs not only registration/Login but also manages users after the log in. Does it make sense to store object of that class in session or I should only store userID on session and use that to Query DB? My Object will contain user details (Full …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for dyingatmidnight

Hello, I'm having a totally brain freeze on how to do something that I believe is relatively simple but I'm having such a stupid moment that I don't even know what to google at the moment. What I'm creating is a book catalogue for a school project. It opens to …

Member Avatar for tomato.pgn
0
147
Member Avatar for TechnoDarrel

Hi! i'm doing a final project for a university introduction course in web programmation. I'v Coded this: [CODE]class MainHandler(BaseHandler): def get(self): #product_comments = Comments().get_all() user = users.get_current_user() if user: member = Members().get_by_id(user.user_id()) baskets=Baskets().get_by_member(member) template_args = {'baskets': baskets} products = Products().get_all() product_comments = [] for product in products: comments = Comments().get_by_product(product) …

Member Avatar for woooee
0
227
Member Avatar for bhavyajyothinat

registration.asp::: [CODE] <% connection%> <%if request.QueryString("insert")<>"" then 'if request.QueryString("rbnMale")=="on" then ' gender="Male" ' else if request.QueryString("rbnFemale")=="on" then ' gender="Female" ' end if gender="male" qry="insert into registration(Username,Password,FirstName,LastName,Address,Place,LandPhone,MobilePhone,Email,Gender,Qualification)values('"+request.Form("txtUsername")+"','"+request.Form("txtPassword")+"','"+request.Form("txtFirstName")+"','"+request.Form("txtLastName")+"','"+request.Form("txtAddress")+"','"+request.Form("txtPlace")+"',"+request.Form("txtlandPhone")+","+request.Form("txtMobile")+",'"+request.Form("txtEmail")+"','"+gender+"','"+request.Form("txtQualification")+"')" CON.Execute(qry) Response.Redirect("ListUsers.asp") end if %> <form id="form2" name="form2" method="post" action="Registration.asp?insert=1" > <table width="286" border="1" align="center"> <tr> <td width="87">UserName:</td> <td width="183"><label> <input name="txtUserName" type="text" id="txtUserName" …

0
80

The End.