4,124 Topics

Member Avatar for
Member Avatar for Inny

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 …

Member Avatar for Inny
0
304
Member Avatar for ptermourra

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'])) { // …

0
59
Member Avatar for janda5

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 …

Member Avatar for gerbil
0
200
Member Avatar for twistercool

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" …

Member Avatar for cwarn23
0
256
Member Avatar for TheHaxx0r1215

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 …

Member Avatar for chrishea
0
209
Member Avatar for twistercool

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 …

0
75
Member Avatar for everrest

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 …

Member Avatar for everrest
0
126
Member Avatar for shivarocks

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; …

0
120
Member Avatar for kylelendo

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 …

Member Avatar for jbisono
0
156
Member Avatar for n3xtgen

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 …

0
56
Member Avatar for veledrom

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 …

Member Avatar for Stefano Mtangoo
2
118
Member Avatar for AurosGamma

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 …

0
113
Member Avatar for kylelendo

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 …

Member Avatar for kylelendo
0
333
Member Avatar for megachip04

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 …

Member Avatar for cereal
0
115
Member Avatar for violaceous

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, …

Member Avatar for diafol
0
319
Member Avatar for fredfletcher

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 …

0
76
Member Avatar for raul8

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); …

Member Avatar for peter_budo
0
361
Member Avatar for androidz

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

Member Avatar for hkdani
0
568
Member Avatar for aadi_capri

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 …

Member Avatar for lolafuertes
0
204
Member Avatar for dr.4030

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 …

Member Avatar for dr.4030
0
89
Member Avatar for musicmancanora4

[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']= …

Member Avatar for vibhaJ
0
119
Member Avatar for edn_781

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]

Member Avatar for rotten69
0
262
Member Avatar for edn_781

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!

Member Avatar for diafol
0
65
Member Avatar for shujat132

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 …

Member Avatar for diafol
0
316
Member Avatar for itsgrace

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 …

0
103
Member Avatar for davy_yg

[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: …

Member Avatar for cwarn23
0
90
Member Avatar for Hand

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?

0
77
Member Avatar for davy_yg

[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 …

Member Avatar for ko ko
0
256
Member Avatar for davy_yg

[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? …

Member Avatar for davy_yg
0
249
Member Avatar for TheHaxx0r1215

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 …

Member Avatar for kanchana Mala
0
251
Member Avatar for SmallCucumber

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. …

Member Avatar for SmallCucumber
0
90
Member Avatar for raviaaaa

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> …

0
72
Member Avatar for digital_plunder

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 …

Member Avatar for vidjin
0
104
Member Avatar for TheHaxx0r1215

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"]); …

Member Avatar for diafol
0
106
Member Avatar for naveedqadri

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 …

Member Avatar for dnanetwork
0
115
Member Avatar for hunter57369

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 …

Member Avatar for hunter57369
0
126
Member Avatar for raviaaaa

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 …

Member Avatar for Taywin
0
216
Member Avatar for naveedqadri

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 …

Member Avatar for naveedqadri
0
317
Member Avatar for Farhad.idrees

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.... …

Member Avatar for Rhamises
0
110
Member Avatar for sparkey

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 …

Member Avatar for sparkey
0
153
Member Avatar for titosd

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 …

Member Avatar for diafol
0
147
Member Avatar for voidyman

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 …

Member Avatar for voidyman
0
104
Member Avatar for chiiqui

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 …

Member Avatar for daryll1
0
3K
Member Avatar for thepales

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 …

Member Avatar for fenixZ
0
294
Member Avatar for Mufleeh

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 …

0
49
Member Avatar for fradiavolo

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'][] …

Member Avatar for fradiavolo
0
192
Member Avatar for dwlamb

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 …

Member Avatar for Zexsz
0
181
Member Avatar for vlowe

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 …

Member Avatar for karthik_ppts
0
231
Member Avatar for vibhaJ

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 …

Member Avatar for vibhaJ
0
134
Member Avatar for soft_coder

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 …

0
70

The End.