4,124 Topics

Member Avatar for
Member Avatar for AndreRet

My code executes as follow - 1) a Search page is loaded where session was already started, var-dump() shows the correct session info like username etc. 2) User enters a search value in a 3rd party script search box that forms part of my search page, I have no control …

Member Avatar for jkon
0
733
Member Avatar for Ilda_1

Hello! Can someone help me with coding in R ? I am new to R and I need to solve this project. It has been so many days I dont find a solution. This is the problem : You are an online movie and concert ticket service. Visitors go to …

Member Avatar for rproffitt
0
281
Member Avatar for nanakumi75

I have a long/register system working . Each user see their own profile details when they login. Now I want to users to see other users profile by clicking on a link to their profile. How do I do this? I need advice

0
777
Member Avatar for syria718

<?php include 'ProcessDAO.php'; $dest=""; if(isset($_POST['login'])){ session_start(); // i get an error in this line !! $_SESSION['status']='online'; $_SESSION['breadcrumb']='home'; $pro = new ProcessDAO(); $dest = $pro->LogIn($_POST['username'],$_POST['password']); }else{ session_start(); $dest ="Location: ../index.php"; session_destroy(); } header($dest); ?> guyss can you help me out because in my Login.PHP file when i login i always get …

Member Avatar for Dani
0
8K
Member Avatar for Dani

I'm getting ` Session: Error while trying to free lock for ci_session` show up in the error log a couple times a minute, sometimes, and every 15 minutes other times. Using Redis for sessions. It's not happening on a different server that has almost the same code base and is …

Member Avatar for Dani
0
4K
Member Avatar for Priyanka25

Hi All, I am trying to create multiple codeigniter sessons for multiple users. I will explain my scenario. I have developed an application using codeigniter and launched in an ecommerce platfomr so that many shop owners installed my application. Now from my admin front, I have access to check for …

Member Avatar for rproffitt
1
1K
Member Avatar for Violet_82

Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, …

0
931
Member Avatar for Princecrich

How can someone write a Php script that enable users upload image along with a short description in their member area to the database where admin can receive and treat it??? I will also like to know how history on upload can also be added after each upload to the …

Member Avatar for Dani
0
703
Member Avatar for Peter_TARAS

Hello, I am learning Tkinter. As a part of the learning process I am building a Notepad clone in order to become familiar with Tkinter widgets. I am pretty close to completing it - I added about 90% functionality to the application - but I face two problems: 1) The …

Member Avatar for bevis.hobbs
0
22K
Member Avatar for WebDevGuy32145

Hey guys, So I can't seem to figure out why my live server is throwing this error. This works perfectly on my local server. Can anyone help me figure out how to fix this, or lead me in the right direction as to fixing this so my login and registration …

0
249
Member Avatar for aveeva7

I am under developing PHP add to cart without DB, so that i am using SESSION, actually get data from fetch_data.php data to my_cart.php using the POST method, successfully retun the values, After receiving the post data how can i convert to display like a table. workout: fetch_data.php return values. …

0
196
Member Avatar for suhitk121

I was solving a problem related to the scheduling. The problem statement is as below:- We want to keep a three months workshop in the university in which all the students of the university will participate. All the students will be trained by the lecturers of their own university for …

0
200
Member Avatar for Ben_33

