4,124 Topics

Member Avatar for
Member Avatar for Johnrednex

I'm using the BullionVault API to view my orders. I use the requests from the official documentation https://www.bullionvault.com/help/xml_api.html and python language. My issue is **the request response is the HTML DOM of the BullionVault login page**. Here is my code: login_page_url = "https://or.bullionvault.fr/secure/login.do" login_page_url2 = "https://live.bullionvault.com/secure/j_security_check" payload2 = {'j_username': 'myusername', …

Member Avatar for Johnrednex
0
1K
Member Avatar for Marco_4

Hello, how can I extend the login session in my class? public function login($username, $password){ $this->db->query("SELECT * FROM users WHERE username = :username LIMIT 1"); $this->db->bind(':username', $username); $row = $this->db->single(); $count = $this->db->rowCount(); if ($count > 0) { if (password_verify($password, $row['password'])) { $_SESSION['session'] = array( 'id' => $row['id'], 'username' => …

0
112
Member Avatar for 32blaine

$res=mysql_query("SELECT * FROM users WHERE username={$_SESSION['user']}"); This line is giving me a lot of trouble. It returns blank when it should be returning something. Anyone have an idea?

Member Avatar for 32blaine
0
87
Member Avatar for sahilmohile15

Hello friends, I am having a confusion in my script please explain me what is it doing i don't know what it is i don't understand sessions very well, so please explain it if (isset($_SESSION['SBUser'])) { $user_id =*** $_SESSION['SBUser']***; $query = $db->query("SELECT * FROM users WHERE id = '$user_id'"); $user_data …

Member Avatar for madCoder
0
294
Member Avatar for Hari_11

Hi team, In hibernate one to many relation ship am updating parent setting with child data when am doing session.update(parent) (parent have set with child data) then am committing the its throwing exception saying that Caused by: java.sql.SQLException: ORA-01407: cannot update ("TPIA"."TPIA_TRANSACTION_DATA"."TRX_ID") to NULL.so please help will get appriciate.

0
238
Member Avatar for RikTelner

`l(x)` is my shortcut to `console.log(x)`. `item.php` has text "EYES!!", just that. var session = $.get("item.php", function(data) { session = data; }) l(session); // *all XHR flags in an object, responseText ("EYES!!"), status (200) etc. $.get("item.php", function(data) { session = data; }) l(session); // undefined $.get("item.php", function(data) { l(data) }) …

Member Avatar for stbuchok
0
208
Member Avatar for nagarjuna9

how to save that text boxes data into database ,by using this button evet,please tell me iam fresher. < protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) Session.Remove("clicks"); } protected void Button2_Click1(object sender, EventArgs e) { int rowcount = 0; rowcount = Convert.ToInt32(Session["clicks"]); rowcount++; Session["clicks"] = rowcount; for (int …

Member Avatar for nagarjuna9
0
402
Member Avatar for shany0786

I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want to put restrictions that if user is logined then only he can open other pages otherwise not. What i know …

Member Avatar for TexWiller
0
320
Member Avatar for Jelo

I have been trying two save data into mysql database using hibernate but it have been giving me an error. Could someone give a solution to this. Following is the servlet code and hibernate configuration servlet package ac.ke.schoolsystem.controllers; import java.io.IOException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; …

0
135
Member Avatar for Hari_11

when i save my object in hibernate session.save(obj) getting this exception. (SqlExceptionHelper.java:127) SQL Error: 1747, SQLState: 42000 (SqlExceptionHelper.java:129) ORA-01747: invalid user.table.column, table.column, or column specification (AbstractBatchImpl.java:193) HHH000010: On release of batch it still contained JDBC statements (SessionImpl.java:2994) HHH000346: Error during managed flush [could not execute statement]

Member Avatar for AleMonteiro
0
538
Member Avatar for spud91

Im working on a small website and im a little confused on one step. I'm following a very simple mvc pattern, ive currently got one controller that creates a session array that holds all the posted data IF the form has been submitted, This data is coming from several different …

Member Avatar for spud91
0
377
Member Avatar for tagore_1
Member Avatar for Dipanjana

0 down vote favorite I have a telerik tab strip with 2 tabs , I have a combobox (component art) and a datagrid in first tab and some textboxes in second tab . Based on change in combobox selection, grid data loads . When I make a selection in combobox …

0
103
Member Avatar for Ketan Satani

Hi This Satani Ketan , My Question is i am Making A login Form using c# windows application..so i have to use session and coockies in my form..that provide me how much time spent by user after logout....can any one help me.. thanks in advance...!!!

Member Avatar for Nutster
0
186
Member Avatar for berserk

platform: IIS + Apache + mysql + php (please dont justdge me on the platform it was not my choice) I have this weird bug that seems to be directly related to my sessions on my web based app. when i travel between links, if i give the previous page …

Member Avatar for berserk
0
372
Member Avatar for amhoor

Database systems and Administration Scenario: PEC offers several programs. Each program is supervised / chaired by a Head of the department (HoD) who is a lecturer. One HoD can lead only one program. There are several departments for each program. Many modules are offered by each department. Few departments are …

Member Avatar for pritaeas
0
366
Member Avatar for James_43

Hi all, Problems trying to login with Facebook on a website. The issue is that it works for me, but when I add other tests in the App settings, it doesn't work for them, they are getting the error: `Facebook SDK returned an error: Cross-site request forgery validation failed. The …

Member Avatar for James_43
0
376
Member Avatar for manish812

hi thrr is no one who can help me this is the prog which when i run faces problem of session. [B][U]session_start(): Cannot send session cookie - headers already sent [/U][/B] pls plssssssssss help me to solve the problem below is the code any one this is simple prog but …

Member Avatar for Putu_1
0
775
Member Avatar for migold

How to use one button to insert true into column Status and when clicked the second time will update column Status with false This is the table clicked the first time ====================================================== UserName | Status --------------------------------------------------------------- Steve1 | false ---------------------------------------------------------------- This is the table clicked the second time ============================================================ UserName …

Member Avatar for AleMonteiro
0
403
Member Avatar for Hari_11

I have a list of objects that having becode as string(setter,getter),i want to set the ststus as "active" for all the becodes.below is my query.but its giving exceptions as "java.lang.ClassCastException: com.rogers.tpia.model.updatetpia cannot be cast to java.lang.String".pls help me u will get appriciated. public void activateUser(List<updatetpia> act){ Session session = sessionFactory.getCurrentSession(); …

Member Avatar for ihelpyou
0
143
Member Avatar for pihuu

I encountered a problem when trying to use hibernate to save details onto my database. > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > > SLF4J: Defaulting to no-operation (NOP) logger implementation > > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. > > Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not found …

0
195
Member Avatar for Sandy_2

I have three pages page 1 :through a submit button in page 1 ... I want to be redirected in page2 in new tab and page3 in the same tab. Is that possible? Page1 contains : using (MemoryStream memoryStream = new MemoryStream()) { document.Save(memoryStream, false); memoryStream.Position = 0; Session["BinaryData"] = …

Member Avatar for hericles
0
270
Member Avatar for janicemurby

hya all i have sorted the checkbox group out and its echoing through ok but its also echoing through userid, username twice and email address when all i want is to echo options ticked any ideals of what can be causing this please php block at top of page: <?php …

Member Avatar for ryantroop
0
250
Member Avatar for mexabet

My login script is displaying the following error message: Warning: Illegal string offset 'hash' on line 30. Here is the code that generates the error: <?php // configuration require("../../includes/config.php"); // if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // validate submission if (empty($_POST["username"])) { adminapologize("You must provide your username."); …

Member Avatar for mexabet
0
411
Member Avatar for SimonIoa

Hello i want to create a script like this `$query=mysqli_query($this->db,"SELECT * FROM table WHERE to_user_id='$uid' ORDER BY id DESC")or die(mysqli_error($this->db));` but the to_user_id row has multiple values. (45,67,234) Lets say that one of them (45) is the $uid note: the $uid variable is called on a session file. Its the …

Member Avatar for diafol
0
215
Member Avatar for praba_web

Hi there, Routing is not working in codeigniter hostgator shared hosting. When i login www.doamain.com/admin this redirects to www.domain.com am using below in my config.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically …

Member Avatar for praba_web
0
4K
Member Avatar for Santhosh_2

this is my code in firstpage <?php require 'dataconnection.php'; $res = mysql_query("select * from questions where category_id=$category ORDER BY RAND() LIMIT 20") or die(mysql_error()); $rows = mysql_num_rows($res); echo $rows; $i=1; while($result=mysql_fetch_assoc($res)){ if($i==1){?> <div id='question<?php echo $i;?>' class='cont'> <p class='questions' id="qname<?php echo $i;?>"> <?php echo $i?>.<?php echo $result['Question'];?></p> <input type="radio" value="A" …

Member Avatar for diafol
0
469
Member Avatar for Santhosh_2

i developed a quiz app in php. i want to store selected radio button values into session array and post them to next page and dispaly in the second page. here is my first page code.int this i get the data from db and populate here.i want to send this …

Member Avatar for diafol
0
552
Member Avatar for Jiby_1

a pop up will display during a button click...before that i want to store a hidden field value to session at the same time popup should come..how it is possible

Member Avatar for diafol
0
88
Member Avatar for Saboor880

Hello guys! I am using netbeans8.1 and apache Tomcat8.0.27.0 I am making a simple web application for practice. I have made two html pages "index.html" and "welcome.html". On page index.html I am taking two parameters from user 'name' and 'sirName'. If user enters Saboor and Siddique in 'name' and 'sirName' …

Member Avatar for peter_budo
0
183
Member Avatar for Benjamin Alexander

Hello everyone. I am fairly new to PHP. Because of this I try and learn as much as I can with each problem that I encounter. In this particular case I have been left high and dry by the developer of a simple CMS that I had developed for me …

Member Avatar for Benjamin Alexander
0
575
Member Avatar for samantha2015

I try to implement this oauth2 config in my web application https://github.com/ksoumi/SpringSecurityOAuth2. The only difference is that he used an authentication manager with hardcoded username and password. I already have a login with spring security. I have merged only the oauth2 config in my spring-security.xml. I get HTTP status 404 …

Member Avatar for samantha2015
0
1K
Member Avatar for janicemurby

hi i have just picked up a script of the net for my site and when i uploaded in onto my site i get the following message: Warning: Cannot modify header information - headers already sent by (output started at /home/matureco/public_html/new/php/connection.php:4) in /home/matureco/public_html/new/php/session.php on line 19 ive tried different things …

Member Avatar for janicemurby
0
138
Member Avatar for dr_iton

Is there a possibility to hide a column from gridview even if you get that value from DB? I have populated a grid view with some columns from database with following procedure sending a parameter: SqlConnection sqlConn = new SqlConnection(StringKoneksioni.Stringu); using (sqlConn) { SqlCommand sqlCmd = new SqlCommand("procProcedureName", sqlConn); sqlCmd.CommandType …

Member Avatar for Taywin
0
153
Member Avatar for Edwin_7

Forum Hello people, my name is Edwin Galician and I have a problem about the Facebook API in its version 5 and consists of the following, it turns out that on my local server, I work well, but the production version generates me inconvientens the most important so far is …

Member Avatar for cereal
0
256
Member Avatar for karthic2914

I have a query on session storage how to store three fields value in a single session storage. I have three fields two radio button (in different groups) and one drop down in the first page this is how my first will look like. I was not able to get …

Member Avatar for karthic2914
0
1K
Member Avatar for pilucho

in all pages will code with "session_start ();" but does not display all the information, as "First name, Last name" But if the user is connected, and when browsing pages, only shows the nick, and the other names disappear on the first page to connect, if it shows all the …

Member Avatar for pilucho
0
305
Member Avatar for sasankasekhar2003

I am in the process of developing a web application with a "question - answer" session in PHP and MySQL. This is more like a forum, where the user asks questions and a dedicated expert answers the questions. I am trying to implement the following feature: * When a user …

Member Avatar for overwraith
0
185
Member Avatar for lukwagomedia

Hi everyone! I know this problem has already been discussed but I use MYSQLI so I have different issue here. My problem is: I have coded a login page (my testing page) för a forum that I am creating. But it doesn't work. I have spent 4 days going through …

Member Avatar for diafol
0
310
Member Avatar for gogs85

Hi i get all information what i need but i dont know how to get facebook profile image and save to file and in mysql save path. Here is my code for call fb api : <?php session_start(); include_once("config.php"); // facebook id include_once("includes/functions.php"); //destroy facebook session if user clicks reset …

Member Avatar for cereal
0
362
Member Avatar for yoou

-Hi, I'm having trouble with B.I. Media Solutions Auction (phpprobid) , I'm getting the error message: Fatal error: Cannot redeclare password_hash() in /home/betti397/public_html/includes/functions_login.php on line 147 I've been at it for hours. I couldn't see any obvious errors in functions_login.php but then I'm not much good at PHP code. Here …

Member Avatar for rproffitt
0
502
Member Avatar for Ferron

Hello I've found a working script for what I want to do: https://www.daniweb.com/programming/software-development/threads/384778/copy-files-from-a-list-in-excel Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'get the last saved settings btnCopy.Enabled = False txtExcel.Text = My.Settings.ExcelFile txtSrce.Text = My.Settings.SourceFolder txtDest.Text = My.Settings.DestinationFolder SetCopyButtonText() …

Member Avatar for Ferron
0
314
Member Avatar for WebMedia_1

Hi guy for part of my school final project, pls i need a script to restrict user from clicking a web page session and redirect them to login with alert of 5 seconds. Let me explain it very well, there is a school project im working on now that has …

Member Avatar for diafol
-1
445
Member Avatar for anmol.raghuvanshi1

Ok , i just have doubt and need suggestions for this.I have multistep form.What i am doing now that i am saving step-1 and step-2 data in session and in the last when user clicks on register all data saved in sessions will passed to database and inserted there.Now i …

Member Avatar for cereal
0
816
Member Avatar for shany0786

I want to what is better way of doing this.Suppose user visit a website he is not yet registered on our website so nav bar shows some options like sign up ,login, help these are options before registration now if user registrated for website after login options on nav bar …

Member Avatar for diafol
0
347
Member Avatar for Aeonix

Have you guys ever met process so stubborn? It wouldn't close, no matter which tools/programs/commands you might use regardless elevation? Talking about Windows and Firefox. This is kind of story that made me irritate, get mad and laugh like an idiot at the end. It goes like this: I go …

0
287
Member Avatar for shany0786

Question is not new but i can't make it work.I have registration form along with user registration form i also have a upload picture options.These are views // view for user data <form action="<?php echo base_url('Camping_register/register') ?>" method="post"> <h2>Camping <span class="red"><strong>Rent Details</strong></span></h2> <label for="business_name">Business Name</label> <input type="text" id="business_name" name="business_name" placeholder="enter …

Member Avatar for diafol
0
975
Member Avatar for James_43

Hi all, I am using the PHP Facebook SDK to login users. A login button validates the user and returns to a callback 'fb-callback.php'. On this page, I dump the returned data into a mySQL table, start a Session, and redirect to the homepage. As a test, I stopped the …

Member Avatar for James_43
0
242
Member Avatar for anmol.raghuvanshi1

I have user form which has hide/show toggle form it's the will of user to fill that part. when i click on button Tent gear which hides and shows form there is save button if user filled the form and click on" save" without refreshing page i want data to …

0
106
Member Avatar for bharathi_n_r

Hi there,i have joined newly to this site....I am a learner as off now.i am developing a [COLOR="Green"][B]windows application [/B][/COLOR]using c#.net.. I have two types of users [COLOR="Red"]Admin[/COLOR] and [COLOR="Red"]Normal [/COLOR]users. I am having one login screen.i want the application to identify the two types of users when they enter …

Member Avatar for Shashikantp004
0
1K

The End.