4,124 Topics
![]() | |
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, … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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']; … | |
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" … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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? | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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]. … | |
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 … | |
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; … | |
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']; … ![]() | |
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 … | |
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. … | |
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] | |
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)) { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
I developed a jsp page.. and i dont want any one to access the page just by copying he URL what to do.??? | |
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 … | |
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 … | |
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..!! :) | |
[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 … | |
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 … | |
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..!! :) | |
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 … | |
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 … |
The End.