<?php require_once('../vendor/autoload.php'); if (!isset($_POST["cart_payload"])) { echo "PAYLOAD NOT SET"; } $items = json_decode($_POST["cart_payload"], true); $line_items = array(); foreach ($items as $item) { $line_items[] = array( $target = 'images/'; $target = $target . basename( $_FILES['image']['name']) 'name' => $item["title"], 'image' => $FILES["image"], 'amount' => $item["price"]*100, 'currency' => 'gbp', 'quantity' => $item["quantity"], ); …

Member Avatar for rproffitt
0
383
Member Avatar for SpottyBlue

Hi, Is there a PHP script that doesn't allow the approver to be the same as the login e-mail? > $checkEmail = test_input($_POST["Approved_by_Email"]); > if (filter_var($checkEmail == session('session_staff_email'))) { > alert("Please do not use your e-mail as the approver."); > return false; > } I tried to solve the problem, …

Member Avatar for Dani
0
396
Member Avatar for sreekanth236

HI All I am displaying 10 questions randomly , if user play quizz multiple times - i want to display updated score of the users's session. demo url is : http://telugumirchi.com/quiz/ **index.php** <?php session_start(); ?> <?php require 'config.php'; ?> <!DOCTYPE html> <html> <head> <title>ABCD COMPANY</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- …

0
383
Member Avatar for whiteyoh

Hi, I have a working account generator, which passes the password to mysql with MD5. I am currently working on a forgot password script, which generates a new password and stores as md5, then emails the user, however, the new password is not recognised. This is the forgot script. Can …

Member Avatar for rproffitt
1
2K
Member Avatar for fb95

Hi, I'm new to php (Yii Framework) and SQL (phpMyAdmin). I have problem to ask. ![Capture11.PNG](/attachments/large/4/1e4d9bf0c9a482a977d0ccb0fa19260e.PNG) Currently the three dropdown menu from different table and each have different id called aircraft_type, aircraft_sn and aircraft_reg. I want to use only one table called aircraft. In this table have all three details …

0
359
Member Avatar for FMTech

My code is given me error Parse error: parse error, expecting `T_FUNCTION' in C:\wamp\www\schoolapp\application\controllers\Login.php on line 277 here is my code <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('crud_model'); $this->load->database(); $this->load->library('session'); /* cache control */ $this->output->set_header('Last-Modified: ' . gmdate("D, d …

Member Avatar for gentlemedia
0
465
Member Avatar for Emil_4

Hello, So I have buttons on my site connected to a PHP code that updates the column "status" in "users" table with a value based on what button you press. This is the PHP script for that: <?php include('functions.php'); $servername = "localhost"; $username = "root"; $password = ""; $dbname = …

0
2K
Member Avatar for daisyr

*Hello** This has been a question for a long time / Request for help for a PHP script. A year ago I created a homepage for a friend (online tutoring website) and installed a finished script for an occupancy calendar and did not consider / knew that the server will …

Member Avatar for rproffitt
0
972
Member Avatar for Roudha

Vending machine is a machine which dispenses goods/items such as snacks, soft drinks, chocolates, cookies, chips and other selected items to customers automatically, after the customer inserts currency or coins into the machine. The project is required to design, implement to simulate a vending machine. The program will work with …

Member Avatar for rproffitt
-1
920
Member Avatar for Lloyd_4

Hi Everyone, I am new to using cURL I have a client website I am working on... They have a password script that automatically creates a new password - what they would like to do now is automatically log the user in - using the automatic password and the users …

0
747
Member Avatar for Reverend Jim

ASUS Computers I recently had dealings with Asus. The situation was regarding a malfunctioning keyboard. The computer is a several-year-old (no longer under warranty) Asus K53E laptop. It belongs to my father-in-law and because he is somewhat careless with food (he is 91 so this is understandable), something eventually got …

Member Avatar for Reverend Jim
1
643
Member Avatar for rproffitt

The title of the new employee training module alone was a sign that times have changed. This topic never came up in all my years at any job. Here's the boil down of the course. > If there is an active shooter in the area, we suggest you first run …

Member Avatar for happygeek
0
709
Member Avatar for Olaoluwa_1

I have a Table that displays titled and first name columns and delete link on the 3rd column. Unfortunately for a reason i don't understand, records are not deleting when the Delete link is clicked. Please friends, help me figure out what's wrong here. Table <?php $user_id = $_SESSION["user_id"]; //brought …

Member Avatar for alan.davies
0
448
Member Avatar for Rani_7

Hello everyone, I am having trouble in displaying the multiple images on jsp. I am using servlet to pull the image from the database. Following code, will always display single image multiple times on my jsp page. Can anyone please help me in rectifying the error in the code. I …

0
287
Member Avatar for Reverend Jim

vb.net 2010 Windows Pro 7 ## Create a Video Library with an Embedded Windows Media Player ## I have close to 400 video clips in my home movie library. In order to quickly locate any given video I have added certain words into the file names. Even so, locating specific …

Member Avatar for Reverend Jim
1
3K
Member Avatar for overwraith

I started working on a windows forms authentication project, which uses nhibernate, and has some management pages for managing user settings, such as resetting user password. This forms based authentication uses session state in order to save the user's authentication information. I will be using a special authentication attribute in …

Member Avatar for rproffitt
0
742
Member Avatar for baig772

I am using `passport` in `laravel` for authenticating my users in APIs. I am able to authenticate different types of users from different tables and generating different token for them but the routes are not protected. For example. A user can access the routes like this Route::group(['middleware' => 'auth:api'], function …

Member Avatar for PARDEEP_2
0
985
Member Avatar for anitg

I am trying to get access toke from FB through Developer App. But I am not able to json_decode the call back response. If I use the token_url call from browser, it returns the access token. But from within the script it does work. I searched online and foun that …

0
283
Member Avatar for durgeshmandal

I am using two database one is default which I would like to set db name as per session value, second database I am using to login and registration and set session once user logged in. Can anyone have solution to manage this database name after login of user based …

Member Avatar for rproffitt
0
458
Member Avatar for divinity02

hi there i have this registration page when a user login it should redirect you to a welcome page, I am having a similar problem at to one user who was experiencing the same problem. at one time it was going to the welcome page, but there were errors in …

Member Avatar for divinity02
0
319
Member Avatar for divinity02

hi ah have ah form that when data is inserted it would go to a welcome page which it does but I keep getting this error ( ! ) Notice: Undefined index: first in C:\wamp64\www\luana_itec244\php\welcome.php on line 25 Call Stack #TimeMemoryFunctionLocation 10.0007237872{main}( )...\welcome.php:0 ( ! ) Notice: Undefined index: last …

Member Avatar for Mr.M
0
279
Member Avatar for b10hzrd

[ATTACH=RIGHT]19013[/ATTACH]I will start off by saying that I don’t like to think of myself as lazy, instead I prefer to think that I am much too busy to take the time to complete the more mundane chores around the house like vacuuming and so on. Ok, I’m lazy and vacuuming …

Member Avatar for John_197
3
1K
Member Avatar for davy_yg

I get this message: The foto ktp must be an image. The foto ktp must be a file of type: jpg, jpeg, png. The foto profile must be an image. The foto profile must be a file of type: jpg, jpeg, png. I wonder why it does not pass the …

Member Avatar for davy_yg
0
413
Member Avatar for SimonIoa

Hello i want to pass the user id (uid) from the home page to a user Details Page. Because i display multiple users on my home page i don’t wan to pass the user session id (as given by the `JSON.parse(localStorage.getItem("userData"));` ), i want to click on the name of …

0
588
Member Avatar for memegha123

hI! I m trying to create a simple login application in jsp where i create a session allows the user to use certain features and then logout. Problem is that after the user logs out. I destroy all session objects and invalidate the session and redirect to welcome page still, …

Member Avatar for youngbill
0
3K
Member Avatar for Sebastiano

Hi all, I'm trying to make a Facebook login for a website, which also stores users' data who log in. In order to do this, I do have an index.php <script> // This is called with the results from from FB.getLoginStatus(). function statusChangeCallback(response) { console.log('statusChangeCallback'); console.log(response); // The response object …

Member Avatar for Sebastiano
0
978
Member Avatar for ryantroop

Looking for conceptual help... I am writing a program in C++ to handle socket connections, eventually to be a websocket server. However, the rest of my stack uses PHP for serving up page. Is there a way to use PHP as an intermediary between the client (JS) and the application …

Member Avatar for ryantroop
0
472
Member Avatar for mattrweaver

I am trying to delete files in flask after they are downloaded, but I'm hung up on file path issues, generating empty excel files. The file that is downloaded is passed to the route for the file download from a session variable. The following code finds the file and downloads …

0
147
Member Avatar for Mark_79

Hello I am needing some assistance with setting up a function to check if a user is logged in or not with Passport.js using the local and slack strategy. I have a localstrategy which works fine but I also want to implement a sign in with slack as well. I …

0
222
Member Avatar for Spyderbane

I have a powershell script from PRTG that will ssh into a juniper device and allow me to exicute a command. I am trying to run "Request System Storage Cleanup" which works but the problem is the session asks for conformation of the clean up. Adding a carriage return and …

Member Avatar for rproffitt
0
692
Member Avatar for random_1

Hi, I have a logout script that works just fine but I don't think its actually killing the session(?). so i have index.php, login.php, home.php, session.php, and logout.php. When i logout from home.php I am redirected to index.php, which is great. But when i manually enter the home.php url i …

Member Avatar for random_1
0
447
Member Avatar for Reverend Jim

Is anyone familiar with Microsoft Remote Desktop? I'm referring to the application with the name MSTSC.EXE. I used this years ago at the office to remote into the servers from home but MS has made changes since then. I have one laptop downstairs that is usually unattended and I have …

Member Avatar for rubberman
0
417
Member Avatar for andreiviziru

this is the code that works if (isset($_POST['add_to_cart'])) { if (isset($_POST['select_size']) && isset($_POST['select_color']) && isset($_POST['select_quantity'])) { $size = $_POST['select_size']; $color = $_POST['select_color']; $quantity = $_POST['select_quantity']; if (isset($_GET['lang'])) { $the_lang = mysqli_real_escape_string($connection, $_GET['lang']); if ($the_lang == 'ro') { $product_name = $product_name_ro; } else if ($the_lang == 'en') { $product_name = $product_name_en; …

0
162
Member Avatar for overwraith

I am creating an application that uses NHibernate, an object relational mapper that is a port of the Java Object relational mapper hibernate. Currently I am trying to represent my entities via hibernate xml files. The application I have right now is throwing an error I am thinking may be …

Member Avatar for stultuske
0
646
Member Avatar for Zinavo
Member Avatar for overwraith

I have the following error as part of my nhibernate project; **Could not find a setter for property '0' in class 'AdHockey.Models.User'** The following is my model; public class User { /// <summary> /// Unique identifier for group used by program and database layer. /// </summary> public virtual int UserId …

Member Avatar for overwraith
0
2K
Member Avatar for John_116

Dear All, I Made a facebook quize website, i wrote code but i have a problem, I want get my name and one of my friend name. but it didn't work. <?php session_start(); // added in v4.0.0 require_once 'autoload.php'; use Facebook\FacebookSession; use Facebook\FacebookRedirectLoginHelper; use Facebook\FacebookRequest; use Facebook\FacebookResponse; use Facebook\FacebookSDKException; use …

0
170
Member Avatar for winbatch

Here's a question for you: I often use remote desktop to connect to my office pc. Often times, I'm writing a document on the office pc and I need to include a screenshot of an application etc. Over RDP, how do I make the office pc take a screen shot …

Member Avatar for Mike_45
0
8K

The End.