4,124 Topics

Member Avatar for
Member Avatar for RainaAnja

I am developing a website that gives statistics for soccer games,and i want to convert the schedule of the match depending on the time zone. I created this function but it seems not to be working. public static DateTime UtcToLocalTimeZone(DateTime argDateTime,TimeZoneInfo argTimeZoneInfo) { try { return TimeZoneInfo.ConvertTimeFromUtc(argDateTime, argTimeZoneInfo); } catch …

Member Avatar for JamesCherrill
0
1K
Member Avatar for SimonIoa

Hello i have a problem. i use session for any user that logs In my website. I use the session user id as a variable to show the first page of my site when one presses my website url (www.mywebsite.com) so, if the session user id is empty then returns …

Member Avatar for SimonIoa
0
529
Member Avatar for Daron_1

Hello Everyone, I am building multi-web application pages using the Default.aspx, Default.aspx.cs and Confirm.aspx and Confirm.aspx.cs. The problem that I am having is that when I click "Confirm" before clicking "Calculate," the event handler displays the "Click the Calculate button before the confirm" at the bottom of the page. It …

0
225
Member Avatar for Tawiah

I am trying to get the position of students in an exam. The SQL query I wrote uses the DENSE_RANK() function and it works properly just that it does not leave spaces after equal positions. I understand I can achieve that using the RANK() function. I Tried using the RANK() …

Member Avatar for rproffitt
0
324
Member Avatar for cainam29

I have a login session where it checks the user name and displays it to the form (it displays FirstName LastName). That username is also being used as a variable to pull up data in db. Now I also have another page where user's can update the db, I dont …

Member Avatar for AndrisP
0
274
Member Avatar for Ryan_26

I am trying to create an HTML form which displays text from a text file, using a Java Servlet. I keep getting the following error: Error instantiating servlet class servlets.ReportServlet. Here is the HTML page: <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form …

Member Avatar for Subraa_1
0
1K
Member Avatar for shahir_1

if click second link the url pass value but then i click next the url value will empty. any one healp me ...! this is my controllere public function search() { $this->load->library('pagination'); $prdictive= $this->input->post('printable_name'); $category=$this->input->post('category'); $area=$this->input->post('area'); $this->load->library("pagination"); $config = array(); $config["base_url"] = base_url() . "Main_control/search/".$area.'/'.$category; $area2 = $this->uri->segment(3); $category2 = …

0
290
Member Avatar for cguan_77

Hello guys, just need your insight. Just a noobie in PHP, I have this scenario after a user logged in and is authenticated. It will be redirected to another URL. If the user booked mark the URL and next time just go directly to the URL. What's the best way …

Member Avatar for cguan_77
0
367
Member Avatar for UI

Folks, Why do I keep on getting this error when everytime I input a url in the url field in the following web proxy script: **"The specified URL could not be returned due to a status code of 400."** It says unless the Status Code is 200 then to show …

Member Avatar for UI
0
403
Member Avatar for G_Waddell

Hi, I've recently "inherited" a part built project from a developer who as left our company. He had decided to use Entity Framework but I am finding it to be unstable and slow. I periodically have to reimport objects and stored procedures from the database as the model gets corrupted. …

Member Avatar for Aleksey_2
0
4K
Member Avatar for anmol.raghuvanshi1

In my registration page i want user to select multiple images and upload it i am saving images name in database for reference. I am successful in uploading single images in database and can also show image in view but now i have problem in uploading multiple images. <?php if …

Member Avatar for Rizvan_1
0
7K
Member Avatar for kayla_95

so i've been trying to do this multiple times but stil didnt get the answer. i have a column named closed in my database and close button in my view, whenever i click the button close, i want it to update my closed column to '0' if it is closed …

0
101
Member Avatar for UI

Ladies & Gentleman, Or should I say 'Gentle Ladies' and 'Hard Men' (tough guys)! :winky: Here is my very latest (New Code) reg.php. I have modified it by: * Removing outdated strip tags, mysqli_escape_string. * Bound input parameters on the user reg form. * Added htmlspecialcharacters code on output to …

Member Avatar for UI
0
388
Member Avatar for hani_1

Hello everybody I'm looking for someone to help me about my problem, im trying to display user details after login with allow user to edit some fields . the user can edit these fields password repassword description address telephone email and these two fields not allow to edit only display …

Member Avatar for rproffitt
0
1K
Member Avatar for UI

I'm trying to build a script that adds multi entries into same single cell or mysql row. The script tries monitoring what you are browsing via the: <pre><input type="text" name="browse_url" size="120"></pre> and then record your viewed urls into the same row (position: 0), column: browsings like so: 1.com,2.com and so …

Member Avatar for UI
0
360
Member Avatar for UI

Programmer Experts, I'm embarking on an interesting project to gain work experience in php. Just stuck on one thing and wondering if you can help. You probably used Team Viewer. This is where I create a Team Viewer session and get a unique number and if I give you it …

Member Avatar for diafol
0
384
Member Avatar for tenten..

hello expert, i have three dropdownlist option consist of two string and one datetime that convert into string. If i want to choose first and second dropdown without the third one which is datetime, it occur error "the string was not recognized as a valid datetime. there is an unknown …

Member Avatar for Raj chanda
0
2K
Member Avatar for iamthwee

I'm beginning to wonder... I hope someone can clarify my doubts. First let me explain. So I've been using codeigniter's session library without much thought. I assumed the code was just some wrapper for PHP native sessions. So I assumed it was stored server side so encryption and all that …

Member Avatar for owlowl076
0
8K
Member Avatar for UI

Hiya Folks, Why is not mysql getting UPDATED, do you reckon ? <html> <head> <title> <?php $user?> Home Page </title> </head> <body> <body background=".png"> <?php session_start(); require "conn.php"; /*Check if user is logged-in or not by checking if session is set or not. If user is not logged-in then redirect …

Member Avatar for diafol
0
262
Member Avatar for UI

Hello People, Do you know why iframe is not opening to the url (variable value) ? Here is latest update of the code but still it shows not the variable value as the iframe URL. Variable calls db row data. Mysql column "Latet_View" has an entry on position zero: http://www.google.com …

Member Avatar for UI
0
377
Member Avatar for UI

Programmer buddies, Do you mind pointing me to the right direction ? I've been waiting from dec 2015 to learn php 7 but no tuts on php 7 were out until a month or 2 ago but yet again they are not proper or complete tuts. Can you recommend some …

Member Avatar for UI
0
321
Member Avatar for Hasenali

Amazon is Hiring! A job at Amazon is unlike any other you have had. You will be inspired, you will be challenged, and you will impact the future of the technology. This is for some very unique technical projects for Amazon technical development teams (eCSG & Retail systems) in Canada …

0
130
Member Avatar for Alexandro

I get an error with nero 7 for DVD-R type DVD: illegal disk, but for other DVD types DVD+r,Double layer,+RW is no problem. Here is the log of nero: Windows XP 5.1 IA32 WinAspi: - NT-SPTI used Nero Version: 7.10.1.0 Internal Version: 7, 10, 1, 0 Recorder: <SONY DVD RW …

Member Avatar for Stephen_19
0
691
Member Avatar for phphp

Sir I am using these codes on login.php session_start(); $query="select * from w_log where email ='".$muser."' and pass='".$mypass."'"; $result=sqlsrv_query($con,$query)or die ("Error". sqlsrv_errors($con)) ; while($res = sqlsrv_fetch_array($result)) { $_SESSION['id']=($res['id']); $_SESSION['sno']=($res['usno']); $_SESSION['user']=($res['name']); $_SESSION['status']=($res['status']); } //header("location:../index.php"); //exit(); echo $_SESSION['status']; $_SESSION['status'] is equal to GENERAL But when I call this variable at the top …

Member Avatar for ahmad.albab.87
0
385
Member Avatar for davy_yg

admin/views/login.php <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" name="username" placeholder="Username"></div> <div class="login"><input type="password" name="password" placeholder="Password"></div> <br> <input type="submit" name="login" class="login login-submit" value="login"> </form> <div class="login-help"> <a href="#">Register</a> • …

Member Avatar for Dani
0
490
Member Avatar for Reverend Jim

I got a call from recently from someone claiming to be a Dell tech rep. He said my laptop was reporting multiple errors. Realizing immediately that this was a scam I let him continue while I started a Windows 7 Virtual Machine session. Because I had some free time I …

Member Avatar for cereal
0
463
Member Avatar for davy_yg

This is to enter the admin page: http://localhost/masterlinkci2/admin/ admin/views/login.php <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" name="username" placeholder="Username"></div> <div class="login"><input type="password" name="password" placeholder="Password"></div> <br> <input type="submit" name="login" class="login …

0
165
Member Avatar for davy_yg

Hello, I am trying to make this program load the style.css correctly. Can anyone help me out? admin/views/login.php <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CodePen - Log-in</title> <link rel='stylesheet' href='http://codepen.io/assets/libs/fullpage/jquery-ui.css'> <link rel="stylesheet" href="<?php echo base_url('assets/style.css'); ?>" media="screen" type="text/css" /> </head> <body> <br><br><br><br><br><br> <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php …

Member Avatar for Dani
0
2K
Member Avatar for phphp

Sir I am using IIS Manager, as follows ![Untitled2.png](/attachments/large/4/5db38166988018ba54db4cd0600179cb.png "align-center") and I have these codes for login.php <?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once("../includes/connectsql.php"); require_once("../includes/functions.php"); $error = false; $cerror=""; $cur_id=0; $cur_user=""; $cur_email=""; $mypass=""; if(isset($_POST['login'])){ $muser=clean($_POST['username']); $mpass=clean($_POST['password']); $mypass=SHA1($mpass); if (!preg_match("/^[a-zA-Z0-9]+$/",$mpass)) { $error = true; $cerror="Password must contain only alphabets and space"; } if(!filter_var($muser,FILTER_VALIDATE_EMAIL)) …

Member Avatar for Dani
0
297
Member Avatar for genieuk

Hi, Not done any programming for a few years so am somewhat rusty again. I have two tables **users** table and **users_profiles** table. I want to update **users_profiles** table on the condition that **user_uid** matches on both tables (**users.user_uid** and **users_profiles.user_uid**) and where **users.user_login ** = 'johndoe' and **users.user_uid** = …

Member Avatar for genieuk
0
769
Member Avatar for Jacob_10

Hi Dani, I have already posted for the first code, now i want to move on to the next which is issuing books. (due to the closeness of the deadline, i will be posting all areas where i'm having problems) The issue_book.php page is supposed to capture the ISBN, current …

Member Avatar for diafol
0
614
Member Avatar for phphp

Sir I have following codes on login.php <?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once("../includes/connectsql.php"); require_once("../includes/functions.php"); $error = false; $cerror=""; $cur_id=0; $cur_user=""; $cur_email=""; $mypass=""; if(isset($_POST['login'])){ $muser=clean($_POST['username']); $mpass=clean($_POST['password']); $mypass=SHA1($mpass); if (!preg_match("/^[a-zA-Z0-9]+$/",$mpass)) { $error = true; $cerror="Password must contain only alphabets and space"; } if(!filter_var($muser,FILTER_VALIDATE_EMAIL)) { $error = true; $cerror = "Please Enter Valid Email …

Member Avatar for diafol
0
342
Member Avatar for manish812

[U][B]Whenever i run session in server than it show this problem[/B][/U] [B][U]Warning: session_start(): Cannot send session cache limiter - headers already sent [/U][/B] so pls help me this is simple login prog when user enter into nxt page it name will show i want to store its name in session …

Member Avatar for Steven_17
0
4K
Member Avatar for Link_1

I am using VB **Problem: **when i click on sort col and click on refresh button, than i get popup browers message "To display the webpage again, the web brower need to resend the infomation you've previously submitted." **Recreate this problem**: click on sorting col of gridview -> refresh page …

Member Avatar for Link_1
0
301
Member Avatar for Joshua_18

Is there a way where there is a number on the screen, for example 100, and a form where you can insert a number in the form and that number will be deducted from the one displayed. So if i inserted 5, the number will become 100 and can there …

Member Avatar for brothman01
0
153
Member Avatar for Aeonix

I'm on latest Kubuntu. Here I am with English US keyboard input. But I'd like to install say Norwegian, Polish, Japanese, whatever. I decide the easiest step. Which is to search "input". "Input Method" sounds promising. I run it. Then I get window. That says: Current configuration for the input …

Member Avatar for Aeonix
0
2K
Member Avatar for bryann

I'm a beginner with databases and I'm trying to design a database in Microsoft Access that will allow users to make bookings for fitness classes. There are two slots per day that these classes can be booked for and each session can cater for 10 people. What I am struggling …

Member Avatar for Oleg_3
0
778
Member Avatar for brianbabu

I am really having a problem with the facebook login with codeigniter. I am getting the login part, session and db query execution working just fine, but sometimes i keep getting a facebook api exception error screen. How can i get rid of this? Is there any work around for …

Member Avatar for cereal
0
177
Member Avatar for rjusman90

I am quite new to JS and AJAX and I am having a hard time understanding what the other person has implemented and how I can get it to function properly. this is my login CI code that is working perfectly, but now i want to do it with ajax …

Member Avatar for rjusman90
0
240
Member Avatar for PulsarScript

Hi all i have couple jsp pages and java class as follows below.Can you help me with the session on the handleForm .jsp As this page supposed to show all info entered by the user in the form.I did manage to display session object in thanks,jsp But have now a …

0
184
Member Avatar for Ronel_1

Hi everyone I'm creating a multi-part registration form using session, I have no problem with the first two page getting post value but whenever I validate the third page for error, it redirects me always to the first page where it should be redirected to the 2nd page once it …

Member Avatar for diafol
0
242
Member Avatar for showman13

I've been using an .htacccess file to define a rewrite rule for extracting the username from the end of a url for years. The username has always been a combination of letters and numbers following a forward / and that is all, and it has been working just fine. Here …

Member Avatar for showman13
0
541
Member Avatar for Blueie

Hello I have a log-on page and after a successful log-on, the user is redirected to userpage.aspx. I am reading up on 'Session' at the moment to prevent the user from bookmarking userpage.aspx to avoid logging-on in the future. In other words, I want to oblige the user to log-on …

Member Avatar for hericles
0
92
Member Avatar for <HHH>

Hello I have created two classes one for the user and the other for address every thing is ok and the tables of the two classes created in my database but when i try to initiate a new object from user class i get the below error "sqlalchemy.exc.InvalidRequestError: Mapper 'Mapper|user|user' …

Member Avatar for <HHH>
0
10K
Member Avatar for sujeeth_1

Hi I using jquery in my page and i have a combox . Now i need to save the combobox value in an single session storage each time when i select the values from combo box and then use these values in other page . Can any one help to …

Member Avatar for jkon
0
120
Member Avatar for phphp

Dear Experts, I am using these codes <?php require_once("../includes/connectw.php"); require_once("../includes/functions.php"); $error=""; if(isset($_POST['login'])) { $muser=clean($_POST['username']); $mpass=clean($_POST['password']); if(empty($muser)) { $error="User name must not be empty"; } elseif (empty($mpass)) { /*echo ('<script>alert("Password must not be empty")</script>');*/ $error="User name must not be empty"; } else { $query="select * from admin where user ='".$muser."' and …

Member Avatar for cereal
0
161
Member Avatar for cwarn23

Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can …

Member Avatar for diafol
5
2K
Member Avatar for Naheed_2

Hi, I have the following html code I have for a task manager. <%@ Page Title="" Language="C#" MasterPageFile="~/Site02.Master" AutoEventWireup="true" CodeBehind="Tasks.aspx.cs" Inherits="DMS.Tasks" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div class="row-fluid sortable"> <asp:Button runat="server" ID="btnAddTask" CssClass="btn btn-success btn-toolbar" Text="Create Task" OnClick="btnAddTask_Click" /> <asp:Button runat="server" …

0
294
Member Avatar for Violet_82

Here is something interesting about `detach()` vs `remove()` in jquery that happened to me. As we know, `remove()` removed an element from the DOM wherease the` detach()` does the same thing but it keeps all the jquery events bound to the element to which the method is applied to. I …

Member Avatar for rproffitt
1
263
Member Avatar for Amaina

I have this code session_start(); $username = $_SESSION['username']; function getUserRole($username, $roleid){ $con=dbConnect(); $query="select * from user inner join userrole on user.id = userrole.userid inner join role on role.id = userrole.roleid where username = $username"; $sql=$con->prepare($query); $sql->bindValue(':username',$username); $sql->bindValue(':roleid',$roleid); $sql->execute(); $row = $sql->fetch(); $username = $row['username']; $roleid = $row['roleid']; if($row > 0){ …

Member Avatar for diafol
0
2K

The End.