4,124 Topics
![]() | |
Hello, Can any one tell me that how to show the name of the user using session. PLease help me by giving a code example and can anyone tell me i am using sessions and it is giving me this error " Warning: session_start() [function.session-start]: Cannot send session cache limiter … | |
Hi, I want to send parameters to wsdl (xml file). I give sample code below. --------------- [B]createsession.php[/B] ------------------------------------------------ <?php session_start(); require_once('lib/nusoap.php'); $client = new soapclientw('https://www.domin.com/services/umarketsc?wsdl', true); $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; $sessionResult = $client->call('createsession'); // [B]No parameters[/B] echo 'Session ID : '. $sessionResult['sessionid']; ?> ------------ [B]End code[/B] --------------------------------------------------------------- [B]Sample … | |
I have a code which parses/validates all the fields present in i/p weblog file. My first field is ip_address & currently can have a value like 12.45.24.245 Now I have a change where ip_address can be a dummy value something like $10.00 or $23.123.34. or $12.233. How should I change … | |
Hi, I have a Toshiba NB300 laptop running win7, and I'm trying to run some software that requires a screen res of at least 1024x700. Unfortunately, the max res of this laptop is 1024x600. I have searched the web looking for a solution for this, people with similar issues had … | |
Response: ---------- [CODE]<?xml version="1.0" ?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns3:createsessionResponse xmlns="http://www.utiba.com/delirium/ws/TypedQuery" xmlns:ns2="http://www.utiba.com/delirium/ws/Misc" xmlns:ns3="urn:UMARKETSCWS" xmlns:ns4="http://www.utiba.com/delirium/ws/StdQuery"> <ns3:createsessionReturn> <ns3:sessionid>6DL42ED0GG67MADDTD96</ns3:sessionid> <ns3:result>0</ns3:result> <ns3:result_namespace>session</ns3:result_namespace> <ns3:createsessionReturn> <ns3:createsessionResponse> <S:Body> <S:Envelope>[/CODE] ------------------------- How can i get xmlns Attribute Values using PHP. [ICODE] <ns3:sessionid>6DL42ED0GG67MADDTD96</ns3:sessionid>[/ICODE] I want to take [ICODE]<ns3:sessionid>[/ICODE] value [ICODE][6DL42ED0GG67MADDTD96][/ICODE]. Please reply asap. very urgent. Thanks William | |
Hi all, i am developing a small webapp.In that I am getting database connection when user logs in,and storing it in session.and i am closing the connection and invalidating session when user logs out. is the above design is correct or not.I dont want to use connection pooling. regards suresh | |
write a program that will act as a single user's ATM machine.....the user will have the following menu options 1. deposit 2. withdrawal 3. view account balance 4. exit constraints for validation user can not deposit less tha zero dollars user must withdraw in $10 increments user can not withdraw … | |
I'm using Eclipse and when I try to build the JMS example included in j2ee tutorial, it return a NullPointerException at this: [code]connection = connectionFactory.createConnection();[/code]. Here's the code of that example: [code]public class Producer { @Resource(lookup = "jms/ConnectionFactory") private static ConnectionFactory connectionFactory; @Resource(lookup = "jms/Queue") private static Queue queue; @Resource(lookup … | |
Ok, here we go again. I am trying to use sessions to keep track of how many times a user guesses at a number. All of the code works fine [I]except[/I] for the counter at the top. I am not aware of how to start a counting session and get … | |
I'm totally new to javascript and fairly new to php... so... I have a javascript login form that takes a users email and password, validates through a mysql database and gains entry to a folder that is protected by a htaccess file. This is set up to integrate with a … | |
Ok this is my first post so please be gentle... I have tried several ways to get data to a mysql database from radio buttons that have male or female options.. I had it saving to the database but couldn't get the data out and into the radio button... example … | |
Hi please help me with paging as i am searching it for last 3 days but no success I have a table in JSP ,which is getting values from java / database and displaying record via beans here is my JSP code [CODE]<logic:iterate name="list" id="user" scope="session"> <tr><td><beanOld:write name="user" property="username" /></tr></td> … | |
Hi * I have spent the last 18 hrs or so trying to get the wright sql code or think of an alternative but I just can't get my head around it. If any one can help me it would be awsome. What I am trying to acheive is getting … | |
Hello, I use Ruby with Sinatra in my application and I need to store a big data (exceeding 4K) in my session or somewhere secude on the server because I do some API calls and I refer to that data very often and that's why I need it stored. The … | |
hi all, I want to call a class function using beans inside java script. but it is not working. It calls that function only 1 time. [code] <jsp:useBean id="track" scope="session" class="ReturnProgress"></jsp:useBean> <script type="text/javascript"> function getProgress() { document.getElementById('progress').innerHTML = '<%=track.findProgress()%>'; } </script> [/code] I want that Whenever user clicks on button … | |
Two Sessions Questions I am developing a members site, and trying to make it template and DB driven, so it can be transportable between domains. Each page that is called makes use of include statements to bring in the constant information that is found on every page Sample page call … | |
I need to remove the prefix(domain name) if exist in front of a username from a session variable. paramsql.Value = Session("ssNtUser") say the domain is za username is macupryk I would like to remove the za\ so in the session variable I have macupryk only but the domain name can … | |
Hello, I'm trying to modify an existing php page by adding a submit button, to allow the user to change the unit cost of a product in the inventory. I can get the product informations from the database, but nothing happens when I press the submit button. The fist submit … | |
Hi, i wasn't to be able to transfer variable data on to a script that I've include()'d. I've tried passing it through the URL like "include('function.php?username=$session->username');" but it says that it cannot find that file. So I'm kinda stuck at the moment :) | |
Hello, I want to check the username & password of the user with the already stored database and then login. Iam using asp.net(vb) with sql server as database. Please help ME [CODE] Imports System.Data.SqlClient Imports System.Data Partial Class MasterPage Inherits System.Web.UI.MasterPage Dim con As New SqlConnection("server=localhost;database=reg1;integrated security=yes;") Dim ds As … | |
dear members, now i am developing a login page for my system using jsp. here is my boundary code [CODE]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><body> <jsp:useBean id="idHandler" class="DBConnection.Login" scope="request" /> <jsp:setProperty name="idHandler" property="*" /> <% String username = request.getParameter("USERNAME"); … | |
Not sure where bug reports should go, so I'm posting mine in feedback. This morning when I logged in to DaniWeb, instead of getting the redirect page, I somehow obtained a 'login.php' file for the page instead. Opening the file in emacs, it contained (in this order): - A bunch … | |
Hi all, I am totally pulling my hair out at the moment. The pages I have included sessions on all work great except when I make submit a form or basically anything I do in relation to MySQL. Is there a typical reason as to why this would happen? So … | |
Hi, I have this code. It is not working properly. Anybody may know the solution? Thank you [CODE]<?php include 'admin_homepage.php' ?> <div id="sidebar1"> <b></b><br /></br></br><img src="MMU_logo.jpg" width="180" height="150"/><br /> <a href="admin_view_student.php" style="font-size:13px" >View Student</a><br /> <a href="admin_new_student_reg.php" style="font-size:13px">Add Student</a><br /> <a href="student_excel.php" style="font-size:13px">Get Excel File</a><br /> <a href="student_mailing_list.php" style="font-size:13px">Get Mailing … | |
OK, I've been searching numerous discussion boards and searching the archives and the web for just the right answer to this question, even posted related questions on a couple, and got some responses, but they never really 'Solved' my dilema. I've concluded that I can't use a url like [url]http://username.domainname.com[/url] … | |
After being requested to write a tutorial a few times, I've finally found the time to create a mod_rewrite tutorial for vBulletin 3. What this tutorial will allow you to do is make your vBulletin forum search engine spiderable - for Google and all the others. [i]<< update >>[/i] [i][b]This … | |
hi to all... i want to be able to see which pages where visited and from how many users... (Un)fortunately i use rewrite rulez... so the actual url is not the real cfm file ex domain.com/toys/4857-toy-name/ is product_view.cfm?param=4857-toy-name So in a onrequestend.cfm i used the following code in order to … | |
i need help here(my school project- UNIVERSITY HOSTEL ALLOCATION PORTAL): i want to load table with data from database. the table will contain FullName,RegNumber,Sex,Level,Department,Faculty,Session from database(StudentData) where the RegNumber match. I use table.Load(Reader) ie "result2.Load(dr)". the problem is that it works atimes; other times it give error:> "THAT I SHOULD … | |
Hi, am having trouble figuring this one out. Am using stored procedure and using databind for the gridview . i got the codes off other sites. how or what do i use as the datasource for the sorting event. I used the Session for the paging event and that works … | |
I have a question that I can't seem to find a satisfactory answer to by searching the site, and I'm not entirely sure I am searching with the correct keywords. Anyway, here goes. I am working on a free membership script, and would like to use the members username as … | |
Ok guys, im here with a problem The thing is that ive created a website for a doctors hospital.Now the admin staff are allowed to create new patient and add new staff to the database. I have two databases right now.The aspnet membership data base and another one that has … | |
I have been messing around with adding sessions and I got everything to work. I can have users login, and it keeps track of all of their info through session_start(). However there is one strange thing that is bothering me. If someone is logged into the page, then if they … | |
Suggest me some lonk for making payment gate way and to set session and authenticate session in my site. i m working in asp.net. | |
I have a stored procedure that I am using through LINQ to SQL as a data source for a gridview. Rather than editing my stored procedure is there a way to use Linq to search the result set? [code] Dim DC As New DistributionDataContext GridView1.DataSource = (DC.usp_GetInvestorData(GridView1.PageIndex, GridView1.PageSize, "InvestorName", Session("sort"))) … | |
I have a website whose homepage has 4 frames. 1 at top(horizontal) and 3 vertical below it. The middle vertical frame displays all the contents of pages when links in other frames are clicked. I have a link in top frame to logout the user when clicked. In this link's … | |
Hello everyone! I wanna know If how will I get the values from the selected checkboxes of my datagridview, the values of the textboxes on the right and how will i put the selected values in a Session? thanks in advance! heres the pic of my project. [url]http://i53.tinypic.com/2cz7z2o.jpg[/url] | |
what is this common.php it is located in includes folder where the class files are located.I dont understand please help me i am new to php and it contains the following coading in it.Why we use it? [CODE]<?php ob_start(); session_start(); //$_SERVER['DOCUMENT_ROOT'] = "/home/gt5com/public_html"; if(!defined("_MAINSITEPATH_")) define("_MAINSITEPATH_",$_SERVER['DOCUMENT_ROOT']."/talent6/includes/"); if(!defined("EMAIL_LINEFEED")) define("EMAIL_LINEFEED",'CRLF'); if(!defined("EMAIL_TRANSPORT")) define("EMAIL_TRANSPORT",'mime'); if(!defined("CHARSET")) … | |
Hi, The website that I have been working on for sometime is about to be deployed now. However, after deployment the reports are not opening in one of the two machines that I have deployed. All other pages seem to be working fine except reports not opening with the error … | |
Hello all, I’m a bit weird because just 2 days ago I had an interview for a .NET developer post .They promised to call me last day but they didn’t so I just want to confirm few answers given by my side. Please review them and let me hear your … | |
I'm rather new to this and really need some help. I know I'm close but I just can't get this to work. My omonth table has only 2 fields, id and month. I want a drop down to lists the months and I want the selected value to become a … | |
[CODE]Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim conn As New SqlConnection Dim cmd As SqlCommand Dim dp As New SqlDataAdapter Dim ds As New DataSet Dim i As Integer Dim str As String = "UPDATE aspnet_Membership SET aspnet_Membership.Email='" & Email.Text & "' WHERE UserId='" … | |
Hi everyone, I don't know whether this is a PHP or MySql problem, but I think it is the former. The following code queries the database correctly, (and before you ask, there are no duplicate database entries), but the output duplicates every row. e.g., hammer (jpg image) hammer hammer (jpg … | |
Dear Friends, I am following the bestuff.com's active member session. I am doing the following thing... 1. when user logs in, I update my database's field with value 'O' (means user is logged in and fires query which has flag value 'O') But the problem is how to check user's … | |
[CODE]Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Dim userName As String = Request.QueryString("Name") 'MsgBox(userName) Session("id") = Session("id") Dim userName As String = User.Identity.Name Dim usr As MembershipUser = Membership.GetUser(userName) 'Email.Text = usr.Email Email.Text = usr.Email ConfirmEmail.Text = usr.Email MsgBox("jhjkh") ' ConfirmEmail.Text = usr.Email End Sub … | |
Where should I keep connection object to database like ISession or SQLConnection? What's the best solution and why ? Is it Application, Session or Items ? | |
The practical exercise for this session will be to create a cash register program that you input the cost of an item, the number purchased and if a sales tax applies to the item. If a tax does apply to the item, the tax value will be ten percent of … | |
Hi, I am using Tiny MCE as a Textbox to get user generated input which can be bold, italic, underlined, lists and different alignments. When the user submits the form data the information is then saved to a variable like below: [CODE] $jobDesc = mysqli_real_escape_string ($dbc, $trimmed['txtJobProfile']); [/CODE] The I … | |
Greetings, I got no clue how to make / set a session. When i login on my page and then press a link i get out-logged, I've tried to read on PHP.net but i cant get it together. Anyone got an explaination or code i could go from to keep … | |
[B]Greetings![/B] Anyone here who can correct my code? I'm abit noob to PHP, just started learning. The Ban file function of mine does the echo but it wont stop the file upload. Any idea? have i inplented it wrong or do i miss a line? Love you long time if … | |
Hi there I have created a simple form for my assignment in Front Page(FP) Which has to submit info to a MDB file MDB file was created by FP its self. the thing is when i click submit it gives me a successful submit confirmation but when i open the … |
The End.