4,124 Topics

Member Avatar for
Member Avatar for BigDan531

hi guys i need some help with my code im new to php and im trying to create a login page. i have created MYSQL database to go along but whenever i try to login - it brings me to myaccount.php and just displays Access Denied no matter what input, …

Member Avatar for pritaeas
0
98
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for shahbaz5144842
0
283
Member Avatar for vuyiswamb

Good Day all I have an SP that is defined like this [CODE]ALTER PROCEDURE [dbo].[sp_Constraints_Update] @xml ntext, @TTBLType varchar(5) AS set nocount on DECLARE @xmldoc int DECLARE @sql varchar(8000) -- In one long sql string do all of the following --Create an internal representation of the XML document. EXEC sp_xml_preparedocument …

Member Avatar for vuyiswamb
0
582
Member Avatar for Talguy

If i create a custom session handler that stores my session information in a database and use the normal session variable since I overwritten it would these sessions work across a load balanced web server cluster.

0
54
Member Avatar for andhrawala1983

Hi , I have a small requirement, which I am unable to complete. I am having a gridview on the form, and the data is bined to the grid using ObjectDatasource that is inturn binding from a TableAdapter in the dataset. I have all select,insert,update and delete commands specified. When …

Member Avatar for andhrawala1983
0
126
Member Avatar for toad78

I have a login form that works just fine, except when it forwards to the 'menu.php' page. The 'menu.php' page has a list of links that is suppose to be in relationship to the 'mem_id'. For example, there's a link called 'Profile'. When you hover over the link, it is …

Member Avatar for pritaeas
0
146
Member Avatar for sonia sardana

