4,124 Topics
![]() | |
Id like to show total number of users elsewhere on my site, and dont know which part of the following code calls that. I want to have 'some text[number of users here], and counting!' I need to strip out only the minimum code to display the total number within another … | |
Hello, I am having a similar issue. I am building a shopping cart. On my product details page I have this, which works fine by the way : [CODE] <?php // Check to see the URL variable is set and that it exists in the database if (isset($_GET['id'])) { // … | |
I would like to copy (burn) photos stored in My Pictures folder onto blank CD-R discs but have never done this before and need a little advice. I have a CD-RW drive and I also have Nero StartSmart (Nero 7 Essentials) software installed which I understand is capable of copying … | |
I am a CMS Developer but am not well in PHP. So I might need your help here.. error: Notice: Undefined variable: handler in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_front_desk.php on line 34 source of error: [CODE]defined( '_JEXEC' ) or die( 'Restricted access' ); // Load configuration data //include( JPATH_SITE . "/administrator/components/com_rsappt_pro14/config.rsappt_pro.php" ); include( JPATH_SITE."/administrator/components/com_rsappt_pro14/config.rsappt_pro14.php" … | |
The code I used isn't working with sql, and not sending a mail message, but it's perfectly formed(Or not)? Please help! [CODE]<?php require_once('recaptchalib.php'); require_once('config.php'); $privatekey = CAPTCHA_PRIVATE_KEY; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't … | |
error 1: Trying to get property of non-object in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 83 error 2: Trying to get property of non-object in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 86 error 3: Undefined index: ppsubmit in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 327 (This is a joomla module error) source: [CODE]<?php defined( '_JEXEC' ) or die( 'Restricted … | |
Hi friends I have a question about savepoint The SQL statements executed in a user session are as follows: SQL> CREATE TABLE product(pcode NUMBER(2), pname VARCHAR2(10)); SQL> INSERT INTO product VALUES (1, 'pen'); SQL> INSERT INTO product VALUES (2,'pencil'); SQL> SAVEPOINT a; SQL> UPDATE product SET pcode = 10 WHERE … | |
hello friends i am new to ejb and i tried to create a session bean for obtaining JDBC Connection,and i called it from a servlet the session bean was a remote session bean but connection is not getting established.. EJB CODE : ConnectionBean.java [CODE] package com.ejb; import java.sql.Connection; import java.sql.DriverManager; … | |
Hii friends I am creating a web application Now there are only two users who will login to the system the two users are Admin and staff When Admin logins he is directed to Admin.aspx and when staff login he is directed to Staff.aspx I have created a database Table … | |
I am new to AJAX and want to create something with three dropdown boxes. When a user selects the first one, the second dropdown populates with the corresponding fields, and when they select something from the second dropdown, the third populates. After selecting an option from the third dropdown I … | |
Hi, I want to authenticate user if he/she successfully logged in before or not, in every pages. Obviously on top of the pages I have to call a function or another page to run that function to carry out checks but, I really don't know what kind of code I … | |
Hello, i'm making a web site as a college project, this site features html,php,javascript,ajax,jquery and mysql. I'm almost done with the website... in the website i have a game, the players can create a 'lobby' and others players joins them, so, when a lobby is created an entry in the … | |
I am trying to login into the system I have created 3 pages 1.Registration Page 2.Login Page 3.Secure Page In registration page I can enter new username and password and that gets registered well that works fine..but when i try to login with that username and password I get an … | |
![]() | Hello, I have a website that is pretty much just css, html and php. I have incorporated a membership and log in system. For some reason in Internet Explorer, when users log in, the page becomes distorted (higher line heights, misplaced images, etc.). But it's only when they're using Internet … |
I was trying to implement checkboxes, but that seems too difficult. Here is the code: [CODE]<?php session_start(); // Maintain session state header("Cache-control: private"); // Fixes IE6's back button problem. $page_title = "Class Information"; include('header.php'); $class_id = $_GET['id']; $enter = $_POST['enter_horse']; $horse_id = $_POST['horse_id']; //general show information $result = @mysql_query("SELECT s.show_id, … ![]() | |
Hello, Wondering if someone can help me with this. I would like to set/create a single-use/temporary "cookie" for the duration of the user's session or possibly for up to 2 days and have a popup alert box, telling them that their screen resolution is too low to view. I have … | |
Hello, I'm not able to access jar files from servlet. Although I have imported all the class file and made the jar file available in build path. [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); cmd = request.getParameter("cmd"); System.out.println(cmd); String output = runCommand(cmd); … | |
hello everyone i have this error saying "requested operation requires ole db session object which is not supported by the current provider"..i wonder why this appears.i am using an ado and using vb6..can someone enlighten me with this problem..thanks | |
hello folks, let me tell you the plot first. I am developing a windows application through vb.net,i have done the database connectivity through ms access, which has only two columns, i.e firstname and lastname. what i want is to maintain a session id so when i browse through all the … | |
i used session in my admin panel so when i click on log out button in server i faced with this msgs Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royalfa/public_html/admin/logout.php:2) in /home/royalfa/public_html/admin/logout.php on line 5 Warning: Cannot modify header information - headers … | |
[code] Hey guys im not sure how this isset code is working and what each if statement is testing. a clear explanation would help. cheers ****ViewProductDetails.php**** Code: <?php session_start(); ?> <html> <body> <?php if (isset($_POST['submit'])) { if($_SESSION['item']==$_POST['h1']) { $_SESSION['qty'] = $_SESSION['qty'] + 1; } else { $_SESSION['item'] = $_POST['h1']; $_SESSION['price']= … | |
I am very new to PHP.. Please let me know which part will be saved in Client PC and Which part will be saved in Server? [CODE=PHP]$_SESSION['name'] = 'John';[/CODE] | |
Suppose I have a PHP SESSION script, which can load in my friend PC but not run into my PC. Code is same and code running a single server machine! What could be possible reasons? HELP me! ![]() | |
Hello seniors, How are you….? I need your help to remove little logical error form user registration form. I have created a user login & registration form. It works fine when I try to reach that form by this method First I put this address in address bar [COLOR="Red"]http://localhost/series/[/COLOR] After … ![]() | |
I'm creating a web-based mail client from scratch using PHP IMAP library. What I need to implement right now is fetch the error and display it in a fancy way(ex. pop up in the view when error occured). How am i going to do this? This is a sample of … | |
[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; print "Done"; function fnCheckSession(){ if (Session["LoggedIn"] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] I have the following error appears: Parse error: … | |
Hello, I want to know how to implement an authentication system. I know how to use HttpSession, but how will I ensure that an user cannot create false cookies to access protected area? Is it safe to keep the password as a session attribute? | |
[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; $_SESSION['LoggedIn']='user'; print "Done"; function fnCheckSession(){ if ($_Session['LoggedIn'] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] The following errors appears: Done Notice: Undefined … | |
[CODE] session_start(); // undefined index: login if (!isset($_SESSION['login'])){ echo "Anda tidak berhak mengakses halaman ini."; exit(); } //Fungsi baca data dari database [/CODE] Hi, Whenever I press eventmanager, the following error appears: "Anda tidak berhak mengakses halaman ini." What codes should I write so that I could pass the echo? … | |
Alright, I have a members area, area.php, and I used mysql to find the userlevel and display content depending on the userlevel, 1 for user, 2 for admin. I made it, but it displays both the user and admin for 1, and 2. [CODE]<?php // Members Area // session_start(); $usernamee … | |
I am a newbie to php, i occasionally find a problem, I open the page "index.php" on a chrome browser, then I left for lunch, then I come back and click the link in page "index.php", it did head to "login.php", but laterly I find a record in my database. … | |
this jsp consists of scriptlet tags so i need to remove the sriptlet to a action class pls tell me how to move to struts <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <%@ page import="java.util.*"%> <title>Course Administration</title> … | |
i m working with sessions.. i have problem with sessions here is my coding " <?php session_register("admin_id"); if($_SESSION["admin_id"]=="") { header("location: login.php"); } ?> " i want to register a session but when i use session_register function i got error ""Deprecated: Function session_register() is deprecated in C:\xampp\htdocs\xampp\c\admin\session_check.php on line 2"" help … | |
I am getting a [B] frustrating[/B] error with my PHP Code. I am not using short tags, or anything else that causes this error. I checked the brackets, they are all in place. Can you help me? [CODE]<?php require_once('recaptchalib.php'); require_once('config.php'); $privatekey = CAPTCHA_PRIVATE_KEY; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); … ![]() | |
Hi Experts, I have visited the forum regarding this solution ,but could not get proper help. I got error : Object reference not set to an instance of an object. [code] Line 18: <% Line 19: Line 20: string proj_id=Session.Contents["proj_id"].ToString(); <-------- > pointing to this part Line 21: OleDbConnection conn=new … | |
I am wondering if there is a forum for new programmers to get help in learning code. I am a student at DeVry University. I am studying EET. I am currently in my second session of the second semester. I am in Structured Programming 112. We are learning to program … | |
I am new to Struts I have jsp file combined with servlet and jsp(jsp tags) i need to separate them according to struts 1.0 standards Please tell me the way i can do or give me some tutorials or examples Please tell me wqat need to separe and how here … | |
Hi Experts: When i run this page on my online website with mysql (already with Oracle), this errors orrurs. Exception Details: System.Data.OleDb.OleDbException: [1]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exec print_pack.check_print … | |
Hi i need to make logic..in ecommerce web.. When i add any item to cart so Items Session start... but the problem is if i add same any again to cart so when i will be implemented? i know i need to use multidimentional arrary...becuase of item id and price.... … | |
Hey guys, I am pretty new to c# and have just developed a login client/server application. I am coming from PHP programming environment and my question is now. Is there any similar function in c# as the SESSION variables in php? Say i am logged out in my c# application … | |
Hello, I have a question/ I want to get the selected value from a form without submit, and then to use this selected values in another php file. i think if i can put the values in array, and then to register the array on a session, and the to … ![]() | |
Hi, I want to ftp a file to a location and then kickstart a process there to work on the file. I tried using !rexec but it does not seem to be working too well. I am not using the .netrc file(if that helps you understand my problems better) Thanks … | |
How to send the session data in one page to another? here's my code because I am going to bill out all of the orders and Name and ID of the current user logged int , the PHP code [CODE]<?php session_start(); include("Connection.php"); if (isset($_POST['submit'])) { $name = $_POST['customerName']; mysql_query("INSERT INTO … | |
I have a simple php script that starts sessions. On every page, I include : if(isset($_SESSION['sessionname'])){ //The rest of the page } else { die("Not logged in"); } I always include the session start and always regenerate the session id after <?php. The code works fine withevery browser except for … | |
Hi all, I am in process of creating a simple polling system. I am using text files to store data. My question at this point is that I will be having a id number in a given .txt file. I want to compare this number with what user input at … | |
Why is it saying "Notice: Undefined variable: cnt in C:\Wamp\www\librarie\cos.php on line 24". Here is the code: [CODE]<?php session_start(); include("conectare.php"); include("page_top.php"); include("meniu.php"); if (isset($_GET['actiune']) && ($_GET['actiune'] == "adauga")) { if (!isset($_SESSION['cnt']) || !$_SESSION['cnt']) $_SESSION['cnt'] = '0'; $cnt = $_SESSION['cnt']; $cnt++; $_SESSION['cnt'] = $cnt; $_SESSION['nr_buc'][] = 1; $_SESSION['pret'][] = $_POST['pret']; $_SESSION['titlu'][] … | |
Good day, I am getting an error on a log-in script: mysql_query(): 4 is not a valid MySQL-Link resource I've done some research on this and followed such advice as: [LIST] [*]ensuring the mysql connection is closed after the results have been returned [*]testing any sql strings I define in … | |
Im still trying to work this one out but what i would like to do is send an email if an alert is present. but not resend the email on every page refresh where the alert is still present. so i was thinking of using something like $_SESSION['sent_time'] to record … | |
I have one index.php file that is on abc.com server. Here in index file i have frameset and src of that is : 'http://www.xyz.com/login.php' All my php files are on xyz.com. What i am having problem is when user open url : abc.com And they get login page. they are … | |
Hi I have a byte array of size 2138 and it is serialized. Now I want to store that in cache or session. I have the following: 1. Deserialized the Byte array into an object. 2. Stored the same in Session. 3. Whenever required I have again Serialized the Object … |
The End.