Default1.aspx [code] protected void Button1_Click1(object sender, EventArgs e) { Session["name"] = TextBox1.Text; Response.Redirect("Default2.aspx"); } [/code] Default2.aspx [code] protected void Page_Load(object sender, EventArgs e) { string sBeforeAbandon; string sAfterAbandon; sBeforeAbandon = Session["name"].ToString (); Session.Abandon(); if (Session["name"] != null) { sAfterAbandon = Session["name"].ToString(); } [/code] Hey frnds Session.Abandon clears all the session …

Member Avatar for sknake
0
85
Member Avatar for ersubhajit

I am getting this problem whenever I login from index.php to admin_area.php. I am giving the codes of the two files. Please help. Index.php [code=php]<?php session_start(); include("../lib/globals.php"); if(isset($_REQUEST['submit'])) { $u_name=$_REQUEST['username']; $pass=$_REQUEST['password']; $sql="select * from `user_table_master` where `user_name`='$u_name' and `password`='$pass'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $num_of_rows=mysql_num_rows($result); if($num_of_rows>0) { $_SESSION['logged_in']='y'; $_SESSION['user_type']=$row['user_type']; $_SESSION['user_formation']=$row['formation']; $_SESSION['user_name']=$row['user_name']; $_SESSION['name']=$row['name']; $_SESSION['user_id']=$row['user_id']; …

Member Avatar for guru12
0
154
Member Avatar for CoSIS1

Hi everyone; I’ve written the following for some purpose : [CODE] <% Vector v1,v2; String sql; String sqlvsp; sqlvsp= "select distinct(question_text) from question where type = 'UStudent' "; Vector vc=database.jdbcOneRowQuery(sqlvsp); for(int n=0;n<vc.size();n++){ %> <table border="0" width="100%"> <tr> <td colspan="6"><font size="2"><b><% out.print(n+1); %>)<% out.print(vc.get(n)); %></b></font> </td> </tr> <tr> <td></td> <td align="center" …

Member Avatar for peter_budo
0
124
Member Avatar for ashkan3030

Here is the scenario: I have pages that we can add items to "shopping cart",here is the code: [code]List<string> shopingCart = (List<string>)Session["shopingCart"]; if (shopingCart == null) { shopingCart = new List<string>(); Session["shopingCart"] = shopingCart; } shopingCart.Add(Request.QueryString["ID"]);[/code] I store the ID of each product in Session state(which is unique), then I …

Member Avatar for kvprajapati
0
327
Member Avatar for k2k

i just downloaded a login script and the code below is the php backend for the login. It is originally using md5 encryption and decryption for the password. For some reason I want to manage the password without encryption for now. my database has a member with login name and …

Member Avatar for k2k
0
123
Member Avatar for mcco1

I have the next piece of code: [CODE=C++] vector<ChatSession> ssid; void SessionCreator( void *ch ) { vector<string> users; ... ... ... ChatSession cs; // put chat session objects in vector array for (int i = 0; i < (int)users.size(); i++) { const char *t = users[i].data(); char t2[30]; memcpy(t2, t, …

Member Avatar for Ancient Dragon
0
116
Member Avatar for anonymous_yy

Hi All, I have been encountering a quite weird problem at my laptop for almost 3 days. Right now, I can’t visit any website via any kind of browser.Except http, all other protocols are working fine at my laptop.However in safe mode, http is working correctly. 1.Different anti-malware applications confirmed …

Member Avatar for Rik_
0
264
Member Avatar for waltb

Will run fine, then bang, it shuts down to data dump with the C000021a Fatal System Error. Replaced boot drive with a new one, fresh XP installation. Same thing happens. I've re-Installed XP 3 or 4 times now, but not complete installation - clicked second "R". Do I have a …

Member Avatar for caperjack
0
392
Member Avatar for Lolalola

I have heard that there is a general session. Such a session can be seen, the management of all users. But I do not find the information or samples. If it means session fixation or same like that. Would you have examples?

Member Avatar for Airshow
0
33
Member Avatar for vytla

Hi friends, i am buliding my menu in the master pager like below in C# and asp.net 2.0 and iam get these menu from database dynamically [code] private void GenerateMenuItems() { ContentManagement.Menu[] menuList = (ContentManagement.Menu[])Session["MenuItems"]; if (menuList != null) { Table menuTable = new Table(); menuTable.Width = Unit.Percentage(100); menuTable.BorderStyle = …

Member Avatar for Airshow
0
153
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for ~s.o.s~
0
181
Member Avatar for arvindhar

Hi... I'm using mdaemon 10.0.0... version. for smtp relay. I have problem while relaying mails to aol.com through mifi-microsense.com relay server and it is behind the pix firewall. Error says reverse lookup issue. How do i confirm this problem, this is due to my PTR Record setup issue or some …

Member Avatar for Freaktech
0
169
Member Avatar for xfreebornx

Show for session: 1. 2pm- 4pm 2. 8pm- 10pm 1 -------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter number of child customers 1 The receipt for the purchase is: Adult 2 20.00 Children 1 5.00 TOTAL 25.00 Press Y to continue Y --------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter …

Member Avatar for Ancient Dragon
0
117
Member Avatar for zeusofolus

Hello All, I am fairly new to PHP ... I am trying to build a basic order form for a small wholesale database and am completely stuck. The function of this page is display items and their price from the database along with an input box that will allow the …

Member Avatar for zeusofolus
0
753
Member Avatar for meshooo007

hi everybody i have a small problem. i want to create a telnet session to any other server and i want the socket client code that initiate connection with the server then i enter the password of server and last thing close the connection. could anyone please help me to …

Member Avatar for Nick Evan
0
117
Member Avatar for Lolalola

Hi, When I am using one session all right. But now I have 4 sessions and if they click the Log Out error is thrown: Warning: session_destroy() [function.session-destroy]: Session object destruction failed in D:\wamp\www\index2.php on line 25 25 line is: session_destroy(); My code: [code] if(isset($_GET['Logout'])) { $query = 'UPDATE user …

Member Avatar for Lolalola
0
115
Member Avatar for chrispaul8676

hi, there, i am trying to connect the dropdownlist and gridview to the sql database. I am inserting radiobutton into the gridview. The whole thing goes like this, the dropdownlist is checked and once the radiobutton is checked, and clicked submitted, the next page must show only the checked data. …

0
79
Member Avatar for chrispaul8676

hi there, i am coming up with a login page and i am having problem with the codes while i run the program. The error says, Invalid attempt to read when no data is present.' This errors occurs when i type [B]'gobi' [/B]as the delivery boy. The error says '[B]FirstName'[/B]. …

Member Avatar for kvprajapati
0
155
Member Avatar for nipa.pillai

Below is the scenario.. First Page Second Page Radio button 1 Radio button 2 Submit. I select the first Radio Button and submit and then i go to second page where i have some content. Now when i go back to first page the same radio button which i had …

Member Avatar for kvprajapati
0
255
Member Avatar for pupilstuff

hi guys i just want to perform custom paging in which at the footer of the grid view ,there must be a pager 'pervious/next with numeric' this is what i did [B]in aspx page[/B] [code=asp.net]<asp:GridView ID="TableGridView" OnPageIndexChanging="TableGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" > </asp:GridView> <asp:Button ID="btnConnect" runat="server" Style="z-index: 113; left: 260px; …

Member Avatar for Ramy Mahrous
0
142
Member Avatar for dwdata

I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; …

Member Avatar for diafol
0
1K
Member Avatar for GAYATRISweet

Below error occur while deploying on server.while it work on local network . [COde]Server Error in '/' Application. -------------------------------------------------------------------------------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used …

Member Avatar for kvprajapati
0
114
Member Avatar for gshockneo

Hi, I am really struggling with this problem. For ex. I have a login jsp page . After user logs in , I store their username and password in session object in next page. Now if I want more than 1 user to abe able to login from same browser. …

Member Avatar for gshockneo
0
997
Member Avatar for stevenpetersen

I need some help with setting up a session..... The image is what i am trying to design. [CODE]<?php session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; ?> </body> </html> [/CODE]

Member Avatar for Josh Connerty
0
238
Member Avatar for sanjaypandit

i have a problem. i have a folder named jadu, there are various images . i want to show them in the a page. what i did its here [code=php]<? $path = "images"; $dir_handle = @opendir($path) or die("Unable to open $path"); echo "Directory Listing of $path<br/>"; while($file = readdir($dir_handle)) { …

Member Avatar for Airshow
0
153
Member Avatar for chrispaul8676

hi, there , i am coming up with a login page and i am having error when i run the programme. It says [B][ICODE]'Invalid attempt to read when no data is present'.[/ICODE][/B] [B][COLOR="Green"]Session("ses_uname") = rdr("FirstName") + " " + rdr("LastName")[/COLOR][/B] [ICODE]Imports System.Data.Sql Imports System.Data.SqlClient Imports System.Web Partial Class _Default Inherits …

Member Avatar for dnanetwork
0
187
Member Avatar for VinayRok

Hi friends... am uploading a image file to folder... and as show below am using using a panel with ajax pop up extender.. in that i added the textbox control and fileupload control... but when click the button to upload.. the textbox value will be null... so how i to …

Member Avatar for kvprajapati
0
1K
Member Avatar for frankotten

Hello everybody, I have a big problem with my laptop, it is so slow with a high cpu usage all the time. I have rebooted my entire laptop now two times and the problem did come back both the times after a while, 1 month probably. I am sure my …

0
62
Member Avatar for graphicpoet

Does anyone have a clue as to how you would impliment lets say : onclick="MM_goToURL('parent','index.htm');return document.MM_returnValue" inside lets say this: <script type="text/javascript" language="JavaScript1.2"> <!-- stm_bm(["tubtehr",430,"","blank.gif",0,"","",0,0,0,0,0,1,0,0,"","",0],this); stm_bp("p0",[0,4,0,0,3,2,0,0,100,"",-2,"",-2,90,0,0,"#000000","#000000","",3,0,0,"#ffffff"]); stm_ai("p0i0",[0," Products ","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#000000",0,"#666666",0,"","",3,3,0,0,"#ffffff","#ffffff","#ffffff","#ffffff","8pt Arial","8pt Arial",0,0]); stm_bp("p1",[1,4,0,0,0,3,0,0,100,"progid:DXImageTransform.Microsoft.Zigzag(GridSizeX=16,GridSizeY=16,enabled=0,Duration=0.10)",-2,"",-2,100,2,3,"#000000","#ffffff","",3,1,5,"#666666"]); stm_aix("p1i0","p0i0",[0,"Order Catalog of Courses","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#000000",0,"#000000"]); stm_ai("p1i1",[6,1,"#666666","",0,0,0]); stm_aix("p1i2","p1i0",[0,"AUDIO CDs - coming soon"]); stm_aix("p1i3","p1i1",[]); stm_aix("p1i4","p1i0",[0,"DVDs - coming soon"]); stm_aix("p1i5","p1i1",[]); stm_aix("p1i6","p1i0",[0,"VHS TAPES …

Member Avatar for GiriDaniWeb
0
248
Member Avatar for missbeginner

Please help me, i tried to pass information from detailed view and to another detailed view in another page. I put this code in the first page [code=asp.net] protected void ViewRemuneration_Click(object sender, EventArgs e) { //Button ViewRemuneration = (Button)sender; //string sendID = ViewRemuneration.ID; Response.Redirect("Remuneration.aspx?employeeId=" + DetailsView1.SelectedValue); } [/code] and to …

Member Avatar for sknake
0
117
Member Avatar for seebharath

What is the lifetime of session variables in a asp.net application.. Also can someone give me any links to good articles on session variables in asp.net which give information on advantages and disadvantages of using the same.

Member Avatar for serkan sendur
0
89
Member Avatar for vytla

hi every body i am using three dropdownlist for search criteria , the problem is when dropdown idex is selected the dropdown itself will disappear,because the page is getting refereshed every time when i select dropdown thwe index value will be 1. pls help me out. i attached the code …

Member Avatar for kvprajapati
0
157
Member Avatar for pradeepsetty

Hi , I am running my own built plug-in in Eclipse 3.4.2. I successfully built my plug-in but when i try run my plug-in, eclipse is displaying following below error !SESSION 2009-07-06 17:05:16.181 ----------------------------------------------- eclipse.buildId=unknown java.version=1.5.0_16 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -dev !ENTRY org.eclipse.osgi …

0
50
Member Avatar for Oathkeeper

A scan of my PC shows that there are multiple entries of svchost.exe that are infected with the "New Win32" virus. It either said that termination had failed, or I should restart and scan my PC. After some searching, I found the best way I was going to (hopefully) resolve …

Member Avatar for jholland1964
0
146
Member Avatar for desaiva

Hi there, Is it possible that two user's use same application with different computers and somehow one's session data getting overwritten with others? I am not having any code error anywhere but somehow one's data getting overwritten with others. Please help me because I am trying to solve this error …

Member Avatar for desaiva
0
169
Member Avatar for taresh1

I developed a jsp page.. and i dont want any one to access the page just by copying he URL what to do.???

Member Avatar for Thirusha
0
88
Member Avatar for dwdata

Hello, Great forum! I have implemented a USER LOG-IN scheme in my site. Below is the code to build my session variable data: [CODE] //Create query $qry="SELECT * FROM volunteers WHERE Username='$login' AND Password='$password'"; $result=mysql_query($qry); //Check whether the query was successful or not if($result) { if(mysql_num_rows($result) == 1) { //Login …

Member Avatar for Toxikr3
0
164
Member Avatar for ppomu

Hello, I have developed a web based application using jsp and connection as Oracle 9i database. The problem encountered is that whenever I am opening any jsp pages, a session is being created in the database which even after being killed did not disappear. In fact it should be that …

Member Avatar for peter_budo
0
147
Member Avatar for nish123

Hello friends.. I want to destroy the session when user click on Back button or browser... is it part of Javascript or Php..? i think its just a small Query..!! Thank u..!! :)

Member Avatar for emarshah
0
109
Member Avatar for chriscross86

[B][/B]hi there, i need help in my vb behind codes. There is an error at these part [B]'con.Open()[/B]'. When i run the code the error says, [B]"The ConnectionString property has not been initialized."[/B]. It also says , "invalid operationsException was unhandled by user code." [code]Imports System.Data.Sql Imports System.Data.SqlClient Imports System.Web …

Member Avatar for Ramesh S
0
1K
Member Avatar for Moe

hello! I tried to answer the sample question and I have to name the osi layers which do the following functions. Please check my answer and correct if it is wrong. 1.Communicate directly with user’s application program Application Layer 2. Error correction and retransmission Data link layer 3. Mechanical, electrical …

Member Avatar for Avasulthiris
0
89
Member Avatar for nish123

Hello friends.. I want to destroy the session when user click on Back button or browser... is it part of Javascript or Php..? i think its just a small Query..!! Thank u..!! :)

Member Avatar for nish123
0
61
Member Avatar for prushik

I recently decided to take a chance and install some unstable upgrades (I love unstable things). So I upgraded many of my applications via apt-get. One of the big things I upgraded was libc6. I think that my be the issue, not sure. After the upgrades, I had many many …

Member Avatar for celina23
0
240
Member Avatar for johndoe444

Dear friends, I have this code which attempts to get the last modified date of an http resource: [CODE]request = urllib2.Request('http://www.imdb.com') >>> opener = urllib2.build_opener() >>> request.headers {} >>> first = opener.open(request) >>> first.headers.dict {'transfer-encoding': 'chunked', 'set-cookie': 'session-id=209.251.138.146.1246519635845007; path=/; domain=.imdb.com, uu=bN4RO5T1YWqLBgRAupwcdgCRSyzj0j26pvJ+qYPCXqmT117Zs9L+/LfGO4zGx50bwJFtjNPSXuqj8g4pgDJ+meCRbaoGcS2aoNZb7PiBbbqjkm66I/I+qSAyfpnj8l7qA/I+qTAyfpngkW2KBnEtmqDXe20AkW26oLFtuqC3KyrjwW26o5IOuZOyLtnAgc0ZsLFtuqCRbergwR2Ko=;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.imdb.com, cs=xOA2Pyx3xsSbt7wMU8ZOhAbGfbqgkW2NmIHl2qPyXuoj8j6pMDJ+meCRbYoGES2aoJFb/feFHbqjsg7/p9HNySCRWyxAGW26oKdbraCRbbqgsW26oJFt+uDBHYqg==;expires=Fri, 03 Jul 2009 …

Member Avatar for siddhant3s
0
219

The End.